Re: Weird erro while debugging WS in VS2005



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.TypeLoadException occurred

Message="Could not load type
'System.Web.UI.WebControls.WebParts.repeater'
from assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
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
er.GetControlType(String
tagName, IDictionary attribs)

================================

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
system
cannot find the file specified."

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,
StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

==================================

"=== 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
OG:
Initial PrivatePath = NULL\r\nCalling assembly : System.Xml,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089.\r\n===\r\nLOG: This bind starts in
default
load context.\r\nLOG: Using application configuration file:
C:\\projects\\SR.Matrix\\SR.Matrix.VPMTrade.ClientTest\\bin\\Debug\\SR.Matr
ix.VPMTrade.ClientTest.vshost.exe.config\r\nLOG:
Using machine configuration file from
c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\
r\nLOG:
Policy not being applied to reference at this time (private, custom,
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
trix.VPMTrade.Service.XmlSerializers.DLL.\r\nLOG:
Attempting download of new URL
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
trix.VPMTrade.Service.XmlSerializers/SR.Matrix.VPMTrade.Service.XmlSerialize
rs.DLL.\r\nLOG:
Attempting download of new URL
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
trix.VPMTrade.Service.XmlSerializers.EXE.\r\nLOG:
Attempting download of new URL
file:///C:/projects/SR.Matrix/SR.Matrix.VPMTrade.ClientTest/bin/Debug/SR.Ma
trix.VPMTrade.Service.XmlSerializers/SR.Matrix.VPMTrade.Service.XmlSerialize
rs.EXE.\r\n"

==================================








.



Relevant Pages

  • Re: Weird erro while debugging WS in VS2005
    ... So the problem occurs randomly and also when not under debugging mode. ... for the webservice, is it possible to further simplify the webservice such ... Microsoft MSDN Online Support Lead ... codeBase, Evidence assemblySecurity, Assembly locationHint, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Weird erro while debugging WS in VS2005
    ... So the problem occurs randomly and also when not under debugging mode. ... for the webservice, is it possible to further simplify the webservice such ... Microsoft MSDN Online Support Lead ... codeBase, Evidence assemblySecurity, Assembly locationHint, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: permissions to call a webservice
    ... webservice and write some logs. ... when running under a non-administrator account, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • Re: Ajax, Webmethod, PageMethod (multiple versions)
    ... calling remote AJAX webservice: ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... all specific loging into web Service will be the best case for you. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: exception on Response Envelope, Error in XML-document
    ... the webservice proxy class contains a string member while the SOAP response ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.webservices)