Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Virtual Directory Application
Message
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01600893
Message ID:
01600932
Views:
37
>>>>First, thank you for the link to web.config transformation. I will read it.
>>>>
>>>>Mainly I need two different web.config files because each application (one in the Site and the other in Virtual Directory) should use a different Form for Form Authentication. That is, pages in one application should be authentication by form MyAuthen1.aspx and the other one by MyAuthen2.aspx. I am not sure that web.config transformation would allow that. But I will check.
>>>
>>>You could do that by adding a key in the web.config to identify the correct form.
>>>Or, better, create a custom configuration and add a constant to the conditional compilation symbols (project properties/build tab)
>>>e.g. enter USEFORM_A as a constant. Then in your code:
#ifdef USEFORM_A
>>>//Load form a
>>>#else
>>>//Load form b
>>>#endif
>>>
>>>
>>
>>I didn't realize the syntax of
#ifdef #else #endif
exists in Web.config of ASP.NET. It looks more like VFP stuff. But I will look for the pages explaining this.
>>Thank you very much.
>
>http://msdn.microsoft.com/en-us/library/yt3yck0x.aspx
>
>Example of using the pre-defined DEBUG symbol. You can set the value on the Project/Build tab by ticking 'Define DEBUG constant'. If you look at the default 'Debug' and 'Release' configurations you will see that it is checked in Debug but not in Release (TRACE is checked for both) Any symbol you add in the textbox above will behave in the same way (you can define as many as you wish separated by a semicolon)

Thank you. I did find some pages online that referred to DEBUG but I could not understand it. Now that you explain, it makes more sense.

However, I am still wondering if separating my projects (for the customer(s)) into two different folders with two different BIN folders makes more sense. This way, I think, updates to either application could be more efficient. But I will consider it bother ways.
Thank you!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform