Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Form Master

Author  Topic 

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-06-13 : 11:40:51
I'm not sure if I have fundamentally misunderstood something or I just don't quite understand what I have done.

Here is my situation

I have a main application (ASP.NET 1.1) that uses Forms authentication. This works fine.

I needed to add a complete new section to this application and so setup a new solution, wrote it and tested it. That works fine on it's own (lets call this one RMS)

I now want to add the RMS solution to the main application

I opened the main application in Visual Studio and chose the add existing project option to add RMS to the main app. I excluded the RMS web.config (so that it would use the main app one). This appeared to be fine.

I also enabled anonymous access and disabled the others on the web site

Having built the whole thing I opened my browser and put in the address of a page in the RMS. I expected the forms authentication to kick in but it didn't. Does anyone have any idea why?

Many thanks in advance

steve

-----------

Oh, so they have internet on computers now!

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-06-13 : 15:33:27
Steve -- I am not sure that having two projects in the same solution makes a difference in this sense; I think ASP.NET cares more about where the project files live on the webserver.

So, if you have something like this:

wwwroot\Project1 <-- web.config is here
wwwroot\Project2 <-- no web.config

on your webserver, and only a web.config file for Project1, even though they are in the same solution, I don't believe the web server will see that Project2 should use the same web.config as Project1.

I think you'd need to structure it like this:

wwwroot\Project1 <-- web.config is here
wwwroot\Project1\Project2 <-- no web.config


Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2006-06-14 : 04:27:11
OK many thanks I'll have a go with that

steve

-----------

Oh, so they have internet on computers now!
Go to Top of Page
   

- Advertisement -