473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP.NET 2.0 - Cannot add Resource

Hi everyone.
i'm having some problems with the global resources in asp.net 2.0. i boiled
it doen to this:
i create a brand new website and add an App_GlobalResources folder. I then
add to this folder 2 resource files named:
MyResource.resx
MyResource.yi.resx
Then I build the site and get the following Error Message in the Error List:
The namespace 'Resources' already contains a definition for 'MyResource'
In file: App_GlobalResources.sg8-m9lm.1.cs
What I find is that if I change the "yi" to, for instance, "fr", then there
is no error. additionally if i rename the "MyResource.resx" to something else
like "MyOtherResource.resx", then it builds Ok, but then I dont have
strong-typed access to the rsource files.
What can the problem be? I would appreciate any lead. On google I didn't get
a single reference to this specific problem.
Thankfully,
YisMan
Dec 19 '06 #1
2 2112
May be you need to check you config file there. The name change may not
be reflecting over there.

Nazim

YisMan wrote:
Hi everyone.
i'm having some problems with the global resources in asp.net 2.0. i boiled
it doen to this:
i create a brand new website and add an App_GlobalResources folder. I then
add to this folder 2 resource files named:
MyResource.resx
MyResource.yi.resx
Then I build the site and get the following Error Message in the Error List:
The namespace 'Resources' already contains a definition for 'MyResource'
In file: App_GlobalResources.sg8-m9lm.1.cs
What I find is that if I change the "yi" to, for instance, "fr", then there
is no error. additionally if i rename the "MyResource.resx" to something else
like "MyOtherResource.resx", then it builds Ok, but then I dont have
strong-typed access to the rsource files.
What can the problem be? I would appreciate any lead. On google I didn't get
a single reference to this specific problem.
Thankfully,
YisMan
Dec 19 '06 #2
Thanks. The web.config file does not contain the word resource or myresource
at all. Actually I searched the solution and found no reference to the word
"myresource".
In any case, to make sure it is not the config file, I simply deleted it
from the solution. For good measure, I also deleted the App_Code folder and
the Default.aspx that came along in the solution.
My solution now exists entirely of only the App_GlobalResources folder and
the 2 resource files within it:
MyResource.resx
MyResource.yi.resx
and the same error still persists.
Please advise,
YisMan
"na*********@gmail.com" wrote:
May be you need to check you config file there. The name change may not
be reflecting over there.

Nazim

YisMan wrote:
Hi everyone.
i'm having some problems with the global resources in asp.net 2.0. i boiled
it doen to this:
i create a brand new website and add an App_GlobalResources folder. I then
add to this folder 2 resource files named:
MyResource.resx
MyResource.yi.resx
Then I build the site and get the following Error Message in the Error List:
The namespace 'Resources' already contains a definition for 'MyResource'
In file: App_GlobalResources.sg8-m9lm.1.cs
What I find is that if I change the "yi" to, for instance, "fr", then there
is no error. additionally if i rename the "MyResource.resx" to something else
like "MyOtherResource.resx", then it builds Ok, but then I dont have
strong-typed access to the rsource files.
What can the problem be? I would appreciate any lead. On google I didn't get
a single reference to this specific problem.
Thankfully,
YisMan

Dec 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: avishosh | last post by:
Hi, I'm getting the folowing error when tring to open xml file: -------------------------------------------------------------------------------- The system cannot locate the resource specified....
3
by: Van Steenbergen jan | last post by:
hi all i'm having a very strange error When i go to a asmx file from a webservice in IIS and i do a right click-choose Browse Next error will occure Server Error in '/' Application...
0
by: M | last post by:
I installed the Visual Basic .NET Resource Kit. When I click 'Visual Basic .NET Resource Kit' the page at 'http://localhost/VB.NETResourceKit/Welcome.aspx' show: Server Error in...
1
by: coz | last post by:
Someone please help! I cannot for the life of me get a web resource in asp.net 2.0 to return any content. I know I have correctly embedded my resources (because I can manually get the resources...
0
by: Carl Gilbert | last post by:
Hi I am trying to get a simple ASP.NET web application to work on my 1&1 (1and1) web space. I managed to get something working a while ago, with thanks to Karl Seguin, but for some unknown...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.