Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > Application View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
J B - 8/4/2009 5:13:36 AM
   
Application
This is the situation. I have created a site in my dev environment and then migrated the website directory to a production server and recreated the site with it's own App Pool. When I modify anything in the bin folder I get this error when trying to view a page...

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\5igoiykv.0.cs' could not be found
error CS2008: No inputs specified


Source Error:

[No relevant source lines]


Source File: /App_WebReferences/WS/ Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082


To fix this issue I simply change the app pool back to the default app pool load the page again and it works fine. I then change back to the specific app pool that gave the error and it now works fine. Very strange. Any ideas?

User avatar
Member
Member
webwise - 8/4/2009 8:32:38 AM
   
RE:Application
This is because the App pool is running under a user context that can't run ASP.NET or does not have proper permissions to run ASP.NET.

To add a user to run ASP.NET for example:
Go to c:\windows\microsoft.net\framework\v2.0.50727\
And run
aspnet_regiis -ga {app pool user name}

Note: Allows user to run asp.net



User avatar
Certified Developer v7
Certified  Developer v7
J B - 8/4/2009 9:48:40 AM
   
RE:Application
I've tried this but I still have the same issues even on different environments. Don't think it's a permissions problem as when I change back to the defaultapppool, load a page and then change back to my custom app pool it works fine.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/5/2009 1:43:23 PM
   
RE:Application
Hello,

We have met this problem only when the C:\WINDOWS\TEMP was not configured to have a write permission. Could you please check it once again (you may configure it for ALL users to have a write permission - just for testing purposes). Does it help?

Best regards,
Helena Grulichova

User avatar
Certified Developer v7
Certified  Developer v7
J B - 8/6/2009 7:15:20 PM
   
RE:Application
Gave the App pool user modify rights and that seemed to work. Thanks