Asp.net网站为Sharepoint子网站

时间:2016-05-30 08:48:37

标签: asp.net sharepoint-2013

我有一个Sharepoint网站,例如http://sharepoint。 我有一个asp.net网站,现在它在http://sharepoint:85/website,同一个域,不同端口上正常工作。

我需要这个网站在同一个端口工作,比如http://sharepoint/website。它不能在Sharepoint或其他东西下工作,只需要共享地址。

我尝试在IIS管理器中将应用程序添加到sharepoint站点,但是http://sharepoint/website在“/ website”应用程序中显示错误“服务器错误”。

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。我在IIS管理器中添加应用程序到站点的方法很好。在web.config页面中显示<customErrors mode="Off">时,显示错误,找不到默认角色提供程序。 然后在web.config中找到

    <roleManager>
       <providers>
       <clear/>
     </providers>
   </roleManager>

已删除<clear/>行,现在网站正常运行。