472,950 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 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 1381
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
0
by: Bill Mitchell | last post by:
Each time I run my VB.NET app in debug mode using a connected Pocket PC device, the VS status bar says "Deploying <myappname>" and when my application runs on the PPC it ends up creating a new...
5
by: Richard Mintz | last post by:
Hi, I am trying to deploy a C# application to a Windows 2000 machine. When I try to run the app after the install i get a runtime error. the setup works on both XP and windows 2003 server...
1
by: Duncan | last post by:
Guys a little please, I'm creating a windows application that uses a webservice and WSE1.0 to talk to a database, currently this works fine when using localhost, I now want to test the...
11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
0
by: Amit | last post by:
Hi,I am new to .net 2.0 and have just built one web application and deployed the application on web server. The problem which i am facing is that if i make any changes in the .cs files or aspx...
0
by: sanjaypasumarty | last post by:
Hello, I am facing issues when i am deploying application on WebSphere Process server. The appplication is not deploying successfully and showing some DB2 errors in the logs. We are unable to find...
6
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Using Visual Studio 2005, I have created 4 small DLLs that our company projects can use to access common tools included in each of the separate DLL files. Our Visual Studio 2005 applications...
5
by: RobinS | last post by:
My company is considering moving up from .Net 2.0 to .Net 3.5(SP1) as a prerequisite on the ClickOnce deployment for our application. Does anybody have any experience deploying .Net 3.5 either as...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

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.