473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

could not load type namepsace.Global

Sky
Hi,

Like many others, I've search the newsgroups and KB's and none quite seem to
be the problem I am encountering.

The problem is as follows:

1) I originally created an ASP.Net Web Application and developed the app as
normal. In doing this, when running the app, VS2005 creates a Virtual Server
with it's own port number to host the application in - fine, no problems.

2) I decided that I wanted the app to run within IIS and therefore removed
the project from the solution and added it in again as an existing Web Site
after web sharing the projects directory.

3) This ran fine for a while until VS2005 crashed(!) whilst doing
Performance problems. Suddenly, the modules were messed up and VS2005 would
not compile the source code, but only use the already built DLL's in the bin
directory. However, when removing and adding the project as a Web Application
(not a Web Site) I could develop against it fine.

4) Putting it back as a web site used the new DLL's created when built as a
web app. However, the source files weren't getting compiled still. Here's
where the problems start. If I removed the DLL's then I get the error

could not load type namespace.Global

The project was not recompiling the DLL from the source files (the main
problem) and therefore couldn't find anything in the bin directory.

Why is VS2005 refusing to build the project when it's added as an existing
Web Site? I have had this problem numerous times whilst migrating from 2003
web sites to 2005. It's a real pain, and one I haven't fully resolved.

I have experimented and found that adding the Web Folders App_Code and
moving the global.asax file there helps, but it still fails to find the web
pages that are placed in the root directory.

Can anyone help with this please? Most of the forums suggest it's a
namespace issue, but no namespaces have changed.

I hope someone can help.

Kind Regards

S. Rumsey
Sep 29 '06 #1
0 1439

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

Similar topics

1
by: Tyson Zwicker | last post by:
Hi, I'm suddenly unable to run any ASP.net applications. Last week everything worked. But now (Mondays!) I get the same error from _every_ application I've written: Parser Error ...
0
by: pmud | last post by:
Hi, I have an ASP.NET project using C# code. But when I hit key F5 so that the project is compiled & run, I get the error :: Parser Error Message: Could not load type 'Consumer.Global'....
1
by: clintonG | last post by:
The error is documented at MSDN but building the project as the MSDN document instructs does not resolve the issue for me. I hope others may comment about other circumstances. The actual...
4
by: Neil Ramsbottom | last post by:
Hi, I have built an application using ASP.NET. I can compile and run this application fine on a development machine, and on another development machine. I tried to then run the same...
2
by: Daniel Bass | last post by:
Scenario (Hardware) ---------------------- I've got an engineering source server with Win 2k on it. We use it for all the source files for our projects etc... Let's call it "Engineering" for...
4
by: Kiran | last post by:
Hi, I copied a whole solution from a machine to my machine. I have put the folder in a folder in E Drive. I created a virtual directory from inetmgr and browsed a folder and then a wepage from...
16
by: thefritz_j | last post by:
We just converted our VS2003 1.1 VB web project (which was working fine) to VS2005 2.0 and now I get: Parser Error Message: Could not load type '<Namespace>.'. Source Error: Line 1: <%@...
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
4
by: Mark Brown | last post by:
I have a web application that was working fine until recently. It runs just fine in the IDE. When I try to run it from another browser, I get this error: Could not load type 'TestCAD.Global' ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.