.NET Framework Bookmark and Share   
 index > MSBuild > Embedded resources in Web Application Project - AL.EXE problem
 

Embedded resources in Web Application Project - AL.EXE problem

Hello,

I have a problem regarding embedded resources in Web Application Project.
Everything was going well and everything has worked fine then suddenly yesterday I noticed weird entries in the build output:

Target GenerateSatelliteAssemblies:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:aspx
Target GenerateSatelliteAssemblies:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:en-us
Target GenerateSatelliteAssemblies:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:Master

This shouldnt happen. Does anyone know what is wrong ? There should only be en-us entry.

Now because of that, local resources in my ASP.NET application are not working.

Rolek
Rolek
Cause:
The issue was caused by "aspx", "Master" name was accidently registered as system culture.

Resolution:
Unregister them can fix the issue.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun
Hi Rolek,

Have you copied the full output content for AL.exe command? I suppose there should be/embed switch in the command.

Please check the embeded resource files and their extension name. If there is any resource name like: <Resource>.aspx.resx or <Resource>.Master.resx. You will see such output.

Hongye Sun [MSFT]

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun
Hello, thanks for reply.

Yes, there is a lot of files like: <Resource>.aspx.resx or <Resource>.Master.resx since this is Web App.
Below there is the whole output for AL command:

Target GenerateSatelliteAssemblies:
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:aspx /keyfile:..\MyProject\StrongKey.snk /out:obj\Debug\aspx\MyProject.Web.resources.dll /template:obj\Debug\MyProject.Web.dll /embed:obj\Debug\MyProject.Web.App_LocalResources.Login.aspx.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.AV.aspx.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.CR.aspx.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.CRProfile.aspx.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.MN.aspx.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.SS.aspx.resources

Target GenerateSatelliteAssemblies:
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:en-us /keyfile:..\MyProject\StrongKey.snk /out:obj\Debug\en-us\MyProject.Web.resources.dll /template:obj\Debug\MyProject.Web.dll /embed:obj\Debug\MyProject.Web.App_GlobalResources.GlobalButtons.en-us.resources /embed:obj\Debug\MyProject.Web.App_GlobalResources.Modules.en-us.resources /embed:obj\Debug\MyProject.Web.App_GlobalResources.PasswordChangeResult.en-us.resources /embed:obj\Debug\MyProject.Web.App_GlobalResources.RadResources.en-us.resources /embed:obj\Debug\MyProject.Web.App_GlobalResources.UniqueCheckStatus.en-us.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.AV.aspx.en-us.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.CR.aspx.en-us.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.CRProfile.aspx.en-us.resources /embed:obj\Debug\MyProject.Web.Controls.App_LocalResources.RWL.ascx.en-us.resources /embed:obj\Debug\MyProject.Web.Modules.Admin.Controls.App_LocalResources.SPMN.ascx.en-us.resources /embed:obj\Debug\MyProject.Web.Modules.SA.App_LocalResources.MNDL.ascx.en-us.resources /embed:obj\Debug\MyProject.Web.Modules.SA.App_LocalResources.FP.ascx.en-us.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.SS.aspx.en-us.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.Template.Master.en-us.resources /embed:obj\Debug\MyProject.Web.App_LocalResources.Login.aspx.en-us.resources /embed:obj\Debug\MyProject.Web.Controls.App_LocalResources.LI.ascx.en-us.resources /embed:obj\Debug\MyProject.Web.Modules.SA.App_LocalResources.ChngPass.ascx.en-us.resources

Target GenerateSatelliteAssemblies:
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:Master /keyfile:..\MyProject\StrongKey.snk /out:obj\Debug\Master\MyProject.Web.resources.dll /template:obj\Debug\MyProject.Web.dll /embed:obj\Debug\MyProject.Web.App_LocalResources.Template.Master.resources
Target _CopyFilesMarkedCopyLocal:

Remember, everything was fine until Wednesday.

Rolek
Rolek
Hi Rolek,

It is very strange since GenerateSatelliteAssemblies target in Micrsoft.Common.targets will filter all the culture names. Obviously aspx and Master are not valid extensions.

What .NET Framework version you build on?
Can you do a check in another machine and checks if the issue still persists?
If the code is under source control, can you get the code before Wednesday and try to repro the issue again?
If the issue happens in any code changes, can you check if there is any change to the project file after Wednesday?

May I have the full build log? Please send it to my email: hongyes@microsoft.com

Hongye Sun [MSFT]

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com




Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun
Hello,

Framework version: 3.5 SP1 + latest windows updates.

Everything is working fine on another machine with same framework version.

The version from before Wednesday doesnt work also :S
I have tried reinstalling the framework, but it didint work either.

Logs sent to above adress.

Thanks
Rolek
Rolek

Hi Rolek,

I have sent you an email.

It is an environment break issue. Have you changed anything in this machine recently? Especially the build targets file.

I reviewed the log file but sorry that the log's verbosity is not enough for me to identify the cause. Can you adjust the log verbosity level to diagnostic.
If you build in Visual Studio, you can change it by Tools / Options / Projects and Solutions /Build and Run / MSBuild project build output verbosity / Diagnostic

After setting, rebuild all projects.

In addition to the log file, can you also send me the targets file at C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets?

I will continue following up after I receive your updates. Have a nice day.

Hongye Sun [MSFT]

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun
Hello Hongye,

I didnt change the file manually and I didnt install anything that could affect the build targets.

The date and size of the Microsoft.Common.targets file is the same as the file on the computer that build the solution correctly.

I have sent you new logs.

Rolek
Rolek
Cause:
The issue was caused by "aspx", "Master" name was accidently registered as system culture.

Resolution:
Unregister them can fix the issue.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

You can use google to search for other answers

Custom Search

More Threads

• bootstrapper - Sql Server Express 2005 SP-2?
• Copy and CopîedFiles Output
• API for getting PerformanceSummary from MSBuild
• How to use CreateItem with RecursiveDir
• commandline build fails, ide does not
• Updating deployment projects
• Msbuild doesn’t copy references (dlls) if using project dependencies in solution
• Design decision: Integrate custom MSBuild project to VS2005
• Tutorials for msbuild
• Capturing Text Output from Exec Task