Hi all,
I am developing an application in asp.net 3.5 VS 2010.
i am getting an error when i run this locally
Access to the path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\csh\ae97903f\b59101dbfa5e4a2ba40c1081a6dbdf3f-1.cs' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\csh\ae97903f\b59101dbfa5e4a2ba40c1081a6dbdf3f-1.cs' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
stack trace
[UnauthorizedAccessException: Access to the path
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7719199
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +67
Spark.Compiler.BatchCompiler.Compile(Boolean debug, String[] sourceCode) in C:\Users\Administrator\Downloads\loudej-spark-70c418d\src\Spark\Compiler\BatchCompiler.cs:71
Spark.Compiler.CSharp.DefaultViewCompiler.CompileView(IEnumerable`1 viewTemplates, IEnumerable`1 allResources) in C:\Users\Administrator\Downloads\loudej-spark-70c418d\src\Spark\Compiler\CSharp\DefaultViewCompiler.cs:30
Spark.SparkViewEngine.CreateEntryInternal(SparkViewDescriptor descriptor, Boolean compile) in C:\Users\Administrator\Downloads\loudej-spark-70c418d\src\Spark\SparkViewEngine.cs:234
Spark.SparkViewEngine.CreateEntry(SparkViewDescriptor descriptor) in C:\Users\Administrator\Downloads\loudej-spark-70c418d\src\Spark\SparkViewEngine.cs:210
Spark.SparkViewEngine.CreateInstance(SparkViewDescriptor descriptor) in C:\Users\Administrator\Downloads\loudej-spark-70c418d\src\Spark\SparkViewEngine.cs:193