programing

Visual Studio 2013 및 ASP.NET 웹 구성 도구

kingscode 2021. 1. 17. 10:59
반응형

Visual Studio 2013 및 ASP.NET 웹 구성 도구


저는 Visual Studio 2013을 사용하고 있으며 아마도 ASP.NET 웹 구성 도구가 없다는 것을 알고 있습니다. 나는 항상 빠른 역할 등을 만들고 싶었습니다.이 문서를 사용하여 활성화하려고했습니다. http://blogs.msdn.com/b/webdev/archive/2013/08/19/asp-net-web-configuration-tool-missing -in-visual-studio-2013.aspx? PageIndex = 2 # comments . 하지만 "잘못된 응용 프로그램 경로"오류가 발생합니다. 이 오류 또는 해결 방법에 대한 해결책이 있습니까?


콘솔에서 여기에 쓰여진 내용을 정확히 복사하여 붙여 넣으십시오.

"C:\Program Files\IIS Express\iisexpress.exe" /path:c:\windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:"/asp.netwebadminfiles" /port:8089 /clr:4.0 /ntlm

관리자 권한으로 cmd.exe를 여는 지 여부는 중요하지 않습니다. 위 코드를 콘솔에 복사하여 붙여넣고 완료 ​​될 때까지 "q"로 종료하지 마십시오!

그런 다음 브라우저 창을 열고 주소 표시 줄에 다음을 작성합니다.

http://localhost:8089/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[Exact_Project_Path]\&applicationUrl=/

Windows 탐색기에서 프로젝트 경로를 그대로 복사하여 붙여 넣으십시오.

Microsoft가 VS2013의 다음 업데이트에 이것을 다시 추가하기를 바랍니다! 예전에했던 것처럼 멤버십을 처리하기 위해 누군가가 코드를 복사하여 붙여 넣는 것은 편리하지 않습니다.

도움이 되었기를 바랍니다.

중요 편집 : 죄송합니다. 관리자 권한으로 콘솔을 시작하는 것이 중요하다는 것을 깨달았습니다. 그러지 마. 콘솔에 관리자 권한이있는 경우 웹 구성 도구는 보안 페이지에 다음 오류를 표시합니다.

선택한 데이터 저장소에 문제가 있습니다. 이는 유효하지 않은 서버 이름이나 자격 증명 또는 불충분 한 권한으로 인해 발생할 수 있습니다. 역할 관리자 기능이 활성화되지 않았기 때문에 발생할 수도 있습니다. 아래 버튼을 클릭하면 새 데이터 저장소를 선택할 수있는 페이지로 리디렉션됩니다. 다음 메시지가 문제를 진단하는 데 도움이 될 수 있습니다. 'C : \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files \ root \ 1c3fef5c \ 2180c7f9 \ hash'경로에 대한 액세스가 거부되었습니다.


사용자 이름과 암호를 묻는 메시지가 표시되면 다음을 수행하십시오.

  1. Firefox를 열고 about : config를 URL로 입력합니다.
  2. "ntlm"의 필터 유형에서
  3. "network.automatic-ntlm-auth.trusted-uris"를 두 번 클릭하고 "localhost"를 입력하고 Enter 키를 누릅니다.

출처 : http://forums.codecharge.com/posts.php?post_id=81959


여기 에서 다운로드 한 "Credentials Manager for WCF"라는 오픈 소스 유틸리티가 있습니다 . 작동하려면 아래 구성이 필요합니다.
구성의 경우 "CredentialServiceHost"프로젝트의 구성 파일을 다음과 같이 편집해야합니다.

    *<?xml version="1.0"?>
<configuration>
    <connectionStrings>
    <clear />
        <add name="AspNetDbConnectionString" connectionString="[Your data base connection string]" providerName="System.Data.SqlClient"/>
    <add name="LocalSqlServer" connectionString="[Your data base connection string]" providerName="System.Data.SqlClient"/>


  </connectionStrings>
    <system.web>
        <authentication mode="None"/>
  <roleManager enabled="true"/>
    </system.web>
    <system.serviceModel>
        <services>
            <service name="AspNetSqlProviderService" behaviorConfiguration="MEX Enabled">
                <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IApplicationManager"/>
                <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IMembershipManager"/>
                <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IPasswordManager"/>
                <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IRoleManager"/>
                <endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IUserManager"/>
            </service>
        </services>
        <bindings>
            <wsHttpBinding>
                <binding name="TransactionalWS" transactionFlow="true">
                    <reliableSession enabled="True"/>
                </binding>
            </wsHttpBinding>
        </bindings>
      <behaviors>
         <serviceBehaviors>
            <behavior name="MEX Enabled">
               <serviceMetadata httpGetEnabled="true"/>
            </behavior>
         </serviceBehaviors>
      </behaviors>
    </system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

프로젝트 "CredentialsManager"의 경우 다음 구성을 사용해야합니다.

<?xml version="1.0"?>
<configuration>
   <configSections>
      <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
         <section name="CredentialsManagerClient.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
      </sectionGroup>
   </configSections>
   <applicationSettings>
      <CredentialsManagerClient.Properties.Settings>
         <setting name="AspNetSqlProviderService" serializeAs="String">
            <value>http://localhost:8000</value>
         </setting>
      </CredentialsManagerClient.Properties.Settings>
   </applicationSettings>
   <system.serviceModel>
      <client>
         <endpoint address="http://localhost:8000/" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IApplicationManager"/>
         <endpoint address="http://localhost:8000/" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IMembershipManager"/>
         <endpoint address="http://localhost:8000/" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IPasswordManager"/>
         <endpoint address="http://localhost:8000/" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IRoleManager"/>
         <endpoint address="http://localhost:8000/" binding="wsHttpBinding" bindingConfiguration="TransactionalWS" contract="IUserManager"/>
      </client>
      <bindings>
         <wsHttpBinding>
            <binding name="TransactionalWS" transactionFlow="true">
               <reliableSession enabled="True"/>
            </binding>
         </wsHttpBinding>
      </bindings>
   </system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

관리자 권한으로 "CredentialsServiceHost.exe"파일을 실행 한 다음 "CredentialsManager.exe"파일을 실행하십시오.


이것은 보안 역할을 만든 다음 사용자를 만들 때까지 나를 위해 작동했지만 내 웹 사이트를 실행하려고 할 때 HTTP 오류 403.14-금지됨 메시지가 나타납니다.

The Web server is configured to not list the contents of this directory. Most likely causes: •A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

Things you can try: •If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists. • Enable directory browsing. 1.Go to the IIS Express install directory. 2.Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level. 3.Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level.

•Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

ReferenceURL : https://stackoverflow.com/questions/20541680/visual-studio-2013-and-asp-net-web-configuration-tool

반응형