整合后无法登陆
只要登陆就提示 “/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
基础连接已经关闭: 无法解析此远程名称。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Net.WebException: 基础连接已经关闭: 无法解析此远程名称。
源错误:
[没有相关的源行]
源文件: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\d70cc8bb\4805675c\iyrrsq60.0.cs 行: 0
堆栈跟踪:
[WebException: 基础连接已经关闭: 无法解析此远程名称。]
System.Net.HttpWebRequest.CheckFinalStatus() +678
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) +74
System.Net.HttpWebRequest.GetRequestStream() +234
System.Net.WebClient.UploadData(String address, String method, Byte[] data) +286
WangQi.IwmsBBSPlus.IwmsBBS.DoPost(String url, String param)
WangQi.IwmsBBSPlus.IwmsBBS.CheckUser(String name, String password)
Discuz.ForumPage.login.ShowPage()
Discuz.Forum.BasePage..ctor() in E:\Source Code\Forum\BasePage.cs:457
Discuz.ForumPage.login..ctor()
ASP.login_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\d70cc8bb\4805675c\iyrrsq60.0.cs

[TargetInvocationException: 调用的目标发生了异常。]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +65
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +164
[HttpException (0x80004005): 未能创建类型为“ASP.login_aspx”的页。]
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +340
System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +279
URLRewriter.RewriterFactoryHandler.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +319
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +698
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
本地调试可以 但是在虚拟主机上就不行
2、修改web.config
<appSettings>
<add key="Charset" value="gb2312" />
<add key="NewsUrl" value=http://localhost/ /> 这里是访问地址改成自己的
<add key="GroupId" value="1" />
<add key="IwmsCode" value="3ce2064081f51e1f7612abfc296f592c" /> 这里是整合接口安全验证码 可以在系统设置中生成*注意点修改后再复制。
</appSettings>
已经修改了 把地址改成了
<?xml version="1.0" encoding="gb2312"?>
<configuration>
<configSections>
<section name="RewriterConfig"
type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/c(\d{1,8})\.aspx</LookFor>
<SendTo>~/list.aspx?cid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/c(\d{1,8})p(\d{1,6})\.aspx</LookFor>
<SendTo>~/list.aspx?cid=$1&page=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/n(\d{1,8})c(\d{1,8})\.aspx</LookFor>
<SendTo>~/show.aspx?id=$1&cid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/n(\d{1,8})c(\d{1,8})p(\d{1,8})\.aspx</LookFor>
<SendTo>~/show.aspx?id=$1&cid=$2&page=$3</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings>
<add key="Charset" value="gb2312" />
<add key="NewsUrl" value="http://www.dn.njwanhuai.com" />
<add key="GroupId" value="1" />
<add key="IwmsCode" value="4f2fbecea51dd5b2399584d24160747e" />
</appSettings>
<system.web>
<compilation defaultLanguage="C#" debug="true"/>
<!--如果为.net SDK 1.0及以前版本,请删除validateRequest="false" -->
<pages validateRequest="false" enableSessionState="true"
enableViewState="true"/>
<customErrors mode="Off" />
<globalization fileEncoding="gb2312" requestEncoding="gb2312"
responseEncoding="gb2312" culture="zh-CN" />
<httpRuntime maxRequestLength="2048" />
<httpModules>
<add type="Discuz.Forum.HttpModule, Discuz.Forum" name="HttpModule"
/>
<add type="URLRewriter.ModuleRewriter, URLRewriter"
name="ModuleRewriter" />
</httpModules>
<httpHandlers>
<add verb="*" path="*.aspx"
type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
</system.web>
<location path="bbs" allowOverride="false">
<system.web>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>
<httpModules>
<add type="Discuz.Forum.HttpModule, Discuz.Forum" name="HttpModule"
/>
<remove name="ModuleRewriter" />
</httpModules>
</system.web>
</location>
</configuration>