Last post Mar 12, 2010 08:04 AM by qwe123kids
Mar 11, 2010 04:41 PM|MishaSoft|LINK
I'm developing and maintaining an ASP.NET web site.
The site is hosted at the 3rd party company running IIS6.
Recently the hosting service provider has setup an additional IIS server and moved part of the applications to this new server. This moment, my application is installed on both old and new servers.
Although the hosting provider claims that IIS configuration on the both servers is absolutely equal, I get the following exception on the new server, while on the old one everything works like a charm.
void Page_Load(Object sender, EventArgs e)
string p = Process.GetCurrentProcess().StartTime.ToString();
[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) +955768
System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) +396
ASP._1_aspx.Page_Load(Object sender, EventArgs e) in d:\hshome\skatrix\test4.skatrix.com\1.aspx:8
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
According to the service provider in both cases my application runs under Network Service user account.
An additional observation: retrieving the "System.Environment.UserName"
shows "Network Service" on the old server and "IUSR_XXX" on the new one.
I loose my head trying to understand what is different and what I need in order to make the things working.
Any ideas/suggestions/notes will be greatly appreciated!
Thanks in advance,
Win32Exception 0x80004005 Process.GetCurrentProcess().StartTime
Mar 12, 2010 04:05 AM|qwe123kids|LINK
Give Admin Rights to IIS User.
Mar 12, 2010 07:21 AM|MishaSoft|LINK
Thanks for your reply.
Obviously providing Administrative rights to IIS user will resolve the problem, but such solution is not acceptable.
The hosting company cannot allow 3rd party sites running with administrative rights. Permissions of the built-in Network Service account should be enough for the standard operations. Moreover, it doesn't explain why the same code works OK on the old server.
Mar 12, 2010 08:04 AM|qwe123kids|LINK
u have Contact service provider..
Not very sure
u may try Code acess secuirty..
chk the above link for more info