Problem deploying published asp.net website project on hosting server

Last post 07-03-2009 2:53 AM by Thomas Sun – MSFT. 3 replies.

Sort Posts:

  • Problem deploying published asp.net website project on hosting server

    06-29-2009, 4:51 AM
    • Member
      point Member
    • metalmadgear
    • Member since 04-28-2009, 1:59 AM
    • Posts 7

    Hello everyone,

    I hope someone could help me....


    I published my project using the build >> publish myproject on the visual studio 2008 menu....

    If i run the published project on my local computer... it works perfectly...

    but when i upload it to the hosting server... i get these error



    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    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.ApplicationException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ApplicationException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
       System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir(IsolatedStorageScope scope) +0
       System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser(IsolatedStorageScope scope) +97
       System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope) +137
       System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope) +213
       System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope) +56
       System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType) +59
       MyDLL.Classes.DB.get_ConnectionString() in C:\Inetpub\wwwroot\Classes\Config.cs:2065
       mydll.Classes.DB.Open() in C:\Inetpub\wwwroot\WOBPS\Classes\Config.cs:2302
       mydll.Classes.DBSettings.Get(String Key) in C:\Inetpub\wwwroot\Classes\DBSettings.cs:193
       mydll.Classes.DBSettings.Get(String Key, Boolean Default) in C:\Inetpub\wwwroot\Classes\DBSettings.cs:38
       mydll.Classes.UrlRewriting() in C:\Inetpub\wwwroot\Classes\Config.cs:2929
       mydll.Global.Application_BeginRequest(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Global.asax.cs:102
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

    and the cs filepath are still my localservers path


    what do i need to do here...


  • Re: Problem deploying published asp.net website project on hosting server

    06-29-2009, 8:34 AM

    Hello,

    What are you Windows, IIS and .NET Framework versions?

    Regards

  • Re: Problem deploying published asp.net website project on hosting server

    06-30-2009, 2:00 AM
    • Member
      point Member
    • metalmadgear
    • Member since 04-28-2009, 1:59 AM
    • Posts 7

    Hi,

    Thanks for reply

    server is windows 2003 r2 64 bit,

    framework is 3.5

    and iis 6


    thanks again,

    hope someone could help me

  • Re: Problem deploying published asp.net website project on hosting server

    07-03-2009, 2:53 AM
    Answer

     Hi,

    It seems that you are using Isolated Storage (http://msdn.microsoft.com/en-us/library/bdts8hk0(VS.80).aspx) in MyDLL.Classes.DB.get_ConnectionString method. 

    The error relates to the permission of ASP.NET process identity. On server, ASP.NET process identity is IIS account.

    You can use impersonation to run it with another account which has more permission, or create custom application pool with the account.

    For more information, see http://msdn.microsoft.com/en-us/library/3ak841sy(VS.80).aspx

    I look forward to receiving your test results.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (4 items)