ASP1.1 Trying to use Resources!

E

Evan Camilleri

I created an web application which is trying to open a resource called

PPReports.resx in project called PPReports with same name for namespace.

I used

Dim rm As ResourceManager = New ResourceManager("PPReports",
Reflection.Assembly.GetExecutingAssembly())
Dim stHTML As String = rm.GetString("ThisWeek_Totals")


I Got

Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure "PPReports.resources" was
correctly embedded or linked into assembly "PPReports". baseName: PPReports
locationInfo: <null> resource file name: PPReports.resources assembly:
PPReports, Version=1.0.2245.16469, Culture=neutral, PublicKeyToken=null
 
E

Evan Camilleri

"!£$!£$"!"£$£"$"@@~%^£$@@@@~~~~~"££"££!"$£$%%^£%$^*$£^$

after long hours .... i managed to figure it out .....
Dim rm As New ResourceManager("PPReports.PPReports",
Reflection.Assembly.GetExecutingAssembly())

....we need a better and simple documentation!!!
 
D

Darren Kopp

Documentation is fine, looks like you were trying to define a variable
using a c#/c++/java type approach rather than the vb As New approach.

At least you got it workin, eh?
Darren Kopp
http://blog.secudocs.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top