Windows Azure虚拟网络:Asp.net无法从其他虚拟机访问共享文件夹

Windows Azure虚拟网络:Asp.net无法从其他虚拟机访问共享文件夹,asp.net,azure,Asp.net,Azure,在WindowsAzure门户中,我创建了一个虚拟网络,然后将虚拟机(X)和云服务(Y)添加到该网络中 在云服务机器Y中,我可以通过窗口资源管理器访问虚拟机X中的共享文件夹 问题是我无法从云服务web应用程序访问该共享文件夹 返回的错误: Access to the path '\\10.0.1.5\Upload\test.txt' is denied. Exception Details: System.UnauthorizedAccessException: Access to the pa

在WindowsAzure门户中,我创建了一个虚拟网络,然后将虚拟机(X)和云服务(Y)添加到该网络中

在云服务机器Y中,我可以通过窗口资源管理器访问虚拟机X中的共享文件夹

问题是我无法从云服务web应用程序访问该共享文件夹

返回的错误:

Access to the path '\\10.0.1.5\Upload\test.txt' is denied.
Exception Details: System.UnauthorizedAccessException: Access to the path '\\10.0.1.5\Upload\test.txt' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

有什么想法吗?

我解决了这个问题。上面描述的模拟效果很好。我的错误是文件名不小心复制了ext(test.txt.txt)

<identity impersonate="true" userName="username" password="pass" />
 Could not find file '\\10.0.1.5\Upload\test.txt'.