简体   繁体   中英

Multilingual website in ASP.NET

This is a part of my multilingual website code . i am getting a runtime error

           Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            rm = new ResourceManager("Resources.Default.apsx", System.Reflection.Assembly.Load(System.IO.File.ReadAllBytes("E:\\New folder\\multi_lang\\multi_lang\\App_LocalResources")));
            ci = Thread.CurrentThread.CurrentCulture;

Here i am gettingan error in second line saying

1.Make sure you have sufficient privilages to access this resources

  1. if you are attempting to access a file, make sure it is not Readonly.

Make sure the person that you're running IIS under has access to:

E:\\New folder\\multi_lang\\multi_lang\\App_LocalResources

Under IIS6 it's more than likely IUSR, under IIS7 it needs to be your app pool user: IIS AppPool \\ -AppPoolUser-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM