Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在sharepoint下包含我的asp.net网站?_Asp.net_Sharepoint_Application Integration - Fatal编程技术网

如何在sharepoint下包含我的asp.net网站?

如何在sharepoint下包含我的asp.net网站?,asp.net,sharepoint,application-integration,Asp.net,Sharepoint,Application Integration,我有一个asp.net网站,带有c+SQLServer2008连接+css+javascripts+ajax。我有一个解决办法。我想在sharepoint下运行此网站。我必须做些什么才能集成此功能?我还没有成功尝试让另一个站点与SharePoint共存。您不可能在自己的网站上创建此网站,并使用自己的应用程序池,然后从SharePoint链接到它吗?有几个选项。第一个是一个简单的IFrame Web部件,它在一个框架中承载整个应用程序。页面查看器Web部件内置于sharepoint中,并为您执行此

我有一个asp.net网站,带有c+SQLServer2008连接+css+javascripts+ajax。我有一个解决办法。我想在sharepoint下运行此网站。我必须做些什么才能集成此功能?

我还没有成功尝试让另一个站点与SharePoint共存。您不可能在自己的网站上创建此网站,并使用自己的应用程序池,然后从SharePoint链接到它吗?

有几个选项。第一个是一个简单的IFrame Web部件,它在一个框架中承载整个应用程序。页面查看器Web部件内置于sharepoint中,并为您执行此操作

第二种是使用应用程序页面。我没有这样做,但这里有一篇关于它们的MSDN文章:

第三种方法是将应用程序的控件嵌入web部件,然后将这些控件放入sharepoint页面上的web部件区域


你采取的方法取决于你的应用程序的大小和你集成它的时间。IFrame方法速度快且脏,而webpart方法更为原生,但对于大型应用程序可能需要很长时间。

您需要创建一个子目录作为缓冲区,以阻止/删除.net 2/3.5 framework中的继承项,然后在此基础上创建应用程序

假设您将缓冲区应用程序命名为apps,并且您的自定义.NET 4.0应用程序名为myapp,则生成的应用程序将位于:

http://[sharepoint网站]/apps/myapp/

如何做到这一点:

在SharePoint的根目录下创建子目录apps 场地

进入应用程序目录的安全性并添加具有读取权限的所有人

在IIS中,将其转换为应用程序并选择相同的应用程序池 您的SharePoint网站正在其下运行

在/apps/下创建一个web.config,这将阻止/删除 有关代码块,请参见下面的内容

在apps ex./apps/myapp下创建你的myapp目录/

在IIS中,进入应用程序池,创建一个新的应用程序池MyApp.NET v4.0

进入高级设置>标识并添加相同的AD域用户帐户 SharePoint网站正在使用的凭据

仍然在IIS中,返回myapp并转换为应用程序,然后选择myapp.NETV4.0AppPool

复制你的代码,你就完成了

apps目录中的web.config文件:

<?xml version="1.0"?>
<configuration>
  <system.web>
    <httpHandlers>
      <remove path="Reserved.ReportViewerWebControl.axd" verb="*" />
    </httpHandlers>
    <httpModules>
      <clear/>
    </httpModules>
    <webParts>
      <transformers>
        <clear />
      </transformers>
    </webParts>
  </system.web>

  <system.webServer>
    <handlers>
      <remove name="OwssvrHandler" />
      <remove name="ScriptHandlerFactory" />
      <remove name="svc-Integrated" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <remove name="JSONHandlerFactory" />
      <remove name="ReportViewerWebPart" />
      <remove name="ReportViewerWebControl" />
    </handlers>
    <modules>
      <!-- depending on any customizations, you may have to add/remove items from this list as needed -->
      <remove name="SPRequestModule" />
      <remove name="ScriptModule" />
      <remove name="SharePoint14Module" />
      <remove name="StateServiceModule" />
      <remove name="PublishingHttpModule" />
      <remove name="RSRedirectModule" />
    </modules>
    <httpErrors errorMode="Detailed"></httpErrors>
  </system.webServer>
</configuration>