Request is not available in this context

3043 단어
새 서버에 IIS를 배치할 때 이 오류가 발생했습니다.
 Request is not available in this context

솔루션:
<system.web>
 <customErrors mode="Off" />

        <authentication mode="Forms">
            <forms loginUrl="~/home" timeout="30" slidingExpiration="true" />
        </authentication>
        <pages asyncTimeout="60" />
        <compilation targetFramework="4.5" />
        <httpRuntime targetFramework="4.5" maxRequestLength="2097151" executionTimeout="6000" />
        <sessionState mode="StateServer" timeout="120" cookieless="false" />
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="zh-cn" />
    </system.web>

web.config 여기 설정하면 빨간색 부분을 참고하세요!

좋은 웹페이지 즐겨찾기