Resource file

Visual Studio 2002 and 2003 created resx resource files for each and every ascx and aspx file. When upgrading to ASP.NET 2.0 these files are no longer needed as resource files are centrally stored in the resource folders and compiled.

So if after removing the resx files you get compilation errors such as the following


simply open the project file (.csproj or .vbproj) in Notepad and delete the entries that look like this:

<EmbeddedResource Include="panorama\search.aspx.resx">
<EmbeddedResource Include="panorama\tellafriend.aspx.resx">
<EmbeddedResource Include="panorama\upload.aspx.resx">

Then the project should build without problems. Hope it helps.

nodewave: Thanks it saved me some time. By the way, your tip also works under Visual Studio 2005 and Visual Studio 2008.

Natty Dreed: Thank You Thank You Thank You You solve a big problem I could lose 1 months from work but Thanks to Allah(God) Then You ;)

Karthik: Thanks, this tip was very useful and it worked

kvs: Thank you very much. This is very useful post.

ak: Thank you. This solved my problem.

Karlo: Great tip, solved. Thanks

Shefali: Thank you! Its a great tip and worked like a charm..

hariprasad: hi.., Thank u very much saved a lots of my time

Kamalakant: Thanks so much.

jb: hi.,grt job..

Dino: You're my hero!!

Posted: 10 July 2007

comments powered by Disqus