473,491 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with Development

We have an application developed originally by a third party developer (who
is out of the picture now). The application is a combination of several
projects, a web service, and a web site application. The application was
written in VS2003 and C#. Upon receipt of the application, I converted to
VS2005. I have managed to remove all of the references from the compiled
DLLs and replace them with references to the project code, except for one:
the web application. When I attempt to remove the reference to the DLL
produced by the web application, I can no longer compile the web application
(it is looking for the namespace created in the web application). This is
the error I receive:

Error 1 Could not load type 'MyPortal.Intranet.Global'.
C:\Inetpub\wwwroot\development\MyPortal\Global.asa x 1

I have tried to recreate the issue with a brand new project, but cannot do so.

How do I remove the reference to the DLL from the web application, yet still
compile the project?
Nov 2 '06 #1
2 1101
I'd start by removing the global.asax from the web project. It may not have
had any code in it anyway. If it did, you can add a new one and try to
reconstruct it.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Lucas Davenport" wrote:
We have an application developed originally by a third party developer (who
is out of the picture now). The application is a combination of several
projects, a web service, and a web site application. The application was
written in VS2003 and C#. Upon receipt of the application, I converted to
VS2005. I have managed to remove all of the references from the compiled
DLLs and replace them with references to the project code, except for one:
the web application. When I attempt to remove the reference to the DLL
produced by the web application, I can no longer compile the web application
(it is looking for the namespace created in the web application). This is
the error I receive:

Error 1 Could not load type 'MyPortal.Intranet.Global'.
C:\Inetpub\wwwroot\development\MyPortal\Global.asa x 1

I have tried to recreate the issue with a brand new project, but cannot do so.

How do I remove the reference to the DLL from the web application, yet still
compile the project?
Nov 3 '06 #2
Hi,

Lucas Davenport wrote:
We have an application developed originally by a third party developer (who
is out of the picture now). The application is a combination of several
projects, a web service, and a web site application. The application was
written in VS2003 and C#. Upon receipt of the application, I converted to
VS2005. I have managed to remove all of the references from the compiled
DLLs and replace them with references to the project code, except for one:
the web application. When I attempt to remove the reference to the DLL
produced by the web application, I can no longer compile the web application
(it is looking for the namespace created in the web application). This is
the error I receive:

Error 1 Could not load type 'MyPortal.Intranet.Global'.
C:\Inetpub\wwwroot\development\MyPortal\Global.asa x 1

I have tried to recreate the issue with a brand new project, but cannot do so.

How do I remove the reference to the DLL from the web application, yet still
compile the project?
Open the file Global.asax in a text editor (NOT the code behind, the
asax file itself). On top of the file, you'll see how the code-behind is
referenced. My guess is that your file uses "codefile" to reference the
CS file, but the CS file is not found. If that's the case, you must use
"publish" to deploy your site, in order to include the class in the DLL.
Or, you can remove the "codefile" attribute and reference the type using
the "inherits" attribute only.

Another possibility is that the type referenced is wrong, that happens
sometimes when you change the namespace in the code-behind, but forget
to update the front-end files.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1381
by: Dave | last post by:
I've been having trouble with the development of my ASP.NET site. The problem stems from the fact that I use one development server for many projects like www.devserver.com/project/, but each...
15
2372
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
16
1712
by: Simon Verona | last post by:
I have a problem with automating MS Word through vb.net My code is : Dim objword As new Word.ApplicationClass Try objWord.Documents.Open(letterfile)...
7
5776
by: George Copeland | last post by:
This is a request for assistance analyzing a problem we are experiencing in our VB6 development environment. All our code is developed in VB6, and our persistance layer is SQL Server. We are...
1
2382
by: svijay | last post by:
hi I have got a strange problem. May I know any solution for this. Here is the detailed description about the problem We have got a mainframe system and also production and development...
6
2245
by: Tony Johansson | last post by:
Hello! We have a C#.ASP.NET application that runs on a IIS 6. The application contains actually several asp pages but there is no GUI. The application receive an xml file that is processed....
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.