473,795 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

could not load type namepsace.Globa l

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.Globa l

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 1462

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

Similar topics

1
639
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 Description: An error occured during the parsing of a resource required to service this request. Please review the following specific parse error
0
1366
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'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Consumer.Global" %> Source File: C:\Inetpub\wwwroot\DEMO\Roboform\global.asax Line: 1
1
397
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 message is: Could not load type 'theClassName.Global' Line1: <%@ Application Inherits="FeedBuilder.Global" %> Source: /appDirectory/global.asax I may not have a complete global.asax as the global.asax contains that one
4
67266
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 application on yet another development machine (were trying to get a new revision control system up and running on this project) but the application always reports 'Could not load type' when we try and run a page.
2
10493
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 this scenario's sake. Next, I have a test machine, again running Win 2k, we'll call it "Test", that we use to drop all our compiled applications onto for testing before release to our clients.
4
1377
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 inetmgr itself. Then I get this error Could not load type 'Sample.Login'.
16
5047
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: <%@ Application Codebehind="Global.asax.vb" Inherits="<Namespace>." %> I've done a lot of things I've found on the web to no avial, but here are some unique things about what is happening to me.
8
13208
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 compiles & runs fine locally, but when I copy to the production machine, I get this error: Parser Error Message: Could not load type 'Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %> Source...
4
3717
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' Followed by: Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="TestCAD.Global" %>
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2920
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.