Solved

Broken ASP.NET 4.0 Project

Posted on 2014-02-04
4
766 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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