Deploying ASP.NET Application Issue

  • Thread starter Thread starter John Christensen
  • Start date Start date
J

John Christensen

I'm currently having an issue while trying to deploy a new ASP.NET
application from my personal machine to our development web server. After I
copy the folder over and create an IIS application in that directory, I go
to the site and get the following error:

Could not load type 'GeneseeSurvey.Reporting.ActionPlanning.Global'.

The dll for the web project, ActionPlanningWeb.dll, is located within the
bin directory, which gives Full Control to Everyone.

Does anyone have any ideas as to what's going on here?

John Christensen
Applications Developer
Genesee Survey Services, Inc
 
It sounds like you've made sure that the bin folder is in the correct folder
and has permissions set up correctly. Also check that your machine.config
file contains the line <add assembly="*"/>. This file can be found in
C:\[WindowsFolder]\Microsoft.NET\Framework\[Version]\config.

Hope this helps,

Mun
 
It does, as does the web.config file in the actual application.

As a note, the first (and really only) line in global.asax is this:

<%@ Application CodeBehind="Global.asax.cs"
Inherits="GeneseeSurvey.Reporting.ActionPlanning.Global" %>

I tried changing to to:
<%@ Application src="Global.asax.cs"
Inherits="GeneseeSurvey.Reporting.ActionPlanning.Global" %>

In this case, the error changes to:
CS1595: 'GeneseeSurvey.Reporting.ActionPlanning.Global' is defined in
multiple places; using definition from
'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\reports_wd10prv_actionplanning\75a0625c\76fdbee8\e4omgakv.dll'

I assume that the compiler is trying to dynamically create an assembly
holding global.asax.cs. Is there a way to tell it to not use the .cs version
but instead to get the compiled class from the assembly in the bin
directory?

John

Munsifali Rashid said:
It sounds like you've made sure that the bin folder is in the correct folder
and has permissions set up correctly. Also check that your machine.config
file contains the line <add assembly="*"/>. This file can be found in
C:\[WindowsFolder]\Microsoft.NET\Framework\[Version]\config.

Hope this helps,

Mun




John Christensen said:
I'm currently having an issue while trying to deploy a new ASP.NET
application from my personal machine to our development web server.
After
I
copy the folder over and create an IIS application in that directory, I go
to the site and get the following error:

Could not load type 'GeneseeSurvey.Reporting.ActionPlanning.Global'.

The dll for the web project, ActionPlanningWeb.dll, is located within the
bin directory, which gives Full Control to Everyone.

Does anyone have any ideas as to what's going on here?

John Christensen
Applications Developer
Genesee Survey Services, Inc
 
Do you still get the error if you delete global.asax ?

Also, when you compile this project, and try and view it locally, does it
work okay?

Mun
 
When I delete global.asax, I end up just having the same problem with
default.aspx.

However, when I compile the project and try to view it locally (without
going through Visual Studio.NET), it does work with the CodeBehind syntax.
I'm not sure why that would be.

John
 
Very strange. I'm at a bit of a loss, I'm afraid. If it works locally,
there's no reason it shouldn't work on the server. You could try removing
the .net framework, and re-installing it to update any corrupt configuration
files, and also, removing the IIS application, and then recreating it.

Other than that, I'm not really sure what else you can do to resolve the
problem. Sorry.

Mun
 
Back
Top