首页 新闻 赞助 找找看

奇怪!重写二级域名,在本地可以,传到服务就问题了.

0
悬赏园豆:20 [已关闭问题] 关闭于 2008-03-30 17:13
<P>提示这种错误:</P> <P><SPAN> </P> <H1>“/”应用程序中的服务器错误。 <HR width="100%" color=silver SIZE=1> </H1> <H2><I>未将对象引用设置到对象的实例。</I> </H2> <P></SPAN><FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><B>说明: </B>执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 <BR><BR><B>异常详细信息: </B>System.NullReferenceException: 未将对象引用设置到对象的实例。<BR><BR><B>源错误:</B> <BR><BR> <TABLE width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD><CODE>执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。</CODE> </TD></TR></TBODY></TABLE><BR><B><FONT face=Verdana>堆栈跟踪:</FONT></B> <BR><BR> <TABLE width="100%" bgColor=#ffffcc> <TBODY> <TR> <TD><CODE><PRE>[NullReferenceException: 未将对象引用设置到对象的实例。] System.Web.HttpContext.RewritePath(VirtualPath filePath, VirtualPath pathInfo, String queryString, Boolean setClientFilePath) +40 System.Web.HttpContext.RewritePath(String filePath, String pathInfo, String queryString) +47 URLRewriter.RewriterUtils.RewriteUrl(HttpContext context, String sendToUrl, String&amp; sendToUrlLessQString, String&amp; filePath) +494 URLRewriter.RewriterUtils.RewriteUrl(HttpContext context, String sendToUrl) +51 URLRewriter.ModuleRewriter.Rewrite(String requestedPath, HttpApplication app) +471 URLRewriter.BaseModuleRewriter.BaseModuleRewriter_AuthorizeRequest(Object sender, EventArgs e) +116 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +64 </PRE></CODE></TD></TR></TBODY></TABLE><BR></P> <HR width="100%" color=silver SIZE=1> <P><B><FONT face=Verdana>版本信息:</FONT></B>&nbsp;Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42 </FONT><!-- [NullReferenceException]: 未将对象引用设置到对象的实例。 在 System.Web.HttpContext.RewritePath(VirtualPath filePath, VirtualPath pathInfo, String queryString, Boolean setClientFilePath) 在 System.Web.HttpContext.RewritePath(String filePath, String pathInfo, String queryString) 在 URLRewriter.RewriterUtils.RewriteUrl(HttpContext context, String sendToUrl, String& sendToUrlLessQString, String& filePath) 在 URLRewriter.RewriterUtils.RewriteUrl(HttpContext context, String sendToUrl) 在 URLRewriter.ModuleRewriter.Rewrite(String requestedPath, HttpApplication app) 在 URLRewriter.BaseModuleRewriter.BaseModuleRewriter_AuthorizeRequest(Object sender, EventArgs e) 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --></P>
问题补充: 没有用虚拟目录, 比如 www.domain.com/default.aspx?domain=aaa 重写为 aaa.domain.com 在本机上测试可以,传到服务器就出现下面的错误了.
老农的主页 老农 | 初学一级 | 园豆:7
提问于:2008-03-04 13:59
< >
分享
所有回答(2)
0
是不是布署为虚拟目录和布署为网站的区别??
沙加 | 园豆:3680 (老鸟四级) | 2008-03-04 16:00
0
在部署为网站的时候,好多图片的路径老是出现问题.但是布署为虚拟目录没有问题?
侯垒 | 园豆:3435 (老鸟四级) | 2008-03-04 16:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册