WebServices and FileNotFoundException

N

Namit

Hey,
I am a newbie to Web Services. I have been struggling with a very strange
problem for days.
I want to write a simple "Hello World" Web Service, which I want to invoke
from a browser.
The automatic test web interface that IIS manages is working fine, but as
soon as I press the Invoke button I get an error.

Environment: Win2003 server with IIS 6.0
Here's the error:
==========ERR START============================================
System.IO.FileNotFoundException: File or assembly name qgmyrebg.dll, or one
of its dependencies, was not found.
File name: "qgmyrebg.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(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.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\qgmyrebg.dll
LOG: Appbase = file:///c:/inetpub/wwwroot/HWServices/WebService1
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).
LOG: Attempting download of new URL file:///C:/WINDOWS/TEMP/qgmyrebg.dll.

=========ERR STOP================================================

The odd thing is that the name of the .dll changes every time that I do an
invoke. I know other people have the same problems, but I haven't been able
to fix this.
Any help would be greatly appreciated.

Thanks in advance.
-Best Regards,
Namit.
 
N

Nakul

Hi,

You must be using Integrated Authentication or your Default application pool
must be running under some configured account. Give write permission to this
user on C:\WINDOWS\Temp.

Hope this would help

Thanks
Nakul

Namit said:
Hey,
I am a newbie to Web Services. I have been struggling with a very strange
problem for days.
I want to write a simple "Hello World" Web Service, which I want to invoke
from a browser.
The automatic test web interface that IIS manages is working fine, but as
soon as I press the Invoke button I get an error.

Environment: Win2003 server with IIS 6.0
Here's the error:
==========ERR START============================================
System.IO.FileNotFoundException: File or assembly name qgmyrebg.dll, or one
of its dependencies, was not found.
File name: "qgmyrebg.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(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.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\qgmyrebg.dll
LOG: Appbase = file:///c:/inetpub/wwwroot/HWServices/WebService1
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).
LOG: Attempting download of new URL file:///C:/WINDOWS/TEMP/qgmyrebg.dll.

=========ERR STOP================================================

The odd thing is that the name of the .dll changes every time that I do an
invoke. I know other people have the same problems, but I haven't been able
to fix this.
Any help would be greatly appreciated.

Thanks in advance.
-Best Regards,
Namit.
 

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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top