2013-05-13 2 views
3

제가 약간의 문제가 있습니다. 문제는 Webresource.axd 파일이라고 생각합니다. .NET Web Form을 .NET 4.5 및 Visual Studio 2012 Web Developer Express와 함께 사용하고 있습니다.오류를 확인하십시오. 아마도 WebResource.axd

내 aspx 파일에 트리 뷰를 선언하고 코드 숨김에서 데이터를 트리 뷰에 할당합니다. 이 방법이 효과적이지만 일부 누락 된 그림이되었지만 표준 Systemset을 사용합니다.

에서 .aspx :

<asp:TreeView ID="treeview" runat="server" ShowLines="True" ImageSet="Arrows"> 

</asp:TreeView> 

.aspx.cs :

protected void Page_Load(object sender, EventArgs e) 
{ 
    if (!Page.IsPostBack) 
    { 
     Logic.TreeView("FILE", treeview); 
    } 
} 

의 Web.config :

<?xml version="1.0" encoding="utf-8"?> 

<!-- 
    Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter 
    http://go.microsoft.com/fwlink/?LinkId=169433 
    --> 

    <configuration> 
    <system.web> 
    <compilation debug="true" targetFramework="4.5" /> 
    <httpRuntime targetFramework="4.5" /> 

     <httpHandlers> 
     <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="true"/> 
     </httpHandlers> 

    </system.web> 
    <system.serviceModel> 
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> 
    <standardEndpoints> 
     <webHttpEndpoint> 
     <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" crossDomainScriptAccessEnabled="true"/> 
     </webHttpEndpoint> 
     <webScriptEndpoint> 
     <standardEndpoint crossDomainScriptAccessEnabled="true"/> 
     </webScriptEndpoint> 
    </standardEndpoints> 
    </system.serviceModel> 


    <system.webServer> 
    <validation validateIntegratedModeConfiguration="false"/> 
    </system.webServer> 


</configuration> 

I를 여기 so it it shown in the Browser

내 코드입니다 D를 시작하십시오. ebugging IE에서 JS 오류가 발생하지만 Chrome에서는 그렇지 않습니다. 마이크로 소프트 JScript의 런타임 오류 : "WebForm_InitCallback는"인도 표준시 정의되지 않은

수있는 사람의 도움은 정말 몇 가지 아이디어는 이러한 문제를 해결하기 위해하지 않았습니다. 간단한 일의

답변

0

커플이 첫 번째 시도 :

지정한 위치에 파일입니다 (아마도 요소를보고하기 위해 불을 지르고 또는 유사한을 사용하여 위치를 찾으려면, ~/./ 경로와 혼동 될 수 있습니다) .

서버 운영 체제를 사용하는 경우 서버 관리자에서 "정적 컨텐츠"역할을 선택하십시오. 그렇지 않으면 CSS와 이미지가 표시되지 않습니다.

관련 문제