2014-06-11 1 views
-1

저는 최근 vs 2013 (프로젝트> 웹>asp.net 응용 프로그램> 웹 양식)을 사용하여 새 사이트를 만들었습니다. 내 프로젝트는 내 로컬 호스트에서 오류없이 완벽하게 구축됩니다. Azure에서도 성공적으로 게시 할 수있었습니다. 그러나, 나는 Godaddy를 통해 나의 주식 호스팅 계정에 그것을 원한다. FTP 프로토콜을 사용하여 호스팅 계정에 업로드했습니다.XML 구문 분석 및 503 오류, godaddy hosing

Plesk Panel로 갈 때 모든 파일이 적절한 루트 디렉토리 httpdocs/에 있습니다. 그러나 브라우저에서 사이트를 방문하려고하면 503 오류가 반환됩니다. IIS에 직접 액세스 할 수 없으며 원격 데스크톱을 사용할 수 없습니다. 그러나 모든 설정을 확인했는데 올바른 것으로 보입니다.

ftp://ipaddress을 사용하여 내 사이트에 액세스하면 내 디렉토리가 반환됩니다. 나는 그런 내 기본 페이지로 내 페이지를 클릭하면, 내가 줄 1, 열 2 파서 오류가 발생하고 있음을 발견 : 나는 확인이 : 나는 시도하고 오류를 해결하기 위해 수행 한

<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="PoserDesigns.About" %> 
-^ 

내 권한을 제대로 내 서버 설정에서 내 설정 파일에서 전체로 설정되어 있는지 :

<securityPolicy> 
     <trustLevel name="full" policyFile="internal" /> 
     <trulstLevel name="High" policyFile="web_hightrust.config" /> 
     <trustLevel name="Medium" policyFile="web_mediumtrust.config" /> 
     <trustLevel name="Low" policyFile="web_lowtrust.config" /> 
     <trustLevel name="Minimal" policyFile="web_minimaltrust.config" /> 
    </securityPolicy> 

    <trust level="Full" originUrl="" processRequestInApplicationTrust="true"/> 

나는 내 스택에서 아무것도 밝힐 것입니다 있는지 확인하기 위해 customerrors mode="off"를 실행했다. 503 오류 메시지가 계속 나타납니다.

<sessionState mode="InProc" customProvider="DefaultSessionProvider"> 
      <providers> 
      <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /> 
      </providers> 
     </sessionState> 

내가 sessionState mode=customsessionState mode=InProc를 변경해야합니까 : 아마도이 내 코드의 조각을 함께 할 수있는 뭔가가있는 경우

궁금? 그렇다면 무엇을 변경하겠습니까 connectionStringName=DefaultConnetion?

또한이 사이트에서는 데이터베이스를 사용하지 않으므로 연결할 필요가 없습니다. 그래서 이것이 내가 구성 파일의 일부를 변경해야한다는 것을 의미하는 것인지 확신 할 수 없다면, 나는 실제로 godaddy에서 호스팅하는 것과 비슷한 문제에 관해 여기에서 발견 한 정보에 기반하여 편집 된 팝업 표준을 실제로 사용했습니다.

다음에 시도 할 항목에 대한 제안 사항에 크게 감사드립니다. 그것이 manual에 설명 된 것 같이 Plesk를 신뢰 수준을 설정하고 Web.config의에서 해당 설정을 제거하는

 

<?xml version="1.0" encoding="utf-8"?> 
<!-- 
    For more information on how to configure your ASP.NET application, please visit 
    http://go.microsoft.com/fwlink/?LinkId=169433 
    --> 
<configuration> 
    <configSections> 
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> 
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 
    </configSections> 
    <connectionStrings> 
    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-PoserDesigns-20140520052204.mdf;Initial Catalog=aspnet-PoserDesigns-20140520052204;Integrated Security=True" 
     providerName="System.Data.SqlClient" /> 
    </connectionStrings> 

    <system.web> 
    <authentication mode="None" /> 
    <compilation targetFramework="4.5" /> 
    <httpRuntime targetFramework="4.5" /> 
    <securityPolicy> 
     <trustLevel name="full" policyFile="internal" /> 
     <trulstLevel name="High" policyFile="web_hightrust.config" /> 
     <trustLevel name="Medium" policyFile="web_mediumtrust.config" /> 
     <trustLevel name="Low" policyFile="web_lowtrust.config" /> 
     <trustLevel name="Minimal" policyFile="web_minimaltrust.config" /> 
    </securityPolicy> 

    <trust level="Full" originUrl="" processRequestInApplicationTrust="true"/> 

    <compilation debug="true" strict="false" explicit="true"/> 
    <pages> 
     <namespaces> 
     <add namespace="System.Web.Optimization" /> 
     <add namespace="Microsoft.AspNet.Identity" /> 
     </namespaces> 
     <controls> 
     <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /> 
     </controls> 
    </pages> 

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 
      <error statusCode="403" redirect="NoAccess.htm" /> 
     <error statusCode="404" redirect="FileNotFound.htm" /> 
    </customErrors> 


    <sessionState mode="InProc" customProvider="DefaultSessionProvider"> 
     <providers> 
     <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /> 
     </providers> 
    </sessionState> 
    </system.web> 
    <system.webServer> 
    <modules> 
     <remove name="FormsAuthenticationModule" /> 
    </modules> 
    </system.webServer> 
    <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     <dependentAssembly> 
     <assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /> 
     </dependentAssembly> 
    </assemblyBinding> 
    </runtime> 
    <entityFramework> 
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> 
     <parameters> 
     <parameter value="v11.0" /> 
     </parameters> 
    </defaultConnectionFactory> 
    <providers> 
     <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> 
    </providers> 
    </entityFramework> 
</configuration> 
+3

나는 Godaddy 고객 지원부에이 질문을해야하기 때문에이 질문을 주제로 끝내기 위해 투표를합니다. –

답변

0

오케이, 이렇게 여러 번 시도해 본 후에이 오류가 발생하지 않도록하십시오. 시도한 몇 가지 사항으로는 애플리케이션 풀 재활용 및 web.config 파일 사용 중지가 있습니다. 아무것도 작동하지 않아서 내 사이트를 삭제하고 간단한 Hello World HTML5 페이지를 게시하려고 시도했지만 동일한 오류가 반환되었습니다. 원격 로그인 옵션이 없도록 전용 서버에서 작동하지 않는 것을보고 GoDaddy 지원팀에 문의해야했습니다. IIS에서 문제가 발생하고 응용 프로그램 풀이 어딘가에 중단되었습니다. 그들은 그것을 고쳤고 이제는 모든 것이 원활하게 돌아갑니다!

0

시도 :

사전

감사는 여기 참조 내 구성 파일입니다. 도움이되지 않으면 web.config를 가능한 한 간단하게 만들고 (예 : 새로운 VS.NET 템플릿 프로젝트에서 가져옴) 어떤 차이가 있는지 확인하십시오.