App_globalResources issue

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/12/2010 6:33:27 AM
Gravatar
Total Posts 50

App_globalResources issue

Hi,

i have been going through the training videos and reached #13 "Generating the business layer" (really helpful, thanks for those)

im using visual studio 2010. downloaded the recent svn source code from the server and running everything locally with a local IIS

my project name is "DownloadForm"

after generating the mp_table_toeditform.cst from codesmiht and copying the relevant code to the user control file DownloadForm.ascx , i found that i had no App_GlobalResources folder and no DownloadFormResources.resx file in it. so i created them and added the ConfigKey accordingly.

now the project compiles fine and is copying the dll's and files to the mojoportal.web folder.

when running the Default.aspx (using "view in browser" from within VS) the site loads ok, but when opening the page where "DownloadForm" is embedded i get this error:

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resources.DownloadFormResources.resources" was correctly embedded or linked into assembly "App_GlobalResources.qgsowvkp" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resources.DownloadFormResources.resources" was correctly embedded or linked into assembly "App_GlobalResources.qgsowvkp" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Source Error:

Line 135: if ((ConfigKey != "EmptyLabel") && (ConfigKey != "spacer"))
Line 136: {
Line 137: string text = HttpContext.GetGlobalResourceObject(ResourceFile, ConfigKey) as string;
Line 138: if (text == null)
Line 139: {

Source File: C:\xxx\xxx\xxx\mojoportal-svn\mojoPortal.Web.Controls\SiteLabel.cs Line: 137

if i remove the code between
<ol class="formlist">

.....
</ol>

it loads fine.

any idea where i went wrong ? where in the videos is the part of adding the app_globalresources folder , perhaps i missed it.  

Thanks

12/12/2010 7:06:40 AM
Gravatar
Total Posts 18439

Re: App_globalResources issue

You need to copy the .resx file from the App_GlobalResources folder in your project into the Web/App_GlobalResources folder using a post build event the same way you copy the dlls and other needed files.

See example post build event for mojoPortal.Features.UI

Hope it helps,

Joe

12/12/2010 10:08:56 AM
Gravatar
Total Posts 50

Re: App_globalResources issue

worked like a charm !

thanks

You must sign in to post in the forums. This thread is closed to new posts.