none
System.IO.IOException: The network path was not found while creating website using tenant account

    Question

  • Hi,

    I am having error during creating website from tenant account site. My file server is separate from controller. I have chosen pre-configured file server (vazure4) during controller configuration. Given administrator account information on file server configuration. I have shared two directories with full permission for everyone so it can access through network. Have no error during configuration of file server. Its a clean install. Created a user with unlimited hosting subscription assigned to it. 

    Please let me know if I am in wrong direction and still having remaining some configuration.

    Thank you,

    Dharmendra Mistry

    Below is event view trace from management server.

    Log Name:      Microsoft-Windows-WebSites/Administrative
    Source:        Microsoft-Windows-WebSites
    Date:          5/14/2014 8:21:12 AM
    Event ID:      40001
    Task Category: None
    Level:         Error
    Keywords:      
    User:          IIS APPPOOL\HostingManagementServicesPool
    Computer:      VAZURE4
    Description:
    Unhandled Exception occurred during a REST API call /subscriptions/80eb2e5c-ab97-4aa1-ba4f-e92fd2050d5a/webspaces/defaultwebspace/sites over verb POST with request Id c6ef940cbfdc4fd58b831d745bf0cd3a.2014-05-14T12:21:12.5392514Z. Status code: InternalServerError. Exception Message: System.IO.IOException: The network path was not found.

       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
       at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action, String userName, String domain, String password)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpaceDirectory(String path)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpace(String subscriptionName, String webspaceName, String planName, String storageDomain, String fileShare, String& storageVolumeName, String& webSpaceFolder)
       at Microsoft.Web.Hosting.Administration.SubscriptionController.CreateWebSpace(String subscriptionName, WebSpace webSpace)
       at Microsoft.Web.Hosting.Administration.WebCloudController.GetOrCreateWebSpace(IRepositoryContext db, String subscriptionName, String webspaceName, SiteWithWebSpace site, WebSpace& webSpace, WebPlan& webPlan, WebSystem& webSystem)
       at Microsoft.Web.Hosting.Administration.WebCloudController.CreateSite(String subscriptionName, String webspaceName, SiteWithWebSpace site)
       at SyncInvokeCreateSite(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet). Subscription 80eb2e5c-ab97-4aa1-ba4f-e92fd2050d5a, web space defaultwebspace, site gyrusaim, details: None.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-WebSites" Guid="{E4D907C4-42E4-4377-87DA-D394E98CB392}" />
        <EventID>40001</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-05-14T12:21:12.887888600Z" />
        <EventRecordID>27</EventRecordID>
        <Correlation />
        <Execution ProcessID="2872" ThreadID="1384" />
        <Channel>Microsoft-Windows-WebSites/Administrative</Channel>
        <Computer>VAZURE4</Computer>
        <Security UserID="S-1-5-82-4172730165-2683521375-2654330149-2958573797-1789495153" />
      </System>
      <EventData>
        <Data Name="Exception">System.IO.IOException: The network path was not found.

       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
       at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action, String userName, String domain, String password)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpaceDirectory(String path)
       at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpace(String subscriptionName, String webspaceName, String planName, String storageDomain, String fileShare, String&amp; storageVolumeName, String&amp; webSpaceFolder)
       at Microsoft.Web.Hosting.Administration.SubscriptionController.CreateWebSpace(String subscriptionName, WebSpace webSpace)
       at Microsoft.Web.Hosting.Administration.WebCloudController.GetOrCreateWebSpace(IRepositoryContext db, String subscriptionName, String webspaceName, SiteWithWebSpace site, WebSpace&amp; webSpace, WebPlan&amp; webPlan, WebSystem&amp; webSystem)
       at Microsoft.Web.Hosting.Administration.WebCloudController.CreateSite(String subscriptionName, String webspaceName, SiteWithWebSpace site)
       at SyncInvokeCreateSite(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</Data>
        <Data Name="Address">/subscriptions/80eb2e5c-ab97-4aa1-ba4f-e92fd2050d5a/webspaces/defaultwebspace/sites</Data>
        <Data Name="Verb">POST</Data>
        <Data Name="RequestId">c6ef940cbfdc4fd58b831d745bf0cd3a.2014-05-14T12:21:12.5392514Z</Data>
        <Data Name="StatusCode">InternalServerError</Data>
        <Data Name="SubscriptionName">80eb2e5c-ab97-4aa1-ba4f-e92fd2050d5a</Data>
        <Data Name="WebSpaceName">defaultwebspace</Data>
        <Data Name="SiteName">gyrusaim</Data>
        <Data Name="Details">None</Data>
      </EventData>
    </Event>

    Wednesday, May 14, 2014 1:20 PM

Answers

  • Your direction is nearly correct. I also observer the same thing while investigating database. The file share path is different (missing some character) then I configured. I also updated this record in this table (not best practice) and tried to recreate the website. But error remains the same. I also found a trick from somewhere to reconfigure controller by editing some registry value which force controller to reconfigure. I reconfigured the controller but then still path remain the same without any effect. 

    Finally after 2 days of frustration I open a ticket to Microsoft. The support person also found the same thing and he also try to reconfigure controller by editing the same registry value. but trick didn't work. Finally he use SQL Tracing (which i completely forgot to use) during re-configuring controller and found that it's not being updated due to  IF(@@rowcount == 0) condition in some executing statement. Finally we remove that record manually (not recommended in production environment) and tried to reconfigure controller again and we have got success in it.

    Hope this one help someone.

    Thank you for your replies Joaquin.

    Warm regards,

    Dharmendra Mistry

    Friday, May 30, 2014 1:00 PM

All replies

  • For pre-configured file server, please follow the instructions from:

    http://technet.microsoft.com/en-us/library/dn469315.aspx

    Wednesday, May 14, 2014 10:42 PM
  • Hi Joaquin,

    I apologize for missing out reading this section. I configured the File server as mentioned in document. All things are configured successfully. I also updated FileShareOwnerFileShareUser, CentralCertStoreUser credentials in Administration panel. But I am still getting error while creating websites. But this time error is different. As per event viewer it seems that username or password is incorrect. I verified all above username and password correctly and don't seems that its wrong. Not able to get that which username's password is incorrect....

    Below is the event log. Try if you are get something from this.

    Thanks for your reply

    Dharmendra Mistry

    *******************************************

    + System 

      - Provider 

       [ Name]  Microsoft-Windows-WebSites 
       [ Guid]  {E4D907C4-42E4-4377-87DA-D394E98CB392} 
     
       EventID 40000 
     
       Version 0 
     
       Level 2 
     
       Task 0 
     
       Opcode 0 
     
       Keywords 0x8000000000000000 
     
      - TimeCreated 

       [ SystemTime]  2014-05-15T11:01:22.465552300Z 
     
       EventRecordID 92 
     
       Correlation 
     
      - Execution 

       [ ProcessID]  1392 
       [ ThreadID]  4456 
     
       Channel Microsoft-Windows-WebSites/Administrative 
     
       Computer VAZURE4 
     
      - Security 

       [ UserID]  S-1-5-82-4172730165-2683521375-2654330149-2958573797-1789495153 
     

    - EventData 

      Exception The user name or password is incorrect. Exception: System.ComponentModel.Win32Exception (0x80004005): The user name or password is incorrect at Microsoft.Web.Hosting.Security.ImpersonationScope.LogonUser(String userName, String password, String domain) at Microsoft.Web.Hosting.Security.ImpersonationScope..ctor(String userName, String password, String defaultDomain, LogonType logonType, Boolean loadUserProfile, Boolean shouldSupressSecurityContextFlow) at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action, String userName, String domain, String password) at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action) at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpaceDirectory(String path) at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpace(String subscriptionName, String webspaceName, String planName, String storageDomain, String fileShare, String& storageVolumeName, String& webSpaceFolder) 
      Address /subscriptions/3697bc24-071a-4501-b94c-04fa9d5cc687/webspaces/defaultwebspace/sites 
      Verb POST 
      RequestId d74898ea3e2149369baf496c1dc44b51.2014-05-15T11:01:21.9409861Z 
      StatusCode InternalServerError 
      SubscriptionName 3697bc24-071a-4501-b94c-04fa9d5cc687 
      WebSpaceName defaultwebspace 
      SiteName gyrusaim002 
      Details None 


    Thursday, May 15, 2014 11:29 AM
  • Hi Joaquin,

    I apologize for missing out reading this section. I configured the File server as mentioned in document. All things are configured successfully. I also updated FileShareOwnerFileShareUser, CentralCertStoreUser credentials in Administration panel. But I am still getting error while creating websites. But this time error is different. As per event viewer it seems that username or password is incorrect. I verified all above username and password correctly and don't seems that its wrong. Not able to get that which username's password is incorrect....

    Below is the event log. Try if you are get something from this.

    Thanks for your reply

    Dharmendra Mistry

    *******************************************

    + System 

      - Provider 

       [ Name]  Microsoft-Windows-WebSites 
       [ Guid]  {E4D907C4-42E4-4377-87DA-D394E98CB392} 
     
       EventID 40000 
     
       Version 0 
     
       Level 2 
     
       Task 0 
     
       Opcode 0 
     
       Keywords 0x8000000000000000 
     
      - TimeCreated 

       [ SystemTime]  2014-05-15T11:01:22.465552300Z 
     
       EventRecordID 92 
     
       Correlation 
     
      - Execution 

       [ ProcessID]  1392 
       [ ThreadID]  4456 
     
       Channel Microsoft-Windows-WebSites/Administrative 
     
       Computer VAZURE4 
     
      - Security 

       [ UserID]  S-1-5-82-4172730165-2683521375-2654330149-2958573797-1789495153 
     

    - EventData 

      Exception The user name or password is incorrect. Exception: System.ComponentModel.Win32Exception (0x80004005): The user name or password is incorrect at Microsoft.Web.Hosting.Security.ImpersonationScope.LogonUser(String userName, String password, String domain) at Microsoft.Web.Hosting.Security.ImpersonationScope..ctor(String userName, String password, String defaultDomain, LogonType logonType, Boolean loadUserProfile, Boolean shouldSupressSecurityContextFlow) at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action, String userName, String domain, String password) at Microsoft.Web.Hosting.Administration.WebCloudProvider.PerformFileServerAction[R](Func`1 action) at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpaceDirectory(String path) at Microsoft.Web.Hosting.Administration.WebCloudProvider.CreateWebSpace(String subscriptionName, String webspaceName, String planName, String storageDomain, String fileShare, String& storageVolumeName, String& webSpaceFolder) 
      Address /subscriptions/3697bc24-071a-4501-b94c-04fa9d5cc687/webspaces/defaultwebspace/sites 
      Verb POST 
      RequestId d74898ea3e2149369baf496c1dc44b51.2014-05-15T11:01:21.9409861Z 
      StatusCode InternalServerError 
      SubscriptionName 3697bc24-071a-4501-b94c-04fa9d5cc687 
      WebSpaceName defaultwebspace 
      SiteName gyrusaim002 
      Details None 


        New error occurred with previous error "The network path not found"  after restarting all servers.

    - System
    - Provider
    [ Name] Microsoft-Windows-WebSites
    [ Guid] {E4D907C4-42E4-4377-87DA-D394E98CB392}
    EventID 40000
    Version 0
    Level 2
    Task 0
    Opcode 0
    Keywords 0x8000000000000000
    - TimeCreated
    [ SystemTime] 2014-05-15T12:41:47.101463400Z
    EventRecordID 126
    Correlation
    - Execution
    [ ProcessID] 2952
    [ ThreadID] 2036
    Channel Microsoft-Windows-WebSites/Administrative
    Computer VAZURE4
    - Security
    [ UserID] S-1-5-82-4172730165-2683521375-2654330149-2958573797-1789495153
    - EventData
    Exception Failed to delete a webspace.. Exception: System.ArgumentNullException: Value cannot be null. Parameter name: path2 at System.IO.Path.Combine(String path1, String path2) at Microsoft.Web.Hosting.Administration.SubscriptionController.DeleteMWHWebSpace(IRepositoryContext db, String subscriptionName, String webspaceName, String storageVolumeName, String webspaceFolderName)
    Address /subscriptions/f65cde2a-4085-4ab6-b3ac-27805ee65112/webspaces/defaultwebspace/sites
    Verb POST
    RequestId 51d71983a86e4f25850b7dd070574637.2014-05-15T12:41:44.9812202Z
    StatusCode InternalServerError
    SubscriptionName f65cde2a-4085-4ab6-b3ac-27805ee65112
    WebSpaceName defaultwebspace
    SiteName gyrusaim005
    Details None

    Thursday, May 15, 2014 12:46 PM
  • Could you try to repair the management server. You can do this by running the following powershell cmdlet from the controller role:

    Import-Module WebSites
    Repair-WebSitesServer -Name "<your-server-name>"

    Then wait for the server to be repaired. You can track the status using the following cmdlet:

    Get-WebSitesServer -ServerType ManagementServer

    Wednesday, May 21, 2014 11:32 PM
  • Tried but no success

    Thursday, May 22, 2014 4:16 AM
  • When you installed WAP did you provide the same file share that you ended up configuring in your file server (vazure4)?

    We may need to double check by querying the database since there is no powershell cmdlet for this. Please look for the configured content UNC by running the following T-SQL query in hosting database:

    SELECT [Name], [FileShare] FROM [admin].[WebSystems]

    If the file share is not correct, you can update the value with the correct one and then try to create a new site to see if that works. We may need to repair the management server after the value is updated.

    Updating the database directly is not the best practice but my intention here is just to try to unblock you without reinstalling but if this is a setup for a production environment, I will suggest to follow the documentation and start from the beginning.

    Monday, May 26, 2014 9:54 AM
  • Your direction is nearly correct. I also observer the same thing while investigating database. The file share path is different (missing some character) then I configured. I also updated this record in this table (not best practice) and tried to recreate the website. But error remains the same. I also found a trick from somewhere to reconfigure controller by editing some registry value which force controller to reconfigure. I reconfigured the controller but then still path remain the same without any effect. 

    Finally after 2 days of frustration I open a ticket to Microsoft. The support person also found the same thing and he also try to reconfigure controller by editing the same registry value. but trick didn't work. Finally he use SQL Tracing (which i completely forgot to use) during re-configuring controller and found that it's not being updated due to  IF(@@rowcount == 0) condition in some executing statement. Finally we remove that record manually (not recommended in production environment) and tried to reconfigure controller again and we have got success in it.

    Hope this one help someone.

    Thank you for your replies Joaquin.

    Warm regards,

    Dharmendra Mistry

    Friday, May 30, 2014 1:00 PM