[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 902
  • Last Modified:

Broken ASP.NET 4.0 Project

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
Ray Turner
Asked:
Ray Turner
  • 2
  • 2
2 Solutions
 
Sammy AgeilCommented:
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
 
Ray TurnerSenior ConsultantAuthor Commented:
Where is the Clean Solution in VS2013?
0
 
Sammy AgeilCommented:
Its on the solution not the project, see the attached screen capture
2014-02-05-11-49-51.png
0
 
Ray TurnerSenior ConsultantAuthor Commented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now