Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oops. I deleted a file and now I can't compile

Status
Not open for further replies.

DarwinIT

Programmer
Apr 25, 2008
142
US
I was getting an error that something was referenced in two modules - so I deleted the oldest of them. Then I discovered I had opened the wrong project and now when I try to compile, I get an error

"the type DJP.Global is defined in an assembly that is not referenced. You must add a reference to assembly App_Code.xxxx (this is the file I deleted). How do I fix this problem?
 
Code:
How do I fix this problem?
Get it from a backup source if you have one.
 
is this a web application or a web site? I'm guessing a website because vs creates dynamic/random dlls. with a web application the project is compiled into one, appropiately named, assembly.

if it's a website you should be able to recompile the site and have it working. if you deleted the file containing DJP.Global then you need to restore the file and recompile.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
This is a website and the file is in the temporary ASP.NET files.
C:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\7d478dea\e301f31a

I don't back those files up.

I just renamed the whole folder corresponding to my website folder and now it compiles.
Thanks for your input!!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top