473,498 Members | 1,218 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 1280
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.microsoft.com> wrote in message
news:1g**************@cpmsftngxa10.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
2079
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...
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....
5
2320
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...
6
32055
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...
5
2763
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
1783
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...
3
3956
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...
3
1260
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...
8
3132
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...
0
7124
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
6998
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...
0
7200
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...
0
7375
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...
0
5460
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
4904
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
3090
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
287
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.