|
|
|
Could not load file or assembly 'Gizmox.WebGUI.Server, |
|
|
I received this error when IIS was parsing the config file httphandlers section. Do I need to add a DLL to my bin directory?
...
Could not load file or assembly 'Gizmox.WebGUI.Server, Version=3.0.5701.0, Culture=neutral, PublicKeyToken=3de6eb684226c24d' or one of its dependencies. The system cannot find the file specified.
...
Line 164: Client events are sinked through this router as well.
Line 165: --> Line 166: <add verb="*" path="*.wgx" type="Gizmox.WebGUI.Server.Router,Gizmox.WebGUI.Server,Version=3.0.5701.0,Culture=neutral,PublicKeyToken=3de6eb684226c24d"
/> Line 167: Line 168: </httpHandlers>
...
Thanks.
[email protected]
|
|
|
|
|
|
|
|
Re: Could not load file or assembly 'Gizmox.WebGUI.Server, |
|
|
Hi,
Yes you do.
When you register the Gizmox DLL's to your project, you have to go to the properties of the DLL's and make sure they all have Copy Local = True. Then you recompile your app. This setting makes them all be copied to the bin directory of your app, and then you should deploy with all those DLL's on the bin folder being copied to your IIS server app's bin folder.
Of the Gizmox DLL's, you should reference as a minimum Client, Common, Forms and Server
Palli
Páll Björnsson - Visual WebGui support team - Email: [email protected]
|
|
|
|
|
|
|
|
Re: Could not load file or assembly 'Gizmox.WebGUI.Server, |
|
|
Hi, Thanks for your quick response.
I did not have a reference for the server dll so I added it from the SDK3.5 (why is it not in the GAC?). I made sure that Local Copy = True was set for all the Gizmox references and rebuilt the project (I am using ShardDevelop). However, I still get the same result.
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Gizmox.WebGUI.Server, Version=3.0.5701.0,
Culture=neutral, PublicKeyToken=3de6eb684226c24d' or one of its dependencies.
The system cannot find the file specified.
Source Error:
Line 165: Client events are sinked through this router as well.
Line 166: -->
Line 167: <add verb="*" path="*.wgx" type="Gizmox.WebGUI.Server.Router,Gizmox.WebGUI.Server, Version=3.0.5701.0,Culture=neutral,PublicKeyToken=3de6eb684226c24d" />
Line 168:<!-- <add verb="*" path="*.wgx" type="Gizmox.WebGUI.Server.Router,Gizmox.WebGUI.Server, Version=2.0.5701.0,Culture=neutral,PublicKeyToken=3de6eb684226c24d" /> -->
Line 169:
|
Source File: C:\WebGUITest3\WebGUITest3\WebGUITest3\web.config Line: 167
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Gizmox.WebGUI.Server, Version=3.0.5701.0, Culture=neutral, PublicKeyToken=3de6eb684226c24d' 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].
|
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
Obviously, I have tried with both .Net 2.0 and .Net 3.5 assemblies.
Does the Server dll need to be in the GAC for IIS to find it?
Thanks,
[email protected]
|
|
|
|
|
|
|
|
Re: Could not load file or assembly 'Gizmox.WebGUI.Server, |
|
|
Hi,
What do you mean that you "have tried both .net 2.0 and .net3.5 assemblies" ?
If you are using Visual Studio 2008 you use Net 3.5 comonents, and you must make sure every Gizmox DLL in your project is from that version, otherwise you will have problems. Same goes for if you are using Visual Studio 2005, then you use .net 2.0 Gizmox DLL's.
You do not have to install anything special on the server running IIS, except for Microsoft .NET. Version 2 of MS.NET will be needed. All the Gizmox DLL's required for your app should be on the bin folder of your application, and are not required to be in the GAC of the server. You must make sure you have all of them there.
I see by the error, that your "add verb" line from web.config indicates that you are currently using Gizmox NET3.5, and then you must make sure your web.config line in the <configsections> references the same version like this:
<configSections>
<section name="WebGUI" type="Gizmox.WebGUI.Common.Configuration.ConfigHandler, Gizmox.WebGUI.Common, Version=3.0.5701.0, Culture=neutral, PublicKeyToken=263fa4ef694acff6" />
</configSections>
Usually the error you get indicates a missing or wrong DLL. I recommend you open your project, remove the bin folder, make sure you have all the Gizmox DLL's with Copy Local = True, then recompile your project. After that you should copy the contents of your bin folder from your project's bin folder to your server app's bin folder and try again.
Palli
Páll Björnsson - Visual WebGui support team - Email: [email protected]
|
|
|
|
|
|
|
|
Re: Could not load file or assembly 'Gizmox.WebGUI.Server, |
|
|
Thanks for your response. I removed the bin folder and rebuilt the project (I am using SharpDevelop with the compile target platform = Net 3.5). The bin folder was recreated with the Client, Common, Forms and Server DLL's there (I had set local copy = true) for all of the Gizmox references). I still receive the same error.
The virtual directory path points to the folder directly above the bin folder. I am trying to follow the example in the "Free all the way" tutorial.
I know this is working for others, I fail to see how my environment is differing from your tutorials. Thanks for your help.
[email protected]
|
|
|
|
|
|