求助 “/”应用程序中的服务器错误。

pfxiong 2009-12-29 01:27:10
小弟在架设 桃源网络相册时出现 “/”应用程序中的服务器错误。提示


“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。

分析器错误消息: 分析 Comment 时,出现意外的文件结尾。 行 80,位置 17。

源错误:


行 78:
行 79: </system.web>
行 80: </configuration>



源文件: D:\PIC\TYPhoto_200804\typhoto_sql_a\web.config 行: 80


--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET 版本:2.0.50727.3053

<?xml version="1.0" encoding="GB2312"?>
<configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>

<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/photo_(\d{1,4})\.aspx</LookFor>
<SendTo>~/Photo.aspx?albumid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/album_(\d{1,4})\.aspx</LookFor>
<SendTo>~/album.aspx?kind=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/userd_(\w+([-+.]\w+)*)\.aspx</LookFor>
<SendTo>~/myspace.aspx?username=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/myspace_photos_(\d{1,4})\.aspx</LookFor>
<SendTo>~/myspace_photos.aspx?dirid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/myspace_detail_(\d{1,4})\.aspx</LookFor>
<SendTo>~/myspace_detail.aspx?photoid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/userly_(\w+([-+.]\w+)*)\.aspx</LookFor>
<SendTo>~/myspace_user_ly.aspx?username=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/userinfo_(\w+([-+.]\w+)*)\.aspx</LookFor>
<SendTo>~/myspace_user_info.aspx?username=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/userfriend_(\w+([-+.]\w+)*)\.aspx</LookFor>
<SendTo>~/myspace_friend.aspx?username=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/userface_(\w+([-+.]\w+)*)\.aspx</LookFor>
<SendTo>~/myspace_face.aspx?username=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/photo_tag(\w+([-+.]\w+)*)\.aspx</LookFor>
<SendTo>~/photo.aspx?tag=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings>
<add key="conn" value="Data Source=(local);server=.;uid=sa;pwd=000000;database=typhoto"/> <!--数据库路径-->
<add key="key" value="0000"/>
</appSettings>

<system.web>

<compilation defaultLanguage="C#" debug="false"/>

<pages enableSessionState="true" enableViewState="true" validateRequest="false" enableViewStateMac="false"/>

<customErrors mode="Off" />

<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro" />
<add verb="POST,GET" path="Upload.axd" type="Upload,Typhoto"/>
<add verb="*" path="*.gif" type="Typhoto.OutLink, Typhoto" />
<add verb="*" path="*.jpg" type="Typhoto.OutLink, Typhoto" />
<add verb="*" path="*.jpeg" type="Typhoto.OutLink, Typhoto" />
<add verb="*" path="*.bmp" type="Typhoto.OutLink, Typhoto" />
<add verb="*" path="*.png" type="Typhoto.OutLink, Typhoto" />
</httpHandlers>
<httpModules>
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
</httpModules>

<httpRuntime executionTimeout="3600" maxRequestLength="1550000"/>

</system.web>
</configuration>
...全文
108 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
pfxiong 2009-12-29
  • 打赏
  • 举报
回复
能不能说点建设性的意见!!!
生活 2009-12-29
  • 打赏
  • 举报
回复
web.config 配置有问题 检查下web.config吧
hassss2008 2009-12-29
  • 打赏
  • 举报
回复
原因很多 可以去系统日志里看看
qqzeng-ip 2009-12-29
  • 打赏
  • 举报
回复
配置出错 导致路径不对

111,120

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧