473,698 Members | 2,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

One kind of error opening codebehind file in Visual Studio.NET 2003 (solved)

Hi,

after fighting with an issue in Visual Studio.NET 2003 in aspx, I've
finally figured out what it is and maybe you might find it usefull.

Symptoms:

When you try to open a .aspx or related file (like a usercontrol) you
receive the message:
"The class file "WebForm1.aspx. cs" specified as the codebehind for
"WebForm1.a spx" could not be loaded. Make sure that the codebehind
attribute
in the page or control directive properly references an existing code
behind
file"

My error was:

This is an error message coming directly from the Visual Studio
Envrionment, not any IIS or asp_net thing and can only happen in a
multi-language scenario. I originally had the German Version of Visual
Studio.NET 2003 installed. I then removed that version and installed
the English Version. Unfortunately not all original German Version
things were removed with the result that I had a English-German
mish-mash. Everything worked fine except when locale related things
were accessed.
One case is when you try to open an aspx page. It accesses the
'VS2003\VC#\Des igner Templates' Directory and in there is either a 1031
(for german) or 1033 (for english). I have 1033 installed but somewhere
the system still believes it's german and tries to go for 1031 - which
of course it can't find. That in turn causes the error.

Solution:

Unfortunately as far as I can tell, the only solution for that error is
to completely deinstall VS.NET and make sure that everything is
removed. That includes:

Making sure the registry is clean with:

HKEY_CURRENT_US ER\Software\Mic rosoft\VisualSt udio\7.1
HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\VisualS tudio\7.1

making sure the dirs are gone:

The installation directory for VS.NET.

..\Documents and Settings\[USERNAME]\Local Settings\Applic ation
Data\Microsoft\ VisualStudio

.\Documents and Settings\[USERNAME]\Application
Data\Microsoft\ VisualStudio

c:\program files\microsoft visual studio .Net

Once that all is removed and you re-install your VS.NET 2003, things
should be working again. Of course using a locale as part of a
directory isn't exactly the best idea, but there you go...

Greetings,
Eduard Ralph

Feb 1 '06 #1
0 1123

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

Similar topics

0
6125
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
0
1147
by: RC | last post by:
1) Open Visual Studio .Net 2003 2) Create new project Visual C # (Windows application) 3) Close Visual Studio .Net 2003 4) Compile from command line "devenv.exe /rebuild Debug /project Sample Sample.sln" 5) Open Visual Studio .Net 2003 6) Open Form1 --> Error on document loading If delete the hidden File .\obj\Debug\Sample.projdata I do not have more this error
6
4748
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
2
1663
by: Boni | last post by:
Dear all, I am trying to dynamically create the instance (withActivator.CreateInstance) of cManop class This class uses as reference Dep4Man class. But somehow at the invokation time I get a exception, that Dep4Man class couldn't be found. The class is regersered with regasm Dep4Man.dll /codebase But the shown Appbase is not as it should be!!! May be somebody has an idea, what could be wrong? Thanks, Boni
2
5737
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project in debug mode, the following errors happened: d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xdebug(29): error C2365: 'new' : redefinition; previous definition was a 'member function' d:\Program Files\Microsoft Visual Studio...
1
2581
by: Chuck Haeberle | last post by:
We have need to share functionality across all of our application web pages, so we decided to subclass from System.Web.UI.Page. When we create a new aspx, the Visual Studio designer automatically puts in the codebehind, as such: public class testsubclass : System.Web.UI.Page We change this to be: public class testsubclass : OurProject.Library.BaseWebPage Which is defined as:
1
2282
by: ericvdb | last post by:
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled from the textbox. When I open the page in IE (whatever version) i get : ############################################################ The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then
4
2717
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the source of the files...
0
1092
by: jandry | last post by:
I got a strange PC on 2 PCs. They have Windows 200 SP4, Visual Studio 2003 and Framework 1.1. We are doing asp.net with vb langage. When I try to open design, even after recompiling solution, I got the message "The class file 'page.aspx' specified as the codebehind for 'page.aspx.vb' could not be loaded. Make sure that the codebehind attribute in the page or control directive properly references an existing code behind file." My solution...
0
8683
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
8611
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
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8904
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
8876
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5867
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
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.