Last post Dec 21, 2017 10:59 AM by Mariyavijayn
Dec 19, 2017 02:15 PM|Mariyavijayn|LINK
I am using VisualStudio 2013 for developing webapplication ,using Angularjs1.0 with
I am facing an issue with resource file update functionality.
Here my issue is when i try to update the content to resource file(resx) through my webapplication the following error message is displaying in the browser can any one give solution to solve this issue.
var path = HttpContext.Current.ApplicationInstance.Server.MapPath("~/App_GlobalResources");
var pathEnglish = path + "\\Strings.en-US.resx";
var pathSpanish = path + "\\Strings.hi-IN.resx";
resxWriter = new ResXResourceWriter(pathEnglish);
//Add an Image resource
//Add a string resource
MessageBox.Show("File" + pathEnglish + " created");
//Close the resxWriter
error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0042: Unexpected error creating debug information file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d15f5cdb\a10427d1\hi-IN\App_GlobalResources.hqb3mbew.resources.PDB'
-- 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d15f5cdb\a10427d1\hi-IN\App_GlobalResources.hqb3mbew.resources.pdb: The process cannot access the file because it is being used by another process.
I even tried with using statement but no use.
Dec 20, 2017 04:37 AM|Mariyavijayn|LINK
Help me Plz.
Dec 20, 2017 08:39 AM|Fei Han - MSFT|LINK
You can try to check which process uses that file via Process Explorer tool. And you can try to restart your VS (or restart your computer) and run your project to check if error still appears.
Dec 21, 2017 10:59 AM|Mariyavijayn|LINK
Hi Fei Han,
I am glad you replied. Actually, we are facing compilation issue on the local machine but once the build is moved to the server it will work fine.