产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

xiyou 又要麻烦你了,赶快出手相救 [复制链接]

1#

我的问题类似,我看了很多类似的帖子,可是都不能解决,请求帮助。
我的web.config内容如下:<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Business" value="0" />
    <add key="License" value="" />
    <add key="Url" value="10.135.130.100" />
    <add key="UrlRewrite" value="1" />
    <add key="DbType" value="0" />
    <add key="DBPath" value="/database/school_1.mdb" />
    <add key="SqlConnection" value="Provider=SQLOLEDB;Data Source=127.0.0.1;Initial Catalog=sql_data;User ID=sql_user;Password=sql_password" />
    <add key="Language" value="cn" />
    <add key="ManageDirectory" value="/master/" />
    <add key="Version" value="V2.1 20100324" />
  </appSettings>
  <system.web>
    <httpModules>
      <add type="PageAdmin.UrlReWriteModule" name="UrlReWrite" />
    </httpModules>
    <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
    <compilation defaultLanguage="C#" debug="false" />
    <authentication mode="Forms" />
    <customErrors mode="Off">
      <error statusCode="404" redirect="/error404.html" />
    </customErrors>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
  </system.web>
</configuration>
其中10.135.130.100是我内网访问地址,现在的问题是我想能在外网访问后台,可是不管我改成域名www.dmcjzx.com还是IP地址61.153.15.86都不行,我想请问一下,我该如何改?
另外,我修改之后登陆错误是:

Server Error in '/' Application.
--------------------------------------------------------------------------------

The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:

[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1501995
   PageAdmin.master_login.xd9dc40336cb754b6() +1593
   PageAdmin.master_login.x0c10d87f1cc88e3b() +216
   PageAdmin.master_login.x303150620dddbc01() +111
   PageAdmin.master_login.x4b531208dfadf445() +66
   PageAdmin.master_login.xb99c27096be25a53() +38
   PageAdmin.master_login.Page_Load(Object src, EventArgs e) +277
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
分享 转发
TOP
发新话题 回复该主题