Re: Weird erro while debugging WS in VS2005
- From: "eschneider" <eschneider@xxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 09:16:53 -0500
The error is random, happens most of the time. The error seems to be in .NET
Framework. Occurs when starting the WS.
Yes ASP.NET 2.0 Webservice only no ASP.NET pages, and VS2005.
"Steven Cheng [MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ol1DJdaqIHA.1784@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi eschneider,
From your description, you have encountered some "Could not load type ..."
error when debugging ASP.NET 2.0 webservice in VS 2005, correct?
Regarding on the error, it seems try locating some dynamically generated
xmlseriailizer assembly and also some other web page related types. Is
your
webservice(asmx) put in an existing ASP.NET web form application? Also,
will the error occur if you do not perform debugging, but simply visit the
certain asmx or call the webservice from a client application?
If the webservice is in an application mixed with other pages, I suggest
you first separate it out and test it individually to watch the behavior.
I've ever encountered some "file not found exception" in ASP.NET 1.1
webservice that are caused by ASP.NET process doesn't have perimission to
access the local temp dir or the xml serizliation process occur error.
You
can try isolating the service so that we can try doing more test to see
whether the problem is specific to the XML serialization types.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Reply-To: "eschneider" <eschneider@xxxxxxxxxxxxxxxx>
From: "eschneider" <eschneider@xxxxxxxxxxxxxxxx>
Subject: Weird erro while debugging WS in VS2005
Date: Mon, 28 Apr 2008 17:37:12 -0500
Weird erro while debugging WS in VS2005?'System.Web.UI.WebControls.WebParts.repeater'
================================
System.TypeLoadException occurred
Message="Could not load type
from assembly 'System.Web, Version=2.0.0.0, Culture=neutral,er.GetControlType(String
PublicKeyToken=b03f5f7f11d50a3a'."
Source="mscorlib"
TypeName="System.Web.UI.WebControls.WebParts.repeater"
StackTrace:
at System.Reflection.Assembly._GetType(String name, Boolean
throwOnError, Boolean ignoreCase)
at
System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapp
tagName, IDictionary attribs)system
================================
System.IO.FileNotFoundException occurred
Message="Could not load file or assembly
'SR.Matrix.VPMTrade.Service.XmlSerializers, Version=1.0.3040.29569,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
cannot find the file specified."StackCrawlMark&
Source="mscorlib"
FileName="SR.Matrix.VPMTrade.Service.XmlSerializers,
Version=1.0.3040.29569, Culture=neutral, PublicKeyToken=null"
FusionLog=""
StackTrace:
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)StackCrawlMark&
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)OG:
==================================
"=== Pre-bind state information ===\r\nLOG: User = STARKNT\\bimp\r\nLOG:
DisplayName = SR.Matrix.VPMTrade.Service.XmlSerializers,
Version=1.0.3040.29569, Culture=neutral, PublicKeyToken=null,
processorArchitecture=MSIL\n (Fully-specified)\r\nLOG: Appbase =
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/\r\nL
Initial PrivatePath = NULL\r\nCalling assembly : System.Xml,default
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089.\r\n===\r\nLOG: This bind starts in
load context.\r\nLOG: Using application configuration file:ix.VPMTrade.ClientTest.vshost.exe.config\r\nLOG:
C:\\projects\\SR.Matrix\\SR.Matrix.VPMTrade.ClientTest\\bin\\Debug\\SR.Matr
Using machine configuration file fromr\nLOG:
c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\
Policy not being applied to reference at this time (private, custom,trix.VPMTrade.Service.XmlSerializers.DLL.\r\nLOG:
partial, or location-based assembly bind).\r\nLOG: Attempting download of
new URL
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
Attempting download of new URLtrix.VPMTrade.Service.XmlSerializers/SR.Matrix.VPMTrade.Service.XmlSerialize
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
rs.DLL.\r\nLOG:
Attempting download of new URLtrix.VPMTrade.Service.XmlSerializers.EXE.\r\nLOG:
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
Attempting download of new URLtrix.VPMTrade.Service.XmlSerializers/SR.Matrix.VPMTrade.Service.XmlSerialize
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
rs.EXE.\r\n"
==================================
.
- References:
- Weird erro while debugging WS in VS2005
- From: eschneider
- RE: Weird erro while debugging WS in VS2005
- From: Steven Cheng [MSFT]
- Weird erro while debugging WS in VS2005
- Prev by Date: RE: Weird erro while debugging WS in VS2005
- Next by Date: Why would a webservice call be slower from dotnet 2.0 than 1.1?
- Previous by thread: RE: Weird erro while debugging WS in VS2005
- Next by thread: RE: Weird erro while debugging WS in VS2005
- Index(es):
Relevant Pages
|