如何包括在我的SharePoint网站asp.net? [英] how to include my asp.net website under sharepoint?
问题描述
我我有asp.net网站用C#+ SQL Server 2008中的连接+ CSS + JavaScript的AJAX +。我有一个解决方案。我想下运行的SharePoint这个网站。我必须做这个整合?
I i have the asp.net web site with c# + sql server 2008 connectivity + css + javascripts + ajax . I have a solution. i want to run this site under sharepoint . What i have to do for integrate this ?
推荐答案
您需要创建一个子目录,充当 A 缓冲块/删除继承物品从.NET 2 / 3.5的框架,然后在此创建应用程序。
You need to create an sub-directory that acts as a buffer
to block/remove the inherited items from the .net 2 / 3.5 framework and then create your application under this.
假设你命名缓存
应用应用
,和您的自定义.NET 4.0的应用程序名为的myapp </ code>,你得到的应用程序将居住在:
Assuming you name the buffer
application apps
, and your custom .NET 4.0 application is called myapp
, your resulting application would reside at:
HTTP:// [的SharePoint站点] /应用程序/ MyApp的/
http://[sharepoint-site]/apps/myapp/
如何做到这一点:
-
应用您的SharePoint的根目录下
创建一个子目录
网站
Create a sub-directory
apps
under the root of your SharePoint site
走进安全的应用
目录,并添加每个人
的读取权限
Go into security for the apps
directory and add everyone
with Read permissions
在IIS中,将其转换为一个应用程序,并选择相同的应用程序池
您的SharePoint网站下
In IIS, convert this to an application and pick the same app-pool that your SharePoint site is running under
下创建一个web.config /应用/
,这将阻止/删除
的SharePoint的东西(见下文为code座)
Create a web.config under /apps/
, this will block/remove the
SharePoint stuff (see below for the code block)
在应用程序创建
的myapp </ code>目录
(例如/应用程序/ MyApp的/)
Create your myapp
directory under apps
(ex. /apps/myapp/)
在IIS中,进入应用程序池,创建一个新的应用程序池, MyApp的.NET V4.0
In IIS, go into Application Pools, create a new AppPool, MyApp .NET v4.0
走进高级设置
> 身份
并添加相同的AD域用户帐户
凭据您的SharePoint网站使用
Go into Advanced Settings
> Identity
and add the same AD domain user account
credentials that your SharePoint site is using
不过在IIS,回去的myapp </ code>并转换为一个应用程序,并挑选了
MyApp的.NET V4.0
程序池
Still in IIS, go back to myapp
and convert to an application and pick the MyApp .NET v4.0
AppPool
复制您的code结束了,你就大功告成了!
Copy your code over and you're done!
在应用程序的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>
这篇关于如何包括在我的SharePoint网站asp.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!