473,796 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

All of a sudden can't load into web forms designer

I was working in VS creating web pages and testing them in debug for our
intranet site, when suddenly I went to run the app and got the error message
that there were build errors. To my suprise there were suddenly build
errors for all the pages in the project! Following the errors, I find that
the System objects are no longer recognized and have blue lines under them
indicting they are not defined. The references section of the project lists
a line that says "System" and I haven't been changing things in References
lately. Now I see that I can not open any page in the VS Form Designer,
even though when I bypass the error "There were build errors, Continue?" the
site actually runs.

Every page seems to error on the following objects:
MyBase.Load
System.Object
SysteEventArgs
"System.Web.UI. Page is not defined"
<a number of other various objects starting with "System.... ">
Request not decared

Even adding a new WebForm.aspx file will not let me look at it through the
VS Form Designer. The project is acting like a primary dll was removed or
something. I opened up another project on the same workstation and it had
no problem. I have also cold-rebooted the machine and tried everything
again.

Did something uninstall itself? What happened? What did I do wrong? How
can I get the debug errors to go away?

Scott
Nov 18 '05 #1
2 1293
Hi Scott,

From your description, one of your web project is unable to rebuild because
the "System" namespace classes are not recognized though all the
assemblies are referenced , yes?

It seems abit strange, have you ever changed any setting in the project?
I've searched some former issues and some similiar issues are caused by the
mulit-project referenced or source control tools. Is the project be
referenced by any other project or reference any other project? Or have you
used any source control tools such as VSS ?
Some times this will cause such problem. Also, I think you can try the
following means:

1. Remove those assembly references in the project (such as System,
Sytem.Xml , System.Web....) . And then readd them again into the project
and try rebuilding it.

2. If the above #1 still not works, I think you can create a new webproject
and try adding those pages and components classes in the old project into
the new one and build the new one.

Please have a try. If you have any new findings, please feel free to post
here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #2
Steven,

Thank you for your ideas. Through a process of elimination I narrowed it
down to a specific form. Here is the problem: the form is named "System".
Because the form was named System it tried to create a new Class called
System which obviously would cause problems. So, I changed the class to
"System1" which appears to have corrected the problem.

Thanks for your help.

Scott

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:1g******** ******@cpmsftng xa10.phx.gbl...
Hi Scott,

From your description, one of your web project is unable to rebuild because the "System" namespace classes are not recognized though all the
assemblies are referenced , yes?

It seems abit strange, have you ever changed any setting in the project?
I've searched some former issues and some similiar issues are caused by the mulit-project referenced or source control tools. Is the project be
referenced by any other project or reference any other project? Or have you used any source control tools such as VSS ?
Some times this will cause such problem. Also, I think you can try the
following means:

1. Remove those assembly references in the project (such as System,
Sytem.Xml , System.Web....) . And then readd them again into the project
and try rebuilding it.

2. If the above #1 still not works, I think you can create a new webproject and try adding those pages and components classes in the old project into
the new one and build the new one.

Please have a try. If you have any new findings, please feel free to post
here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

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

Similar topics

0
2108
by: Anthony | last post by:
is there a way to stop combox from firing SelectedIndexChanged events on loading when it is databinded? everytime my form loads, SelectedIndexChanged fires 4 times? using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms;
0
413
by: Hector | last post by:
I have a ComboBox set up in a non-modal form. When a selection is made from the ComboBox, the handler code closes the form, but then the system crashes because of an unhandled NullReferenceException. There is a reference to Unsafe Native Methods and Callback functions, but Interop Services are not used. What is going on ? The problem does not occur if the form is made modal. Any thoughts would be appreciated. The code appears below for a simple...
5
2335
by: Chris | last post by:
Hi all I would appreciate some help with a program I have written from the Sams teach your self c# book. I have checked my code several times and even rewritten it. when I compile (Sharp develop) I get the following error : ------ Build started: Project: Pic view 2 Configuration: Debug ------ Performing main compilation...
6
32124
by: Sleepy | last post by:
Visual Studio 2003 Windows Forms application: Is there a way that I can add a form as a TabPage? My goal is to develop a series of forms and load the dialogs dynamically in a tab control based on the user selection of a particular function. I would like to leverage the usefulness of the Form Designer to layout my dialogs and then load them into TabPages. I tried setting the TabPage as the Form.Parent and various other things; all
5
2788
by: Trint Smith | last post by:
I need to display a timer ticking down. Example: 11h:52m:39s to 00h:00m:00s How can I do this? Thanks, Trint .Net programmer trintsmith@hotmail.com
4
1802
by: Larry Smith | last post by:
Hi there, Don't know if I picked the correct NGs or not but maybe someone can steer me in the right direction. Does anyone know if a class exists to capture the same info now wrapped in "InitializeComponent()". I want to capture all form details for a given form at design time (properties and controls) but I can't find anyway to do it. Note that reading a form's ".resx" files won't do either (it's only good for localized forms but in any...
3
4035
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user selects? thanks...
3
1283
by: RallyDSM | last post by:
Pre STory - I've had a lot of problems with this program, and I just added the last part of it (the add item code) and now an older part of the program crashes. Public Structure Stocks Public stockName As String Public numShares As Double Public datePurchased As String Public purchasePrice As Double Public currentPrice As Double
8
3159
by: garyusenet | last post by:
I was originally taught to double click the form, to get to the load event handler and in there put anything I want to happen when my form is opened. However, today whilst reorganising some code for clarity it struck me that I could just have well put this code in the forms constructor. The code simply populates text boxes etc... on the form with values. So i wondered as a rule of thumb is it generally better to do things like...
0
9673
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
9525
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
10452
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...
0
10221
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
10169
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
9050
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
7546
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
6785
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();...
1
4115
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 we have to send another system

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.