Khi triển khai Vai trò web mới trên Windows Azure, tôi gặp phải lỗi này: Không thể phân bổ không gian địa chỉ được yêu cầu để triển khai trong mạng con mới hoặc được xác định trước. mạng. Tôi đã tìm kiếm giải pháp nhưng không tìm thấy giải pháp. Có ai có ý tưởng gì không?Không thể phân bổ không gian địa chỉ được yêu cầu
tập tin cscfg của tôi trông như thế này:
<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="Application.Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0">
<Role name="WebApplication" vmName="vm001">
<Instances count="1" />
<ConfigurationSettings>
...
</ConfigurationSettings>
<Certificates>
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="..." thumbprintAlgorithm="sha1" />
</Certificates>
</Role>
<Role name="Application.ServiceOpdrachten" vmName="vm002">
<Instances count="1" />
<ConfigurationSettings>
...
</ConfigurationSettings>
<Certificates>
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint=".." thumbprintAlgorithm="sha1" />
</Certificates>
</Role>
<NetworkConfiguration>
<VirtualNetworkSite name="VirtualNetwork" />
<!-- The virtual network name must match the name of the vvirtual network configured in your subscription. -->
<AddressAssignments>
<!-- You must map each role in your cloud service to a subnet or a collection of subnets which were defined in your network.-->
<InstanceAddress roleName="WebApplication">
<Subnets>
<Subnet name="Subnet-1" />
</Subnets>
</InstanceAddress>
</AddressAssignments>
</NetworkConfiguration>
</ServiceConfiguration>
Trong cloudproject cùng tôi có một ví dụ mà triển khai tốt.
<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="Ecare.Acasa.Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0">
<Role name="WebApplication">
<Instances count="1" />
<ConfigurationSettings>
...
</ConfigurationSettings>
<Certificates>
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="..." thumbprintAlgorithm="sha1" />
</Certificates>
</Role>
<Role name="Ecare.Acasa.ServiceOpdrachten">
<Instances count="1" />
<ConfigurationSettings>
...
</ConfigurationSettings>
<Certificates>
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="..." thumbprintAlgorithm="sha1" />
</Certificates>
</Role>
<NetworkConfiguration>
<VirtualNetworkSite name="Ecare" />
<!-- The virtual network name must match the name of the vvirtual network configured in your subscription. -->
<AddressAssignments>
<!-- You must map each role in your cloud service to a subnet or a collection of subnets which were defined in your network.-->
<InstanceAddress roleName="WebApplication">
<Subnets>
<Subnet name="Subnet-1" />
</Subnets>
</InstanceAddress>
</AddressAssignments>
</NetworkConfiguration>
</ServiceConfiguration>
Chỉ cần mở một tiền thưởng sẽ không giúp bạn nhiều. Cung cấp càng nhiều thông tin về triển khai của bạn càng tốt. Chẳng hạn như: tệp .csdef của bạn. Bạn đang sử dụng mạng ảo do nhầm lẫn hoặc có mục đích? Bạn có bất kỳ máy ảo nào trong cùng một mạng ảo không? nếu bạn sử dụng Mạng ảo cho việc triển khai Dịch vụ đám mây của mình, dịch vụ đám mây của bạn có được tạo trong cùng Nhóm sở thích nơi Mạng ảo được xác định không? – astaykov
tôi đã chỉnh sửa nó. Chúng ta cần mạng ảo. –
Dịch vụ 'đám mây' mà bạn đang cố gắng triển khai trong cùng một nhóm' mối quan hệ 'với tư cách là Mạng ảo? sao mạng ảo có đủ địa chỉ IP miễn phí khi bạn cố gắng triển khai gói Dịch vụ đám mây bị lỗi? – astaykov