Failed to modify ServiceDefinition file.

After I installed the latest Azure SDK for .Net - October 2012 , I cannot change the ServiceDefinition.csdef file.

B'cos I need to comment on this line <!--<Binding name="HttpsIn" endpointName="HttpsIn" hostHeader="www.pawloyalty.com" />--> .

After compilation, He gives the following message. Although the message says that the file was modified outside the original editor. In fact, I did inside the source editor (since vs 2010 ).

enter image description here

The ServiceDefinition.csdef file looks below

 <?xml version="1.0" encoding="utf-8"?> <!-- ********************************************************************************************** This file was generated by a tool from the project file: ServiceDefinition.csdef Changes to this file may cause incorrect behavior and will be lost if the file is regenerated. ********************************************************************************************** --> <ServiceDefinition name="PawLoyalty.Web.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8"> <WebRole name="PawLoyalty.Web" vmsize="Medium"> <Startup priority="-2"> <Task commandLine="startuptasks/settime.cmd" executionContext="elevated" taskType="simple" /> <Task commandLine="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe install" executionContext="elevated" taskType="simple" /> <Task commandLine="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe install" executionContext="elevated" taskType="simple" /> </Startup> <Sites> <Site name="Web"> <Bindings> <Binding name="HttpIn" endpointName="HttpIn" hostHeader="www.pawloyalty.com" /> <Binding name="HttpsIn" endpointName="HttpsIn" hostHeader="www.pawloyalty.com" /> </Bindings> </Site> </Sites> <ConfigurationSettings> <Setting name="Blob" /> <Setting name="CDN" /> <Setting name="ConnectionString" /> <Setting name="Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel" /> </ConfigurationSettings> <Endpoints> <InputEndpoint name="HttpIn" protocol="http" port="80" /> </Endpoints> <Certificates></Certificates> <Imports> <Import moduleName="Diagnostics" /> <Import moduleName="RemoteAccess" /> <Import moduleName="RemoteForwarder" /> <Import moduleName="Caching" /> </Imports> <LocalResources> <LocalStorage name="ExcelStorage" cleanOnRoleRecycle="false" sizeInMB="250" /> <LocalStorage name="Microsoft.WindowsAzure.Plugins.Caching.FileStore" sizeInMB="1000" cleanOnRoleRecycle="false" /> <LocalStorage name="DiagnosticStore" sizeInMB="20000" cleanOnRoleRecycle="false" /> </LocalResources> </WebRole> </ServiceDefinition> 

What for?

How can I modify the ServiceDefinition.csdef file?

+4
source share
1 answer

The big warning at the top of the file is your first hint.

 <!-- ********************************************************************************************** This file was generated by a tool from the project file: ServiceDefinition.csdef Changes to this file may cause incorrect behavior and will be lost if the file is regenerated. ********************************************************************************************** --> 

Basically this file is created for you during the build based on something else. In the case of Windows Azure, its configuration options.

1) Close this file tab (you never change this file directly)
2) Expand the Roles folder
3) Double-click the role you want to change. 4) in the new properties dialog box, click endpoints
5) Remove the one you do not need.

enter image description hereenter image description here

+6
source

All Articles