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

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/28/2008 1:43:20 AM
Gravatar
Total Posts 1

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

Server Error in '/mojoportal' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0101: The namespace 'Resources' already contains a definition for 'LinkResources'

Source Error:

 

[No relevant source lines]

Source File: d:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mojoportal\0b63dab9\f1a52180\App_GlobalResources.xt_jmfej.17.cs Line: 25

 

 

11/28/2008 5:42:28 AM
Gravatar
Total Posts 18439

Re: CS0101: The namespace 'Resources' already contains a definition for 'LinkResources'

Hi,

I just created an FAQ page because this question comes up a lot.

Hope it helps,

Joe

5/8/2009 4:56:28 PM
Gravatar
Total Posts 1

Re: CS0101: The namespace 'Resources' already contains a definition for 'LinkResources'

I have been succesfully running mojoPortal for the past several weeks on my Windows Vista x64 SP1 machine using VS 2008 SP1.  Today I upgraded to Vista SP2 and I started seeing the following upon startup of mojoPortal.

Compiler Error Message: CS0101: The namespace 'Resources' already contains a definition for 'GalleryResources'

 

Your FAQ and other posts seem to elude that the problem is caused from some old OS level or .NET version, or even a missing patch.

I was able to delete all the *.zh-hant.resx and get around the problem.  Just wanted to let you know what I experienced.

 

Thanks,

nospamnerd

5/9/2009 5:19:17 AM
Gravatar
Total Posts 18439

Re: CS0101: The namespace 'Resources' already contains a definition for 'LinkResources'

Hi,

I'm not surprised to start getting reports like this.

I have updated the FAQ entry. Apparently something has changed in ASP.NET, when I submitted my latest release to update our version on the Microsoft Web App Gallery,  I was advised by the IIS team to rename all the .zh-Hant.resx files back to the old ISO name .zh-CHT.resx because of some performance problem in ASP.NET runtime with using zh-Hant. They said this renaming back to the old names was a "workaround" that would be supported in all future versions. So going forward our packages will no longer include zh-Hant files, they have already been renamed in our svn trunk and in the current mssqlreleasefiles package for version 2.3.0.1 (because this is the package submitted to the gallery).

Best,

Joe

6/12/2009 6:36:20 AM
Gravatar
Total Posts 14

Re: CS0101: The namespace 'Resources' already contains a definition for 'LinkResources'

Joe,

Thank you for posting this FAQ. I ran into the same problem since installing SP2 onto W2K8. I was able to track it to SP2 by de-installing it and the portal was back. Re-applying of SP2 brought the problem back again.

I did then some googling and I found another post re language issues which mentions to have all .resx files in their own language subdirectory except the default one. This approach did not fix the problem.
After that I found your post and I just deleted the ch-hant directory with it's content and from that point onwards the portal is back.

My questions I have now are as follows:
- is it worth to keep all language dependant .resx files in their directory or move them back to the top App_GlobalResources dir?
- will their be any performance issue?

Thank you
Juerg

6/12/2009 6:43:22 AM
Gravatar
Total Posts 18439

Re: CS0101: The namespace 'Resources' already contains a definition for 'LinkResources'

I don't see any problem keeping them in App_GlobalResources, I think you should put them back there else you will have duplicates when you upgrade and new ones land in App_GlobalResources with the same name as files you have in other locations.

Best,

Joe

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