Solved

Broken ASP.NET 4.0 Project

Posted on 2014-02-04
4
748 Views
Last Modified: 2014-02-05
I have an ASP.NET 4 project that was working and now it not working.

I'm using Visual Studio Professional 2013 (12.0.21005.1) and when I try to rebuild a particular ASP.NET 4.0 Web Application I get the following errors:

Type 'StringBuilder' is not defined.
Type 'List' is not defined.
Type 'Exception' is not defined.
Type 'iTemplate' is not defined.
Type 'SmptClient' is not defined.
Type 'System.IO.FileInfo' is not defined.
Type 'System.Web.UI.Page' is not defined.

etc.

Also, when I try adding a reference to System I get an error stating:
The Web site is already referencing the assembly 'System'

How do I fix this?  I have several Web Applications and this is the only one behaving this way.
0
Comment
Question by:Ray Turner
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
Sammy earned 500 total points
ID: 39834810
Right click on your solution and click cCean Solution then build.
If this doesn't help, close your project, open your bin directory using windows explorer and delete all dlls from there then rebuild your project

good luck
0
 

Author Comment

by:Ray Turner
ID: 39835178
Where is the Clean Solution in VS2013?
0
 
LVL 27

Assisted Solution

by:Sammy
Sammy earned 500 total points
ID: 39836160
Its on the solution not the project, see the attached screen capture
2014-02-05-11-49-51.png
0
 

Author Closing Comment

by:Ray Turner
ID: 39836324
Thanks!  I'll try it next time.  For the sake of expediency, I downloaded the website; replacing my development code.  Everything is working fine now.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now