我正在尝试将我的网站发布到服务器。所以我发布了这个并且我收到了很多错误,我修复了它们,当我调用网址时我收到了另一个错误The page isn't redirecting properly in asp.net
。
当我从我的网站调用图片时,例如127.0.0.1/i.png
它可以工作,ie显示我的图片,但是当我打电话给127.0.0.1/fa/default.aspx
时,我收到此错误:
这是我的web.config
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="BaHamayeshban" connectionString="Data Source=(local);Initial Catalog= hamayeshban.ir_conf.qums;integrate security=true;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824"/>
</requestFiltering>
</security>
</system.webServer>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime maxRequestLength="1048576"/>
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
</system.web>
</configuration>
实际上IIS没有向我显示错误的资源,我找不到错误资源。
这是iis文件夹
答案 0 :(得分:0)
webconfig 在哪里?为了使其工作,您必须在项目级别至少放置一个weconfig文件 把webconfig文件放在这里 C:\ inetpub \ wwwroot \ Fa \ Web.config