I have created a virtual directory for my webservice on iis 6 and i can
browse the asmx file. But when i triy to invoke it, i get the following
error:System.IO.FileNotFoundException: ?
File name: "jgkvbdhy.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.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\jgkvbdhy.dll
LOG: Appbase = file:///D:/Mywebservice
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/jgkvbdhy.dll.What i'm i missing?Many thanksJB
Lionel LASKE - 10 May 2005 15:17 GMT
Your ASP.NET account (or the account used for your virtual directory) must
have Write access on the TEMP directory due to .NET XmlSerializer.
"The XmlSerializer creates C# files (.cs files) and compiles them into .dll
files in the directory named by the TEMP environment variable; serialization
occurs with those DLLs ." See on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conintroducingxmlserialization.asp
Lionel.
>I have created a virtual directory for my webservice on iis 6 and i can
>browse the asmx file. But when i triy to invoke it, i get the following
[quoted text clipped - 38 lines]
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/TEMP/jgkvbdhy.dll.What i'm i missing?Many thanksJB
jensen bredal - 10 May 2005 15:55 GMT
Well, that does not seem to help me much.
maybe i have a different problem.
brian - 17 May 2005 20:30 GMT
I had this problem.. and this IS the solution for me!!
MAJOR MAJOR THANKS!!!
I should've thought of this after looking at my error log.. but it was
totally escaping me!!
Brian
> Your ASP.NET account (or the account used for your virtual directory) must
> have Write access on the TEMP directory due to .NET XmlSerializer.
[quoted text clipped - 4 lines]
>
> Lionel.