I have created application using Web Application Project. I have several user controls in it. All user controls are located in the Controls subfolder. Each of them uses resource file which is located in the App_LocalResources folder. Also I have several
pages. They also use resources. Corresponding resources are located in the App_LocalResources folder. So the structure of folders is like this:
- Web site folder
-App_LocalResources
-----Controls
---------App_LocalResources
When I run my web application from the VS2005 environment it works fine.
The problem appeared when I had published the site. The published version doesn't contain the second App_LocalResources folder (which is located in the Controls subfolder). It just contains App_LocalResources folder in the root folder. And this is way published
application doesn't work. But it works if I move App_LocalResources subfolder manually.
Help me please. What should I change to get working version just after publishing site (without doing it manually)?
bolikdimon
0 Points
2 Posts
Problem with App_LocalResources folder
Apr 10, 2008 09:09 AM|LINK
Hello all.
I have created application using Web Application Project. I have several user controls in it. All user controls are located in the Controls subfolder. Each of them uses resource file which is located in the App_LocalResources folder. Also I have several pages. They also use resources. Corresponding resources are located in the App_LocalResources folder. So the structure of folders is like this:
- Web site folder
-App_LocalResources
-----Controls
---------App_LocalResources
When I run my web application from the VS2005 environment it works fine.
The problem appeared when I had published the site. The published version doesn't contain the second App_LocalResources folder (which is located in the Controls subfolder). It just contains App_LocalResources folder in the root folder. And this is way published application doesn't work. But it works if I move App_LocalResources subfolder manually.
Help me please. What should I change to get working version just after publishing site (without doing it manually)?
Thanks.
anas
All-Star
73431 Points
7859 Posts
Moderator
Re: Problem with App_LocalResources folder
Apr 10, 2008 11:13 PM|LINK
hi
this happened because the Buil action for each resource file in that folder is not set to "content"
to change the Buil action , right click on every resource file , go to proeprties , change the Build action to "content"
Regards,
bolikdimon
0 Points
2 Posts
Re: Problem with App_LocalResources folder
Apr 11, 2008 06:45 AM|LINK