This is a migrated thread and some comments may be shown as answers.

Global resources in website - good code red

5 Answers 41 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
miksh
Top achievements
Rank 1
Iron
miksh asked on 22 Jan 2010, 01:23 PM
There are two ways to access data in a global resource file in asp.net website:
1. string myString = (string)GetGlobalResourceObject("GResource", "msg_BrowserNotSupported");
This one is fine.

2. string myString = Resources.GResource.msg_BrowserNotSupported;
For this one JustCode underline GResource with the error
C#: Unknown type or namespace 'GResource' of 'Resources'

5 Answers, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 22 Jan 2010, 01:54 PM
Hello Michael,

 This time we are one step ahead of you. Other people also reported this problem and it is already fixed. Early next week we will be releasing a new build that will incorporate this fix as well.

Kind regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
miksh
Top achievements
Rank 1
Iron
answered on 22 Jan 2010, 01:57 PM
I also reported it via JustCode feedback from within VS but eventually didn't find any track of it.
Good news anyway. Will wait for the new release becuase this issue brings me 200+ errors in my solution.
0
Deyan Varchev
Telerik team
answered on 25 Jan 2010, 01:17 PM
Hi Michael,

 We have released a new build of JustCode today. You can either download it from the site or use the build-in auto-update functionality. You can find a list of changes for this version here - http://bit.ly/7MPpph

If you have any questions or suggestions please feel free to contact us again.

Sincerely yours,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tobias
Top achievements
Rank 1
answered on 12 Mar 2010, 10:36 AM
Hi,

I still have this problem in the 2010 Q1 release.

Best Regards
Daniel
0
Deyan Varchev
Telerik team
answered on 17 Mar 2010, 10:11 AM
Hello Daniel,

 Thanks for reporting your problem. The issue at question was fixed in the Q1 release. What you might be experiencing is some cached error from a previous version. In order to fix this try refreshing code analysis using JustCode -> Refresh Code Analysis.
 Another possibility is that you are experiencing a similar (but not the same) known issue. It appears when you have a global resource in a web site that is not a simple type (i.e. string). In this case your code could look similar to this:
string myString = Resources.GResource.MyObject.MyStringProperty;
If this is your case, you should know that this is already fixed and will be available with our next release (internal build as well).

If neither of this helps, Please use the "Report Good Code Red" functionality to report the issue - this way we will receive more info for your case.

If you have any other questions or problems please don't hesitate to come back to us.

Best wishes,
Deyan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Code Analysis
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Deyan Varchev
Telerik team
miksh
Top achievements
Rank 1
Iron
Tobias
Top achievements
Rank 1
Share this question
or