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
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