problem with using resourcemanager.getString()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sagar

    #1

    problem with using resourcemanager.getString()

    Hi,
    I m having a vb.net project in which

    i created a default resource file Resource.resx as rightclick on
    project Add Add new Item resource assembly file
    In properties of project OutPut Type is Class Library
    In Propeties of resource file Build Action is Embedded Resource
    and in the strating function i m doin this

    Public LocRM As ResourceManager
    LocRM = New
    ResourceManager ("Resource",[Assembly].GetExecutingAs sembly())

    Try
    str = LocRM.GetString ("msg")
    Catch err As MissingManifest ResourceExcepti on
    MsgBox("Missing ManifestResourc eException " & _
    err.Message, , "Connect.vb ")
    End Try

    LocRM.GetString is thowing Exception as
    MissingManifest ResourceExcepti on Could not find any resources
    appropriate for the specified culture(or the neutral culture) in the
    given assembly. Make sure "[projectname].resources" was correctly
    embedded or linked into assembly "[projectname]"
    basename: [projectname] locationInfo: <nullresource file name:
    [projectname].resources assembly:
    [projectname],version=1.0.24 61.28014,cultur e=neutral,publi ckeyToken=null

    can any one can help me in figuring out where the problem is

    Regards
    Amit

Working...