A
Author
I asked about this here a few days ago. I am still testing and trying
to figure out what is the simplest solution.
OK, I have two web applications developed independently by two web
developers. I would like to integrate them into one application such
that there is only one Login and one Logout (in other words, single
sign-in and single logout for these 2 applications)
I tried the following, which is probably whimsical.
1) Created a container folder called MyWebsites
2) Created Web.config, Login.aspx and Logout.aspx immediately under
MyWebsites folder.
3) Copied both Website1 and Website2 to this MyWebsites folder, and
removed the web.config files of both Website1 and Website2.
Now, the file structure is as shown here:
http://gnewsgroup.googlepages.com/howtointegrate2webapp?
The problem then is that classes under App_Code of either websites are
no longer accessible. The MSDN article at http://msdn.microsoft.com/en-us/library/t990ks23.aspx
says:
<quote>
If your Web application includes code that you want to share between
pages, you can keep the code in one of two special folders underneath
the root of your Web application, the Bin folder and the App_Code
folder.
</quote>
It explicitly says that App_Code should be placed underneath the root
of a Web application. This sorta explains why those classes are no
longer accessible if I integrate those two web applications in that
way.
Had it worked, it would have been an easy solution. But am I close to
any solution like this? Or this rout would never work? Please share
your two cents. Thanks a lot.
to figure out what is the simplest solution.
OK, I have two web applications developed independently by two web
developers. I would like to integrate them into one application such
that there is only one Login and one Logout (in other words, single
sign-in and single logout for these 2 applications)
I tried the following, which is probably whimsical.
1) Created a container folder called MyWebsites
2) Created Web.config, Login.aspx and Logout.aspx immediately under
MyWebsites folder.
3) Copied both Website1 and Website2 to this MyWebsites folder, and
removed the web.config files of both Website1 and Website2.
Now, the file structure is as shown here:
http://gnewsgroup.googlepages.com/howtointegrate2webapp?
The problem then is that classes under App_Code of either websites are
no longer accessible. The MSDN article at http://msdn.microsoft.com/en-us/library/t990ks23.aspx
says:
<quote>
If your Web application includes code that you want to share between
pages, you can keep the code in one of two special folders underneath
the root of your Web application, the Bin folder and the App_Code
folder.
</quote>
It explicitly says that App_Code should be placed underneath the root
of a Web application. This sorta explains why those classes are no
longer accessible if I integrate those two web applications in that
way.
Had it worked, it would have been an easy solution. But am I close to
any solution like this? Or this rout would never work? Please share
your two cents. Thanks a lot.