宝玉

专注于web开发技术
随笔 - 114, 评论 - 1519 , 引用 - 583

昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

Asp.net Forums2.0 RC2 中文版下载和安装说明

现在ftp老连不上,不能更新,请各位手动更新一下:

修改Web\Admin\home.aspx.cs

找到:

    // Get the starttime of the W3CSVC service.
    //
    ProcessInfo processInfo = ProcessModelInfo.GetCurrentProcessInfo();
    forumsRunning[1] = processInfo.StartTime.ToString();
    forumsRunning[2] = processInfo.Age.Days.ToString();
    forumsRunning[3] = processInfo.Age.Hours.ToString();
    forumsRunning[4] = processInfo.Age.Minutes.ToString();

给它加上try catch

   try
   {
    // Get the starttime of the W3CSVC service.
    //
    ProcessInfo processInfo = ProcessModelInfo.GetCurrentProcessInfo();
    forumsRunning[1] = processInfo.StartTime.ToString();
    forumsRunning[2] = processInfo.Age.Days.ToString();
    forumsRunning[3] = processInfo.Age.Hours.ToString();
    forumsRunning[4] = processInfo.Age.Minutes.ToString();
   }
   catch{}

然后编译一下即可

因为ProcessInfo必须asp.net进程启用才可用

发表于 2004年6月3日 10:01

评论

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

反应真快,你是如何知道这么多分页在不同网站的贴子的?

如果你不是教育网,我们可以考虑给你专门开一个空间,方便大家研究。
2004-6-3 10:10 | Dili

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

呵呵,一有评论,.text就会往我信箱发一封邮件,当然就知道了:).text真的很棒!空间暂时不需要了,谢谢:)
2004-6-3 10:13 | 宝玉

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

哇哇啦啦,鼓掌的来了*_*
2004-6-8 13:20 | 随风铃

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

>>一有评论,.text就会往我信箱发一封邮件

我总是找不到在哪里设置?!
2004-6-10 8:36 | Dili

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

你首先要在web.config里面设置一下邮件服务器,然后再个人资料里面填写自己email,就好了
2004-6-10 8:40 | 宝玉

# 严重bug

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

The file '/Forums/Themes/MasterPage.ascx' is in the special directory 'Themes', which is not allowed.
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.Web.HttpException: The file '/Forums/Themes/MasterPage.ascx' is in the special directory 'Themes', which is not allowed.

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:


[HttpException (0x80004005): The file '/Forums/Themes/MasterPage.ascx' is in the special directory 'Themes', which is not allowed.]
System.Web.Compilation.BuildManager.ValidateVirtualPathInternal(String virtualPath, Boolean allowCrossApp) +3427436
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(String virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +230
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, String virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +234
System.Web.UI.TemplateControl.LoadControl(String virtualPath) +90
MetaBuilders.WebControls.MasterPages.ContentContainer.LoadMasterPage() +64
MetaBuilders.WebControls.MasterPages.ContentContainer.OnInit(EventArgs e) +20
System.Web.UI.Control.InitRecursive(Control namingContainer) +346
System.Web.UI.Control.InitRecursive(Control namingContainer) +216
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +623




--------------------------------------------------------------------------------
2004-7-21 11:53 | xunjie

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

我修改后编译不成功
2004-7-26 9:47 | popcode

# re: 昨天发布的Asp.net Forums2.0 RC2 中文版的一个严重bug

还是下载最新的吧:)

http://forums.asp.net/builds
2004-7-26 14:49 | 宝玉

Post Comment

主题  
姓名  
主页
校验码  
内容   
京ICP备 05050892号