您的位置:程序门 -> web 开发 -> iis



vs2005 设置iis问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


vs2005 设置iis问题[已结贴,结贴人:sisiz]
发表于:2007-06-08 09:19:25 楼主
我的vs2005     里做的程序,    
数据库连接是在程序里,不在web.config     ,这个有没有影响iis的设置。    
我现在vs2005后访问浏览不了。    
应该怎么设置?
发表于:2007-06-08 09:25:221楼 得分:40
这个和数据库连接没有关系的,除非你数据库搬家了;
你访问不了程序还是数据库阿?程序的话应该是你iis设置不对吧
你要说明错误才可以知道具体怎么解决
发表于:2007-06-08 09:27:422楼 得分:0
顺便说一句,数据库连接放web.config里面是为了方便修改,即部属的时候只要修改web.config即可,而不需要满程序的去找连接字符串(如果发布的程序只有dll话,还不能修改),这个才是需要把连接字符串写在web.config里面的原因
发表于:2007-06-08 16:09:563楼 得分:0
错误类型如下,可是能访问asp的站点。
server   error   in   '/shuyu '   application.
--------------------------------------------------------------------------------

failed   to   access   iis   metabase.  
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.hosting.hostingenvironmentexception:   failed   to   access   iis   metabase.  

the   process   account   used   to   run   asp.net   must   have   read   access   to   the   iis   metabase   (e.g.   iis://servername/w3svc).   for   information   on   modifying   metabase   permissions,   please   see   http://support.microsoft.com/?kbid=267904.

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:  


[hostingenvironmentexception:   failed   to   access   iis   metabase.]
      system.web.configuration.metabaseserverconfig.mappathcaching(string   siteid,   virtualpath   path)   +3492154
      system.web.configuration.metabaseserverconfig.system.web.configuration.iconfigmappath.mappath(string   siteid,   virtualpath   vpath)   +9
      system.web.hosting.hostingenvironment.mappathactual(virtualpath   virtualpath,   boolean   permitnull)   +163
      system.web.cachedpathdata.getconfigpathdata(string   configpath)   +382
      system.web.cachedpathdata.getconfigpathdata(string   configpath)   +243
      system.web.cachedpathdata.getapplicationpathdata()   +68
      system.web.cachedpathdata.getvirtualpathdata(virtualpath   virtualpath,   boolean   permitpathsoutsideapp)   +3385663
      system.web.configuration.runtimeconfig.getlkgruntimeconfig(virtualpath   path)   +189

 


--------------------------------------------------------------------------------
version   information:   microsoft   .net   framework   version:2.0.50727.42;   asp.net   version:2.0.50727.42


快速检索

最新资讯
热门点击