Problem deploying ASP.NET 2.0 application. Access denied and so on

G

Guest

Hello,

I'm having problem with an ASP.NET 2.0 application that I'm trying to deploy
to one of our stage servers.

The first thing that happened was that when I deployed the site it just
stood there working for a couple of minutes before I got a Server Error
without any further description.

Using Filemon I noticed that the application got "ACCESS DENIED" on
C:\Documents and settings\all users\application
data\microsoft\crypto\rsa\machinekeys. Gave our ASP.NET-account access to
this share and after that i get a message saying "Server Application
Unavailable" and three messages in the Event Viewer saying "Failed to
initialize the AppDomain:/LM/W3SVC/24/Root", "Failed to execute the request
because the ASP.NET process identity does not have read permissions to the
global assembly cache. Error: 0x80131902 " and "aspnet_wp.exe (PID: 1100)
stopped unexpectedly. "

Does anyone have any clue about how to go on from here??

Best regards
Martin
 
H

heinz

IMAO Its all about permissions. You could start
by giving complete access on all your folders, don't
forget to make a virtual folder too, as root. Also APP_DATA
needs permission to serverName\ASPNET or
in windows 2003 server it has another name (something like
'asp services' I think).
When its going, start reducing your access permissions
to improve security, else you are open to hacking.
Otherwise read the documentation on permissions and do
exactly what it says.
all the best. let us know what happened.

wawens
 
G

Guest

Thanks for your reply Heinz,

OK, this is what I've done. Started by giving the ASP.NET full control to
the drives that we have on this server (a Windows 2000 Server by the way), C:
and D:. Noticed that this permission was not inherited down to "C:\Documents
and settings\all users\application
data\microsoft\crypto\rsa\machinekeys" so I changed this manually on all
folders down to MachineKeys. After doing that I still get the Server
Application Unavailable message and the messages in Event Viewer that I
mentioned before.

To explain the background. This was a 1.1 application that I've migrated to
2.0. The "mapping" in IIS has been changed to 2.0 for this web site. You
mention Virtual folder, do you mean Virtual Directory by that or something
else? Regarding App_Data, my application does not contain a APP_DATA foldet
yet, should that be necessary in some way? Works fine without it on my
machine (Windows XP).

/Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top