dolomite33

Pretty straightforward question ... just looking for the safest/cleanest way to handle this ...

I want to bring in an ASP.NET application onto the SharePoint server. I will not be using the Business Data Catalog or any SharePoint integration. The application has it's own Virtual Directory but not it's own Application Pool (currently on a seperate server). I need to move this application to the SharePoint server. What would be the best way to handle this

Thanks!



Re: SharePoint - Development and Programming Best way ... bring ASP.NET 2.0 application onto SharePoint server

Sundar Narasimman

Here'w what i've tried for one of our internal implementaion, it works

a) Deploy your web application on the same virtual directory as that of SharePoint

b) Use a Page viewer web part to render the ASP.NET Pages, so that MOSS 2007 acts as the facade for rendering ASP.NET pages.






Re: SharePoint - Development and Programming Best way ... bring ASP.NET 2.0 application onto SharePoint server

dolomite33

Thanks for the quick response Sundar!

That was what I was hoping to do ... but Page Viewer (iFrame) does not work with some of the apps JavaScript and querystring/cookies.

Let me back up one step ... ultimately, what I need to happen is to keep the same alias/path for SharePoint as the apps ... example:

http://intranet - goes to SharePoint homepage

http://intranet/application/ - goes to a "legacy" application ... currently legacy apps are on a seperate web server like http://intranetapps/application

What would be the best way to keep the path consistent for those legacy apps





Re: SharePoint - Development and Programming Best way ... bring ASP.NET 2.0 application onto SharePoint server

Kev-ster

I may be the last person that should answer this question being that I'm new to Sharepoint 2007, however I saw on the administration page, an option that allows you to create "managed paths". (ex. http://sharepoint/xxxxx or http://sharepoint/yyyyyy)

Check that out.






Re: SharePoint - Development and Programming Best way ... bring ASP.NET 2.0 application onto SharePoint server

dolomite33

Hey Kev,

Thanks! Unfortunately, I think that is only for paths within the URL namespace ...

Another interesting screen that seems like it might help is the Alternative Access Mapping (In Operations of Central Admin) ... specifically 'Map to External Resource" ... can't find much information on this though ...





Re: SharePoint - Development and Programming Best way ... bring ASP.NET 2.0 application onto SharePoint server

Gopi Ega

hi dolomit33,

I hope this link will help you

http://msdn2.microsoft.com/en-us/library/ms368312.aspx






Re: SharePoint - Development and Programming Best way ... bring ASP.NET 2.0 application onto SharePoint server

Neel00

Sundar,

I have a FBA question, let me know, if you provide me some direction

I am having a problem to get FBA on my sharepoint website, can some please help out

Here are the steps, i have taken, would be happy to provide the code in ZIP files

ASP.NET

1. Created the Custom membership provider (DLL file) in asp.net (found sample on website)

2. Tested in asp.net web admin configuration tool, worked perfect

3. Connected to database, added/modified/deleted user everything worked fine in asp.net

4. Created a test website, added CreateUser.aspx,Login.aspx, tested it, everything worked fine in asp.net

5. Created strong name key for the custom membership dll

SHAREPOINT

What i want to do is to create a web application using forms authentication (my provider)

I am the administrator for the server, has full control on everything on this server

My central admin site is on port 10000.

Created New Website at Port 5000 --> Extended the site on port 5000 (Windows Authentication)

Used an existing sharepoint Pool, added myself as administrator as well as site collection administrators

Added beleow changes to web.config file of the Central admin and the site

In the central admin site the changed the defaultProvider to AspNetWindowsTokenRoleProvider

In the website, it styed the same as mentioned below HDIAspNetSqlRoleProvider

Above the system.wb tag

<connectionStrings>
<add name="HDIConnectionString" providerName="System.Data.SqlClient" connectionString="Server=.;Database=HDIMembershipProvider;Trusted_Connection=True;"/>

</connectionStrings>

Inside system.web tag

<!--Custom Role Provider Configuration-->
<roleManager enabled="true" defaultProvider="HDIAspNetSqlRoleProvider">
<providers>
<add name="HDIAspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

connectionStringName="HDIConnectionString" applicationName="/"
/>
</providers>
</roleManager

<!--Custom Role Provider Configuration-->

<!--Custom Membership Provider Configuration-->
<membership defaultProvider="HDIMembershipProvider" userIsOnlineTimeWindow="15">

<providers>
<clear/>
<add
name="HDIMembershipProvider"
type="HDI.AspNet.Membership.HDIMembershipProvider"
connectionStringName="HDIConnectionString"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
writeExceptionsToEventLog="false" />
</providers>
</membership>
<!--Custom Membership Provider Configuration-->

Next steps

1. Added the Custom Membership dll to GAC

2. Added the Custom Provider dll to the _appbin folder of central admin site

3. Added the Custom membership dll to the web.config (Compilation tag) of both central admin as well as the site.

4. For testing purposes Set the security to minimal

5. Application Management --> select the new site on port 5000 --> changed the Authentication to Forms

6. At this Point, if i can search the users using the custom provider, it resolves the id.

7. Use the URL for the site on port 5000 --> site comes up with Form authentication window -->Enter my userid and password, and hit the submit button

SHAREPOINT COMES UP WITH UNKNOWN ERROR

I have even contacted Andrew Connell, MVP Microsoft Office SharePoint Server and have used his article to do the FBA

see this related article:

http://www.andrewconnell.com/blog/articles/HowToConfigPublishingSiteWithDualAuthProvidersAndAnonAccess.aspx


Please someone help me out on the sharepoint side to get me on the run, I feel that there is some trivial stuff is missing in the loop.