J
Joel Plofsky
I am using the web service behavior htc to hit a web method contained
within a asmx file of my solution. If the asmx file is part of my
start-up project the web service request is successful. However, if
the asmx file is part of another project, the web service request is
unsuccessful.
The Global.Application_BeginRequest method is called, at which time I
subscribe to the AppDomain.AssemblyResolve event with the following
lines.
AppDomain objDomain = AppDomain.CurrentDomain;
objDomain.AssemblyResolve += new
ResolveEventHandler(OnResolveAssembly);
OnResolveAssembly is used to figure out the proper assembly and return
it. However, it is never called during the web service request.
I end up getting a "Cannot load type" error.
within a asmx file of my solution. If the asmx file is part of my
start-up project the web service request is successful. However, if
the asmx file is part of another project, the web service request is
unsuccessful.
The Global.Application_BeginRequest method is called, at which time I
subscribe to the AppDomain.AssemblyResolve event with the following
lines.
AppDomain objDomain = AppDomain.CurrentDomain;
objDomain.AssemblyResolve += new
ResolveEventHandler(OnResolveAssembly);
OnResolveAssembly is used to figure out the proper assembly and return
it. However, it is never called during the web service request.
I end up getting a "Cannot load type" error.