Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...'Resources' already contains a definition for 'GlobalResources'
Previous
 
Next
New Post
6/19/2006 10:20 AM
 

On my Dotnetnuke site, I am getting teh following error:

CS0101: The namespace 'Resources' already contains a definition for 'GlobalResources'

Line 24:     [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 25:     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
Line 26:     public class GlobalResources {
Line 27:        
Line 28:         private static global::System.Resources.ResourceManager resourceMan;

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\24251391\39611994\App_GlobalResources.xfui5-_e.1.cs    Line: 26

 

Can anyone help me out on this one? 

Thanks
Jason B.

 
New Post
7/3/2006 10:24 AM
 

Check your /App_GlobalResources Directory

Make sure that there is only one GlobalResources.resx file.
In my case I renamed GlobalResources.Portal-0.resx to GlobalResources.Portal-0.old

Hope that helps

Andrew.

 
New Post
11/24/2008 5:21 PM
 

You don't know what a headache I had with this error (maybe for not reading the error message properly)...

Genius, thanks!!!

      Adrián

 
New Post
11/24/2008 8:20 PM
 

Wow, this is a thread that hasn't been touched in awhile!

This error occurs when .RESX and .resources compilation, disabled by DotNetNuke is restored (either through web.config changes, or, less frequently, with cascading web.config files).  No error will manifest until a portal-specific localization is performed, after which ASP.NET will unhelpfully report the error listed above.

For those that truly require ASP.NET localization functionality (meta:resourcekey, strongly-typed access, support for existing UserControls, et cetera), I provide a BuildProvider that allows default ASP.NET localization to live side-by-side with the DotNetNuke implementation.  You can read more about it here.

For those that do not require such functionality, I recommend disabling .RESX and .resources compilation in your web.config, as it is by default.

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...'Resources' already contains a definition for 'GlobalResources'


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out