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 ?
how to include my asp.net website under sharepoint?
3.1k Views Asked by Red Swan At
3
There are 3 best solutions below
0
On
There are several options. The first is a simple IFrame webpart that hosts the entire application in a frame. The page viewer webpart is built into sharepoint, and does this for you.
The second is using Application Pages. I have not done this, but here is an MSDN article on them:
http://msdn.microsoft.com/en-us/library/bb418732.aspx
The third is to embed the controls of you app into Webparts, and then place these into web part zones on sharepoint pages.
The approach you take depends on the size of your app and the time you have to integrate it. The IFrame Approach is quick and dirty, while the webpart approach is much more native, but can take a long time for large apps.
You need to create an sub-directory that acts as a
bufferto block/remove the inherited items from the .net 2 / 3.5 framework and then create your application under this.Assuming you name the
bufferapplicationapps, and your custom .NET 4.0 application is calledmyapp, your resulting application would reside at:http://[sharepoint-site]/apps/myapp/
How to do this:
Create a sub-directory
appsunder the root of your SharePoint siteGo into security for the
appsdirectory and addeveryonewith Read permissionsIn IIS, convert this to an application and pick the same app-pool that your SharePoint site is running under
Create a web.config under
/apps/, this will block/remove the SharePoint stuff (see below for the code block)Create your
myappdirectory underapps(ex. /apps/myapp/)In IIS, go into Application Pools, create a new AppPool,
MyApp .NET v4.0Go into
Advanced Settings>Identityand add the same AD domain user account credentials that your SharePoint site is usingStill in IIS, go back to
myappand convert to an application and pick theMyApp .NET v4.0AppPoolCopy your code over and you're done!
The web.config file in the
appsdirectory: