2015-11-18 4 views
6

ठीक है, तो मैं इस परियोजना गुण संवाद में एसएसएल पोर्ट नंबर बदलने में सक्षम होने के लिए इस्तेमाल किया है, लेकिन asp.net 5 RC1 अपडेट के बाद, एसएसएल क्षेत्र केवल पढ़ने के लिए:मैं IISExpress के लिए अपना एसएसएल पोर्ट निर्दिष्ट कहां से निर्दिष्ट करूं?

enter image description here

यह SSLPort मूल्य पर ध्यान नहीं देता है जब मैं सीधे .xproj संपादित करने का प्रयास:

<PropertyGroup> 
    <SchemaVersion>2.0</SchemaVersion> 
    <DevelopmentServerPort>17204</DevelopmentServerPort> 
    <SSLPort>44303</SSLPort> 
    </PropertyGroup> 

और यह भी करने के लिए मेरे एप्लिकेशन मेजबान कॉन्फ़िग फ़ाइल में बंदरगाह रीसेट करता है ($ [solutionDir] .vs \ config \ ApplicationHost.config) वापस मूल मूल्य जब मैं बाध्यकारी बदलता हूं और अपना प्रोजेक्ट लॉन्च करता हूं।

 <site name="WebApplication1" id="8"> 
      <application path="/" applicationPool="Clr4IntegratedAppPool"> 
       <virtualDirectory path="/" physicalPath="C:\WebApplication1\wwwroot" /> 
      </application> 
      <bindings> 
       <binding protocol="http" bindingInformation="*:17833:localhost" /> 
       <binding protocol="https" bindingInformation="*:44303:localhost" /> 
      </bindings> 
     </site> 

क्या देता है? विजुअल स्टूडियो कहां से यह मूल्य प्राप्त कर रहा है, और मैं इसे कैसे बदलूं?

उत्तर

10

./Properties फ़ोल्डर के तहत launchSettings.json खोलें। I12Settings में int मान> iisExpress> sslPort वह है जहां से इसे पढ़ा जाता है। आप जो भी चाहें उस मूल्य को बदल सकते हैं।

{ 
    "iisSettings": { 
    "iisExpress": { 
     "sslPort": <ssl-port-value> 
    } 
    } 
} 
संबंधित मुद्दे