我下了一个.Text blog程序, 在本地sql server2000中新建.Text的数据库, 然后重新配置了web.config文件, 主要是修改了connectionString:<DbProvider type = "Dottext.Framework.Data.SqlDataProvider, Dottext.Framework"
connectionString = "Password=;Persist Security Info=False;User ID=sa;Initial Catalog=blog;Data Source=localhost;" />运行后,出现下面错误:
A blog matching the location you requested was not found. Host = [chen], Application = [default.aspx] 不知为何?

解决方案 »

  1.   

    connectionString="edit"大家用过没有啊?
      

  2.   

    好像是你的虚拟目录错了可能是我菜。。<DbProvider type = "Dottext.Framework.Data.SqlDataProvider, Dottext.Framework"
    connectionString = "Password=;Persist Security Info=False;User ID=sa;Initial Catalog=blog;Data Source=localhost;" />WEB。CONFIG有这样配制的吗?
      

  3.   

    <HttpHandlers>
    <HttpHandler pattern = "(\.config|\.asax|\.ascx|\.config|\.cs|\.csproj|\.vb|\.vbproj|\.webinfo|\.asp|\.licx|\.resx|\.resources)$" type = "Dottext.Framework.UrlManager.HttpForbiddenHandler, Dottext.Framework" handlerType = "Direct" />
    <HttpHandler pattern = "(\.gif|\.js|\.jpg|\.zip|\.jpeg|\.jpe|\.css)$" type = "Dottext.Common.UrlManager.BlogStaticFileHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/rss\.aspx)$" type = "Dottext.Common.Syndication.RssHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/atom\.aspx)$" type = "Dottext.Common.Syndication.AtomHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/comments/commentRss/\d+\.aspx)$" type = "Dottext.Common.Syndication.RssCommentHandler, Dottext.Common" handlerType = "Direct"/>
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/aggbug/\d+\.aspx)$" type = "Dottext.Framework.Tracking.AggBugHandler, Dottext.Framework" handlerType = "Direct"/>
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/customcss\.aspx)$" type = "Dottext.Web.UI.Handlers.BlogSecondaryCssHandler, Dottext.Web" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/category\/(\d|\w|\s)+\.aspx/rss)$" type = "Dottext.Common.Syndication.RssCategoryHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.(?!aspx))+((\/default\.aspx)?|(\/?))?)$"  controls = "homepage.ascx"/>
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/articles/\d+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/articles/\w+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />                
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/archive/\d{4}/\d{2}/\d{2}/\d+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/archive/\d{4}/\d{2}/\d{2}/\w+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/archive/\d{4}/\d{1,2}/\d{1,2}\.aspx)$" controls = "ArchiveDay.ascx" />
    <HttpHandler pattern = "^(?:/(\w|\s|\.)+/archive/\d{4}/\d{1,2}\.aspx)$" controls = "ArchiveMonth.ascx" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/contact\.aspx)$" controls="Contact.ascx" />
    <HttpHandler pattern = "/posts/|/story/|/archive/" type="Dottext.Web.UI.Handlers.RedirectHandler,Dottext.Web"  handlerType = "Direct"/>
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/gallery\/\d+\.aspx)$" controls="GalleryThumbNailViewer.ascx" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/gallery\/image\/\d+\.aspx)$" controls="ViewPicture.ascx" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/(?:category|stories)/(\w|\s)+\.aspx)$" controls="CategoryEntryList.ascx" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/(?:admin|logout\.aspx|login\.aspx))" type = "Dottext.Web.UI.Handlers.BlogExistingPageHandler, Dottext.Web" handlerType = "Factory" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/comments\/\d+\.aspx)$" type = "Dottext.Common.Syndication.CommentHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/services\/trackbacks/\d+\.aspx)$" type = "Dottext.Framework.Tracking.TrackBackHandler, Dottext.Framework" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/services\/pingback\.aspx)$" type = "Dottext.Framework.Tracking.PingBackService, Dottext.Framework" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/services\/metablogapi\.aspx)$" type = "Dottext.Framework.XmlRpc.MetaWeblog, Dottext.Framework" handlerType = "Direct" />
     </HttpHandlers>改成.............................. <HttpHandlers>
    <HttpHandler pattern = "^(?:/rss2\.aspx)$" type = "Dottext.Common.Syndication.RssHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/atom2\.aspx)$" type = "Dottext.Common.Syndication.AtomHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/comments/commentRss/\d+\.aspx)$" type = "Dottext.Common.Syndication.RssCommentHandler, Dottext.Common" handlerType = "Direct"/>
    <HttpHandler pattern = "^(?:/aggbug/\d+\.aspx)$" type = "Dottext.Framework.Tracking.AggBugHandler, Dottext.Framework" handlerType = "Direct"/>
    <HttpHandler pattern = "^(?:/customcss\.aspx)$" type = "Dottext.Web.UI.Handlers.BlogSecondaryCssHandler, Dottext.Web" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/category\/(\d|\w|\s)+\.aspx/rss)$" type = "Dottext.Common.Syndication.RssCategoryHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:((\/default\.aspx)?|(\/?))?)$"  controls = "homepage.ascx"/>
    <HttpHandler pattern = "^(?:/articles/\d+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />
    <HttpHandler pattern = "^(?:/articles/\w+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />                
    <HttpHandler pattern = "^(?:/archive/\d{4}/\d{2}/\d{2}/\d+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />
    <HttpHandler pattern = "^(?:/archive/\d{4}/\d{2}/\d{2}/\w+\.aspx)$" controls = "viewpost.ascx,Comments.ascx,PostComment.ascx" />
    <HttpHandler pattern = "^(?:/archive/\d{4}/\d{1,2}/\d{1,2}\.aspx)$" controls = "ArchiveDay.ascx" />
    <HttpHandler pattern = "^(?:/archive/\d{4}/\d{1,2}\.aspx)$" controls = "ArchiveMonth.ascx" />
    <HttpHandler pattern = "^(?:/contact\.aspx)$" controls="Contact.ascx" />
    <HttpHandler pattern = "/posts/|/story/|/archive/" type="Dottext.Web.UI.Handlers.RedirectHandler,Dottext.Web"  handlerType = "Direct"/>
    <HttpHandler pattern = "^(?:/gallery\/\d+\.aspx)$" controls="GalleryThumbNailViewer.ascx" />
    <HttpHandler pattern = "^(?:/gallery\/image\/\d+\.aspx)$" controls="ViewPicture.ascx" />
    <HttpHandler pattern = "^(?:/(?:category|stories)/(\w|\s)+\.aspx)$" controls="CategoryEntryList.ascx" />
    <HttpHandler pattern = "^(?:/comments\/\d+\.aspx)$" type = "Dottext.Common.Syndication.CommentHandler, Dottext.Common" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/services\/trackbacks/\d+\.aspx)$" type = "Dottext.Framework.Tracking.TrackBackHandler, Dottext.Framework" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/services\/pingback\.aspx)$" type = "Dottext.Framework.Tracking.PingBackService, Dottext.Framework" handlerType = "Direct" />
    <HttpHandler pattern = "^(?:/services\/metablogapi\.aspx)$" type = "Dottext.Framework.XmlRpc.MetaWeblog, Dottext.Framework" handlerType = "Direct" />
     </HttpHandlers>-----------------------------------没问题了, 奇怪?
      

  4.   

    我用的是mutiple_web.config配置文件就出错,single_web.config就没问题,大家有没遇到过?