【问题标题】:SharePoint 2007 Web Application is not found找不到 SharePoint 2007 Web 应用程序
【发布时间】:2013-05-27 09:07:40
【问题描述】:

我创建了一个名为 testwebapp 的 Web 应用程序,然后创建了一个网站集 (testsite)。当我尝试 siteCollection = new SPSite("http://localhost");在 Visual Studio 2008 中,它会引发错误 Web 应用程序未找到。当然,localhost 在 IE 中工作,我不知道为什么 testwebapp 不起作用。有任何想法吗?蒂亚!

大卫

【问题讨论】:

    标签: sharepoint-2007


    【解决方案1】:

    我们曾经看到过这样一种奇怪的行为。实例化站点时,请尝试在 url 的末尾添加一个斜杠。

    siteCollection = new SPSite("http://localhost/");
    

    我们看到的问题是有 2 个 Web 应用程序基本上位于同一个 url。一个是完全隐藏的,当我们离开尾部斜线时它会被击中。如果您删除了根 Web 应用程序并将其重新添加,也许您会遇到类似的奇怪情况?

    【讨论】:

      【解决方案2】:

      尝试提供正确的 url 而不是使用 localhost。因此,如果您的机器名称是mymachine,请使用:

      siteCollection = new SPSite("http://mymachine/"); 
      

      这应该可行。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-06-14
        • 1970-01-01
        • 2019-07-06
        • 1970-01-01
        • 2010-09-20
        • 2011-02-02
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多