Forum  General Visual ...  Install It!  Could not load file or assembly 'Gizmox.WebGUI.Server,
Previous Previous
 
Next Next
New Post 4/4/2009 3:44 PM
  palli
14298 posts
1st Level Poster




Re: Could not load file or assembly 'Gizmox.WebGUI.Server, 

Hi,

That sounds good. Please check your web.config and look for the line below:

<add verb="*" path="*.wgx" type="Gizmox.WebGUI.Server.Router,Gizmox.WebGUI.Server,Version=3.0.5701.0,Culture=neutral,PublicKeyToken=3de6eb684226c24d" />

Make sure you only have one such line active, and make sure you have version= as above.

My bet is that you have the wrong version in there, but please confirm.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/4/2009 4:36 PM
  kenn.minear
422 posts
2nd Level Poster


Re: Could not load file or assembly 'Gizmox.WebGUI.Server, 
Modified By palli  on 1/12/2010 6:44:26 PM)

 I'll keep trying, I setup a new solution using Visual Web (VS2008).

One problem with VS, when I add the Gizmox references, they don't show up in the Solution Explorer pane, so I cannot set the local copy to true (I had to manually copy them into the bin directory before testing).  When I added the Server dll, it shows up in the bin directory.  However the solution compiles OK with the Form1 class referencing the Gismox namespaces with the using statement.

If I execute in debug mode from VS, I do not get the error loading the Server dll.  If I browse the virtual directory from IIS I do get the Server dll not found error.

When I debug the solution, I get the default.aspx form.  If I change the URL and add Form1.wgx I get the following error:

Server Error in '/WebGUITest5' Application.

Could not find form type WebGUITest5.Form1, WebGUITest5.

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.Exception: Could not find form type WebGUITest5.Form1, WebGUITest5.

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.

Stack Trace:

[Exception: Could not find form type WebGUITest5.Form1, WebGUITest5.]
   Gizmox.WebGUI.Server.Context.40AAA(String 0AAAA, String 1AAAA, Object[] 2AAAA) +128
   Gizmox.WebGUI.Server.Context.CreateMainForm() +278
   Gizmox.WebGUI.Server.Content.GetMainForm() +411
   Gizmox.WebGUI.Server.Content.ProcessRequest(HttpContext objHttpContext) +1091

[HttpException (0x80004005): Could not find form type WebGUITest5.Form1, WebGUITest5.]
   Gizmox.WebGUI.Server.Content.ProcessRequest(HttpContext objHttpContext) +6076
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3074; WebGui Version:2.0.50727.3074

 

At least I feel like I'm finally making some progress with this. 

Thanks

 


kenn@kennware.com
 
New Post 4/4/2009 4:49 PM
  kenn.minear
422 posts
2nd Level Poster


Re: Could not load file or assembly 'Gizmox.WebGUI.Server, 

 Just a side note, I opened my Firefox browser and entered the URL

http://localhost/webguitest5/

and got the IIS message could not load the Server.dll again.  So far I can only get past that running from VS in debug mode.

 


kenn@kennware.com
 
New Post 4/4/2009 6:22 PM
  jayhobbs
1674 posts
1st Level Poster




Re: Could not load file or assembly 'Gizmox.WebGUI.Server, 

Hi Kenn,

Unless you have some redirection set up you need to give the full name

eg http://localhost/webguitest5/Form1.wgx

I hope this helps

Jay

 


 
New Post 4/5/2009 7:24 AM
  kenn.minear
422 posts
2nd Level Poster


Re: Could not load file or assembly 'Gizmox.WebGUI.Server, 

 OK, I got the can't display form problem resolved, the "Free all the way" document is not very clear on using VS 2008, but combined with the tutorial on how to migrate a Windows Form application to VWG brought it all together.

In summary, I created a second Visual C# Windows application project, designed my form (Form1) and changed the output type to a class library.  I then created a reference to the Gizmox Forms library and changed all references from System.Windows.Form to Gizmox.WebGui.Form.

In my Visual Web Designer project I set a reference to the DLL output from the C# project and changed the Applications section of the WebConfig file to use the namespace and assembly name of the C# project output.  It works, but only under debug.

I still get the unable to load the Server DLL if I try and to navigate to the web page from any browser (for example "http://localhost/webguitest6/Form1.wgx" - I still get "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."

I realize that debug uses a temporary virtual path to execute from, I still cannot resolve why I get this error.

I have verified that the Server DLL is in the bin directory of the virtual path, and that it is the correct version and has the correct public key.

Thanks for everyone's help.

 


kenn@kennware.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Install It!  Could not load file or assembly 'Gizmox.WebGUI.Server,
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS