Thursday, March 29, 2012

Many apps into One?

The single sign on can be accomplished if they are all the same framework
and they can use the same web.config.

And yes. To solve this you have to create a new VS solution with multiple
projects.

What you would have to do is:

1.Create a blank solution
2.Create a "Master App" (or the name of the complete solution) project wich
includes the sign on pages.
3.add all the apps to the VS Solution (note: all sub apps have to be in
subfolders of "master app"
4.Add a reference to every sub app into the "Master App"
5.Delete all web.config. files from all the included apps projects. Leave
only the master app web.config
Remove all subapps virtual folder from IIS. Make them regular subfolders.

When you compile your solution, you'll have only one IIS Application. the
root bin folder will include the dlls from ALL your sub apps.

you'll want to have something like this:

website
/Master App (IIS Application/virtual folder)
/bin (includes all dlls from every app)
/Sub App 1 (normal folder. no web.config)
/SubApp 2 (normal folder. no web.config)
...
/SubApp n (normal folder. no web.config)
web.config
loginPage.aspx

For this to be accomplished, all apps would have to use the same web config.
DOWNFALL: If they use different databases and you have the connection string
in a key in web.config, and that setting is in the same key for all apps,
you would have to make sure that each application uses a different key.
Also, the project names have to be all different (so dlls won't overwrite
each other in the master bin folder)

I've tried it successfully in framework 1.1.4322. Never tried it in 2.0, but
I don't see why it wouldn't.

--
Not an MCSDE, MVP, MCDE, MSFT or WTF
Not a single certification, besides my degree.
I'm just an engineer with more than 14 years spent in design and
programming.
... FYI

"NH" <NH@dotnet.itags.org.discussions.microsoft.comwrote in message
news:32CD03E9-6A17-40F4-8729-A565DE51647B@dotnet.itags.org.microsoft.com...

Quote:

Originally Posted by

>I have about 8 production apps, all small functional ones like "Expense
Claiming", "Invoicing", "Reporting" etc.
>
They are all asp.net and some are 1.1 and some 2.0.
>
I want to bring them altogether in a way that you have single sign on for
all of them (or even just the 2.0 ones if it makes it easier). How do I do
this, do I create a new ASP.Net solution with multiple projects in it? Do
I
use one website in IIS or can it handle the multiple websites I already
have?
>
I am thinking of creating a single home page with links to all the apps
that
will save poeple logging in multiple times.

"Armando Canez" <acanezATintelexionDOTcomwrote in message
news:uJtOFKJIHHA.3780@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

DOWNFALL: If they use different databases...


Which they do, according to the OP...

Quote:

Originally Posted by

Not an MCSDE, MVP, MCDE, MSFT or WTF
Not a single certification, besides my degree.


Glad to hear it!

Quote:

Originally Posted by

I'm just an engineer with more than 14 years spent in design and
programming.


Likewise, give a take a year or three... :-)
The problem happens when you have a key in your web.config that is used in
all apps and for each it has different values.

Since you use only one web.config, you have to separate them into different
keys.

If you want a single app, you can have a single web.config only.

Armando Canez

"Mark Rae" <mark@.markNOSPAMrae.comwrote in message
news:%23PbUPfJIHHA.1784@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

"Armando Canez" <acanezATintelexionDOTcomwrote in message
news:uJtOFKJIHHA.3780@.TK2MSFTNGP02.phx.gbl...
>

Quote:

Originally Posted by

>DOWNFALL: If they use different databases...


>
Which they do, according to the OP...
>

Quote:

Originally Posted by

>Not an MCSDE, MVP, MCDE, MSFT or WTF
>Not a single certification, besides my degree.


>
Glad to hear it!
>

Quote:

Originally Posted by

>I'm just an engineer with more than 14 years spent in design and
>programming.


>
Likewise, give a take a year or three... :-)
>


"Armando Canez" <acanezATintelexionDOTcomwrote in message
news:%23LwYe5JIHHA.3952@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

The problem happens when you have a key in your web.config that is used in
all apps and for each it has different values.


That's right.

Quote:

Originally Posted by

Since you use only one web.config, you have to separate them into
different keys.


Yes, I know...

Quote:

Originally Posted by

If you want a single app, you can have a single web.config only.


Obviously.

0 comments:

Post a Comment