CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_asp.net_1.x_to_asp.net_2.0 Tags:
Item Type: NewsGroup Date Entered: 2/5/2008 6:58:06 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 67 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Broodmdh
Asp.Net User
Could not find any resources appropriate for the specified culture or the neutral culture2/5/2008 6:58:06 PM

0/0

I am trying to convert my ASP .NET 1.1 (VB) app to 2.0, but I'm having a lot of trouble with the resource files.  I placed them in the App_LocalResources folder (maintaining the sub-folder structure that we already had in place), and I am using the following code to try and access them:

Dim gStr As ResourceManager
gStr = New ResourceManager("LSI." & newPageName, [Assembly].GetExecutingAssembly)
gStr.GetString("PageTitle", ci)

This doesn't return anything (just an empty string).

I've also tried the following:

ctrl1.Text = Me.GetLocalResourceObject("PageTitle").ToString()

"The resource class for this page was not found.  Please check if the resource file exists and try again.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code."

The resource files have a build action of "Content", and not "Embedded Resource", but I don't know if this is right.  I've tweaked everything so many times I don't know what else to do.  I've also tried using gStr.GetString("PageTitle", ci), but that just throws a "Could not find any resources appropriate for the specified culture or the neutral culture" error.

I've read that the resource files have to be at the same level as the page they are related to, but that hasn't worked for me either.  I'm setting all of this in a base class that is inherited by all the pages in the app, and I don't know if that makes a difference.  This whole process is very frustrating, especially because I am operating on a very tight timeframe.  Any help would be appreciated.

1 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

How can i add the datagrid control - ng.asp-net-forum.windows ... How can i add the datagrid control, > ROOT > NEWSGROUP > Asp.Net Forum > ... could not find any resources appropriate for the specified culture or the neutral culture ...
The resource manager may not retrieve culture-specific resources when ... Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Back to the top ...
Embedded Resources problem - "Could not find any resources appropriate ... "Could not find any resources appropriate for the specified culture (or the neutral culture) ... Resources problem - "Could not find any resources appropriate...
Could not find any resources appropriate for the specified culture or ... Could not find any resources appropriate for the specified culture or the neutral culture. Get answers to your questions in our .NET forum.
A System.Resources.MissingManifestResourceException exception occurs ... Could not find any resources appropriate for the specified culture (or the ... resources appropriate for the specified culture (or the neutral culture) in the ...
Getting "Could not find any resources "error while using some resource ... ... error "Could not find any resources appropriate for the ... Could not find any resources appropriate for the specified culture (or the neutral culture) in ...
Could not find any resources appropriate for the specified culture or ... Could not find any resources appropriate for the specified culture or the neutral culture ...
CodePlex Information and Discussion - Discussions because I could not locate the Installer directory. ... Could not find any resource appropriate for the specified culture or the neutral ...
Silverlight startup error with resources - Summary of fix : The ... Microsoft portal site for the Silverlight development community. ... Could not find any resources appropriate for the specified culture or the neutral culture. ...
Paint.NET " Blog Archive " Elusive Bugs: No known cause for missing ... System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture (or the neutral culture) on disk. ...


 
All Times Are GMT