471,092 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Deploying ASP.NET Application Issue

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
Nov 17 '05 #1
5 1326
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" <jo**************@gensurvey.com> wrote in message
news:O%*****************@TK2MSFTNGP12.phx.gbl...
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

Nov 17 '05 #2
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.G lobal" %>

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

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\Tempor ary ASP.NET
Files\reports_wd10prv_actionplanning\75a0625c\76fd bee8\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" <mun@**RemoveToReply**vefuk.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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" <jo**************@gensurvey.com> wrote in message
news:O%*****************@TK2MSFTNGP12.phx.gbl...
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


Nov 17 '05 #3
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

"John Christensen" <jo**************@gensurvey.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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.G lobal" %>

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

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\Tempor ary ASP.NET
Files\reports_wd10prv_actionplanning\75a0625c\76fd bee8\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


Nov 17 '05 #4
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

"Munsifali Rashid" <mun@**RemoveToReply**vefuk.com> wrote in message
news:ux**************@tk2msftngp13.phx.gbl...
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

"John Christensen" <jo**************@gensurvey.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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.G lobal" %>

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

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\Tempor ary ASP.NET
Files\reports_wd10prv_actionplanning\75a0625c\76fd bee8\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


Nov 17 '05 #5
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

"John Christensen" <jo**************@gensurvey.com> wrote in message
news:e%****************@TK2MSFTNGP12.phx.gbl...
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

Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rachel | last post: by
reply views Thread by Bill Mitchell | last post: by
1 post views Thread by Duncan | last post: by
6 posts views Thread by =?Utf-8?B?anAybXNmdA==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.