0
내 웹 사이트를 배포 할 때이 오류가 발생합니다. 404 - 파일 또는 디렉토리를 찾을 수 없습니다. 찾으려는 리소스가 제거되었거나 이름이 변경되었거나 일시적으로 사용할 수없는 리소스 일 수 있습니다. 구성 코드는 다음과 같습니다. 모르겠다 무엇을 어디서 내가 뭔가를 놓치고있어. 그러나 내가 완벽하게 작동 # soome에 한 번 같은 프로젝트를 배포했습니다.404 서버 오류를 해결하는 방법 웹을 도메인에 배포 할 때 수신
<?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="YourConnectionString" connectionString="Data Source=juhi;Initial Catalog=kingston_DB;Integrated Security=True;Connect Timeout=30" providerName="System.Data.SqlClient"/>
<add name="kingston_DBEntities" connectionString="metadata=res://*/CollegeModel.csdl|res://*/CollegeModel.ssdl|res://*/CollegeModel.msl;provider=System.Data.SqlClient;provider connection string="data source=juhi;initial catalog=kingston_DB;integrated security=True;multipleactiveresultsets=True;connect timeout=30;application name=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime targetFramework="4.0" />
<customErrors mode="Off"/>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
<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>
이 오류를 해결하려면 제안이 필요합니다.
뿐만 아니라 로컬 호스트에서 동일한 URL 일을 했습니까? –
예. 작동 중입니다. – juhinah
여전히 많은 이유가있을 수 있습니다. 모든 파일이 게시되었는지 확인하십시오. –