if (System.Web.HttpContext.Current.Request.Cookies["LY.CP.Front.LoginUserID"] != null)
            {
              //  Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('" + System.Web.HttpContext.Current.Request.Cookies["LY.CP.Front.LoginUserID"].Value + "');");
                userid = System.Int32.Parse(Shove._Security.Encrypt.UnEncryptString(PF.GetCallCert(), Shove._Security.Encrypt.Decrypt3DES(PF.GetCallCert(), System.Web.HttpContext.Current.Response.Cookies["LY.CP.Front.LoginUserID"].Value, PF.DesKey)));
            }代码如下,主站那边应该设置了domain(我看不到主站代码)。现在主站登录后,论坛一刷新页面就出现错误:
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------请求在此上下文中不可用 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 请求在此上下文中不可用源错误: 
[没有相关的源行]
 源文件: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fd996be8\77f5bbc1\App_Web_idwaiynf.4.cs    行: 0 堆栈跟踪: 
[HttpException (0x80004005): 请求在此上下文中不可用]
   System.Web.UI.Page.get_Request() +8703560
   Discuz.Web.forumindex.ShowPage() +247
   Discuz.Forum.PageBase..ctor() in F:\bbs_backup\source_files\Discuz.Forum\PageBase.cs:721
   Discuz.Web.forumindex..ctor() +434
   ASP.aspx_1_forumindex_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fd996be8\77f5bbc1\App_Web_idwaiynf.4.cs:0
   __ASP.FastObjectFactory_app_web_idwaiynf.Create_ASP_aspx_1_forumindex_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fd996be8\77f5bbc1\App_Web_idwaiynf.7.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3615; ASP.NET 版本:2.0.50727.3618 
请大侠抽空帮帮小弟吧……