Resource file "*.resx" cannot be found

Uncategorized Add comments

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

image

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

<EmbeddedResource Include=”panorama\search.aspx.resx”>
     <DependentUpon>search.aspx.cs</DependentUpon>
   </EmbeddedResource>
   <EmbeddedResource Include=”panorama\tellafriend.aspx.resx”>
     <DependentUpon>tellafriend.aspx.cs</DependentUpon>
   </EmbeddedResource>
   <EmbeddedResource Include=”panorama\upload.aspx.resx”>
     <DependentUpon>upload.aspx.cs</DependentUpon>
   </EmbeddedResource>

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

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

2 Responses to “Resource file "*.resx" cannot be found”

  1. nodewave Says:

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

  2. Natty Dreed Says:

    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 ;)

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in