
October 31st, 2001, 04:57 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
How to integrate 2 ASP.NET apps in VS.NET
Originally posted by : Enav (secretagent@libero.it)Hi,I'm builing a web site and decided to do it in ASP.NET with VS.NET. I have asolution componed by a web projects. Some of them are class libraries andsome ASP.NET webapps. I can't keep all the files in one single ASP.NETproject, because I want to create separated assemblies for different part ofthe project. In other words, I need to have an assembly for the codebehindsof my UserManager "module", one for the Guestbook module and one for therest of the site. I do this way because if I have to change something in theguestbook or in the UserManager I don't have to recompiled one big assembly,but a small one, and I have to upload just that one.So where's the problem? The problem is that VS.NET creates a virtualdirectory for any ASP.NET app you create. This means that I cannot share mySessions variable between my Guestook "module", the USerManager and the restof the site, since they run in seprate Application domains. There is alsoanother problem. My structure is this:/MyWeb /Images /GuestbookGuesbook is created as a virtual directory, so if I write it won't load the image under /Images, since itdoes not recognize the parent folder.All this would not happen if I were developing with a normal text editor andcompiling my assemblies from the command line, because I would not createthe sub-virtual folders but still compile the files in separate assemblies!So, how to solve this problem, and integrate the separate assemblies? I canuse them as long as I don't need to share Session variables or refer to any"parent" path, but unfortunately I need to do that...I tried to change the Guestbook virtual dir and make it a normal dir, butVS.NET no longer compile the assembly then...Any suggestion? Manyt thanks in advance...- Enav
|