Visual Studio 2012 error

I am using Visual Studio 2012 on a Windows 8 PC. I had no problem installing VS2012.

When I work on an ASP.NET C # project, I usually use the "Look in Explorer" option, debugging the project instead. This gives me the opportunity to change the code behind.

Sometimes after building and hitting F5 to reload the page, I get some errors. This does not always happen, but very often.

Errors: CS2021, CVT1100, CS1566 ... "Cannot find file 'C: \ Users \ UserName \ AppData \ Local \ Temp \ ASP.NET Temporary Files \ root \ 617be439 \ 61539075 \ App_GlobalResources.iuxkzxdi.0.cs'"

There is always a problem with "C: \ Users \ UserName \ AppData \ Local \ Temp \ Temporary ASP.NET Files \ root". Sometimes he says he cannot find other files that are being denied access.

Visual Studio works, but it's horrible to keep pressing F5 until the error goes away.

Can anyone help me?

+3


source to share


1 answer


Run VS2012 as Administrator. Local account by default has assembly / temp location restriction and will throw errors like this. When trying to publish websites, you will have problems with similar issues.



Therefore, it is easier to install VS 2012 once and check the box in the properties "Run this program as administrator" so that it always runs as "Administrator".

+3


source







All Articles