내 web.config에 설정된 URL 재 작성 규칙이 거의 없습니다. 그들은 다음과 같습니다 :웹 서버에서 디버깅을 시작할 수 없습니다. Asp.Net 디버깅을 시작할 수 없습니다.
<rewrite>
<rules>
<rule name="RedirectUserFriendlyURL1" stopProcessing="true">
<match url="^(.*)\.aspx$"/>
<conditions>
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true"/>
<add input="{QUERY_STRING}" pattern="^([^=&]+)=([^=&]+)$"/>
</conditions>
<action type="Redirect" url="{R:1}/{C:1}/{C:2}" appendQueryString="false"/>
</rule>
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^(.*)/([^/]+)/([^/]+)/?$"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="{R:1}.aspx?{R:2}={R:3}"/>
</rule>
<rule name="RedirectUserFriendlyURL2" stopProcessing="true">
<match url="^(.*)\.aspx$"/>
<conditions>
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true"/>
</conditions>
<action type="Redirect" url="{R:1}" appendQueryString="false"/>
</rule>
<rule name="RewriteUserFriendlyURL2" stopProcessing="true">
<match url="^(.*)$"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="{R:1}.aspx"/>
</rule>
</rules>
</rewrite>
이 모든 것들이 훌륭하게 작동합니다. 그러나 F5를 사용하여 응용 프로그램을 디버깅 할 때 "웹 서버에서 디버깅을 시작할 수 없습니다 .Ap.Net 디버깅을 시작할 수 없습니다."라는 오류 메시지가 나타납니다. 이 일이 왜 일어나는 지 모릅니다. Ctrl + F5 키를 사용하여 릴리스 모드로 실행하면 매우 잘 작동합니다. 아무도 왜이 일이 일어 났는지 말해 줄 수 있습니까? 난 그냥 이러한 규칙을 제거한 다음 F5를 그것도 잘 작동합니다. 나는이 문제에 대해 구글을 시도하고 하나의 링크를 생각해 냈다. 그러나 그것은 나를 위해 작동하지 않습니다
http://forums.asp.net/t/1649452.aspx/1
을 위의 링크에서 누군가가 소문자로 대문자로 시작하는 형태의 이름을 변경 부탁드립니다. 꽤 재밌어! 누군가는 닷넷 프레임 워크를 아래의 링크 섹션
http://devtoolshed.com/content/fixing-relative-paths-c-aspnet-when-using-url-rewriting "6 IIS 3.5"