WebService odd error

B

Binh Ly

Hi, I am getting this error from a simple WebService (File | New Project |
ASP.NET WebService) running WinXP Prof/VS.NET (2002 - old one). Web services
ran OK on my machine ever since until I tried today (but I can't remember
when it last worked). I'm suspecting that I downloaded a MS Windows update
recently that broke this. Does anybody know or have experienced this? If
yes, how did you fix it? TIA.


Server Error in '/WebService2' Application.
----------------------------------------------------------------------------
----

An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: An attempt was made to
load a program with an incorrect format.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:


[BadImageFormatException: An attempt was made to load a program with an
incorrect format.]
System.Web.Services.Configuration.WebServicesConfiguration..cctor() +0

[TypeInitializationException: The type initializer for
"System.Web.Services.Configuration.WebServicesConfiguration" threw an
exception.]
System.Web.Services.Configuration.WebServicesConfiguration.get_Current()
+0

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +29

System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContex
t context, String verb, String url, String filePath) +34
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +174
System.Web.MapHandlerExecutionStep.Execute() +78
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +173
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top