| Author |
Messages |
|
mark n
Posts:10
 |
| 09/12/2007 7:43 AM |
|
I have created a business web service (using the framework) and installed it into IIS as a new virtual directory (just the web service part not the web site part).
There appears to be a problem with DLL versions with the following assemblies:
Interprise.Framework.Base Interprise.Business.Base
The SDK (SP2+HF1) copies a 2007.1.2.0 version of the dll but the business service appears to be trying to load (unsuccessfully) 2007.1.1.0. see error below (the error occurs when you browse the .asmx file via IE):
How do I resolve this problem?
Server Error in '/TestWS' Application.
Could not load file or assembly 'Interprise.Framework.Base, Version=2007.1.1.0, Culture=neutral, PublicKeyToken=b8fe89ce8c5834af' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 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.IO.FileLoadException: Could not load file or assembly 'Interprise.Framework.Base, Version=2007.1.1.0, Culture=neutral, PublicKeyToken=b8fe89ce8c5834af' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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. | Assembly Load Trace: The following information can be helpful to determine why the assembly 'Interprise.Framework.Base, Version=2007.1.1.0, Culture=neutral, PublicKeyToken=b8fe89ce8c5834af' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
| Stack Trace:
[FileLoadException: Could not load file or assembly 'Interprise.Framework.Base, Version=2007.1.1.0, Culture=neutral, PublicKeyToken=b8fe89ce8c5834af' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
[FileLoadException: Could not load file or assembly 'Interprise.Framework.Base, Version=2007.1.1.0, Culture=neutral, PublicKeyToken=b8fe89ce8c5834af' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle) +0
System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle) +21
System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle) +70
System.Reflection.RuntimeMethodInfo.get_Signature() +46
System.Reflection.RuntimeMethodInfo.get_ReturnType() +10
System.Reflection.RuntimeMethodInfo.ToString() +19
System.Web.Services.WebMethodReflector.GetMethods(Type type) +240
System.Web.Services.Description.ServiceDescriptionReflector.Reflect(Type type, String url) +61
System.Web.Services.Protocols.DocumentationServerType..ctor(Type type, String uri) +159
System.Web.Services.Protocols.DocumentationServerProtocol.Initialize() +336
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +99
[InvalidOperationException: Unable to handle request.]
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +258
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +90
[InvalidOperationException: Failed to handle request.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +237
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +104
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +175
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
|
|
|
|
|
|
|