我有一个 asp.net 网站,带有 c# + sql server 2008 连接性 + css + javascripts + ajax 。我有一个解决方案。我想在 sharepoint 下运行这个网站。我需要做什么来整合这个?

没有正确的解决方案

其他提示

您需要创建一个子目录作为 buffer 阻止/删除从 .net 2 / 3.5 框架继承的项目,然后在此下创建您的应用程序。

假设您命名 buffer 应用 apps, ,您的自定义 .NET 4.0 应用程序称为 myapp, ,您生成的应用程序将驻留在:

http://[sharepoint-site]/apps/myapp/

这个怎么做:

  1. 创建子目录 apps 在您的SharePoint网站的根源下

  2. 进入安全领域 apps 目录并添加 everyone 具有读取权限

  3. 在IIS中,将其转换为应用程序,然后选择SharePoint网站在下面运行的同一应用程序池

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

  5. 创建您的 myapp 目录下 apps (前任。/应用程序/myapp/)

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

  7. 进入 Advanced Settings > Identity 并添加您的SharePoint网站正在使用的相同的广告域用户帐户凭据

  8. 仍在 IIS 中,返回 myapp 并转换为应用程序并选择 MyApp .NET v4.0 应用程序池

  9. 复制您的代码即可完成!

web.config 文件位于 apps 目录:

<?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>

有几种选择。第一种是简单的IFrame web部件承载在一帧的整个应用程序。网页查看器Web部件是内置到SharePoint,以及这是否适合你。

在第二种是通过应用程序页面。我没有这样做,但这里是一个MSDN文章对他们的:

http://msdn.microsoft.com/en-us/library /bb418732.aspx

第三是应用程序中嵌入的你的控件进入的WebParts,然后将这些成网络的一部分区域上SharePoint页面。

您采取的方法取决于你的应用程序的大小,你必须整合它的时间。 iframe的办法是快速和肮脏的,而web部件的做法是更原始,但也需要很长时间的大型应用程序。

我没有任何运气试图让其他网站共存与SharePoint。难道你们不能在自己的网站上创建这个网站你的,有自己的应用程序池,然后就链接到它从SharePoint?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top