产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » xiyou 又要麻烦你了,赶快出手相救
yangyingnihao - 2011/1/11 12:41:00
我在本地配置好PA以后,能正常运行,但是我打包上传到空间服务器以后就不能正常访问后台。我觉得应该把后台地址"http://localhost/master/login.aspx"里面的"localhost”改为空间域名才能正常访问。但是我不知道该在哪个文件里面去修改, 请您告诉我好吗?在线等你哈,快救急~谢谢。
yangyingnihao - 2011/1/11 14:07:00
有知道怎么解决这个问题的 PA 友们也请高台贵手帮忙解决一下嘛,小女子在此谢过了...
lbs - 2011/1/12 19:39:00
我的问题类似,我看了很多类似的帖子,可是都不能解决,请求帮助。
我的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
yangyingnihao - 2011/1/13 14:18:00
今天在其他帖子看见了这个问题的相关答案,但是一些朋友说是正确的 一些朋友说是错误的,还真是矛盾呢,只有静待xiyou 出手相助啊。。。。。
1
查看完整版本: xiyou 又要麻烦你了,赶快出手相救