isual Studio ASP.NET Web Service Project provided Hello World webmethod producing error upon invoke

G

Guest

Open Visual Studio and create a new ASP.NET Web Services Project. Uncomment the test webmethod (Hello World) in the .asmx file, set as starup file, save and build project and run. Click on the Hello World link in the web page that appears. Co-workers recieve the expected page but I get an error similar to this in the web page (http://localhost/MytestService/Service1.asmx/HelloWorld)

System.IO.FileNotFoundException: File or assembly name swazqp4x.dll, or one of its dependencies, was not found
File name: "swazqp4x.dll
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly(
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly(
at System.Xml.Serialization.Compiler.Compile(
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings
at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos
at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos
at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos
at System.Web.Services.Protocols.HttpServerType..ctor(Type type
at System.Web.Services.Protocols.HttpServerProtocol.Initialize(
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing

=== Pre-bind state information ==
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\swazqp4x.dl
LOG: Appbase = file:///c:/inetpub/wwwroot/IMISImportServic
LOG: Initial PrivatePath = bi
Calling assembly : (Unknown)
==

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind)
LOG: Attempting download of new URL file:///C:/WINDOWS/TEMP/swazqp4x.dll

Can anyone tell me what I should do to troubleshoot this?
 
C

CJ Taylor

Find this file...

put it in your web service bin directory


KGarvin said:
Open Visual Studio and create a new ASP.NET Web Services Project.
Uncomment the test webmethod (Hello World) in the .asmx file, set as starup
file, save and build project and run. Click on the Hello World link in the
web page that appears. Co-workers recieve the expected page but I get an
error similar to this in the web page
(http://localhost/MytestService/Service1.asmx/HelloWorld):
System.IO.FileNotFoundException: File or assembly name swazqp4x.dll, or
one of its dependencies, was not found.
File name: "swazqp4x.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings)
System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[]
methodInfos)
at
System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodI
nfo[] methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type
type, LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type,
HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing)
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\swazqp4x.dll
LOG: Appbase = file:///c:/inetpub/wwwroot/IMISImportService
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
 

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

Top