Global resources in website - good code red

6 posts, 0 answers
  1. miksh
    miksh avatar
    275 posts
    Member since:
    Nov 2006

    Posted 22 Jan 2010 Link to this post

    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'
  2. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 22 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. miksh
    miksh avatar
    275 posts
    Member since:
    Nov 2006

    Posted 22 Jan 2010 Link to this post

    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.
  5. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 25 Jan 2010 Link to this post

    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.
  6. Tobias
    Tobias avatar
    12 posts
    Member since:
    Dec 2008

    Posted 12 Mar 2010 Link to this post

    Hi,

    I still have this problem in the 2010 Q1 release.

    Best Regards
    Daniel
  7. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 17 Mar 2010 Link to this post

    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.
Back to Top
DevCraft banner