Click here to Skip to main content
15,887,256 members
Home / Discussions / C#
   

C#

 
QuestionUse store procedure in ASP.NET Pin
daku130-Jul-07 14:44
daku130-Jul-07 14:44 
QuestionRe: Use store procedure in ASP.NET Pin
T.EDY30-Jul-07 15:38
T.EDY30-Jul-07 15:38 
QuestionFinding the MDAC Version programmically? Pin
BssDeveloper30-Jul-07 13:41
BssDeveloper30-Jul-07 13:41 
AnswerRe: Finding the MDAC Version programmically? Pin
Paul Conrad30-Jul-07 14:06
professionalPaul Conrad30-Jul-07 14:06 
AnswerRe: Finding the MDAC Version programmically? Pin
Vasudevan Deepak Kumar30-Jul-07 17:51
Vasudevan Deepak Kumar30-Jul-07 17:51 
GeneralRe: Finding the MDAC Version programmically? Pin
BssDeveloper30-Jul-07 21:44
BssDeveloper30-Jul-07 21:44 
Questionnotification of change Pin
likefood30-Jul-07 12:28
likefood30-Jul-07 12:28 
QuestionWeb.Config file problem... Any Help? Pin
rashadaliarshad30-Jul-07 11:40
rashadaliarshad30-Jul-07 11:40 
I developed a web application, which has two sections

Client Section: that is visible to local users
Control Panel: allows admin of the site to control the contents of the web application.

I created a cpanel folder on the root of the web application, and all the pages and functionality of Control Panel section goes there. The sample structure of the files is as in below section:

/Default.aspx 'Client Side File
/contactUs.aspx 'Client Side File
/Aboutus.aspx 'Client Side File
/Web.config 'Main Configuration file ( admin section uses connectionstring from
'the same web.config file
/AppCode/DAL/Classes.vb ' Contains all the classes used in both client and cpanel section

/CPanel/Default.aspx ' Admin side File
/Cpanel/UpdateContactus.aspx ' Admin Side File
/Cpanel/UpdateAboutus.aspx ' Admin Side File

Now problem is that, i need to Secure Pages in CPANEL by adding Authenticating process, now if i add the authentication information in

/Web.Config /Main configuration file

then it will apply on both client side and Cpanel side as well... but i need this authentication only in CPanel side, so what i did is add a new configuration file with appropriate instructions and a Login Page, where person trying to open CPanel will be redirected if he/she has not logged in using proper username and password.

here i added those files at place

/CPanel/Web.Config
/CPanel/Login.aspx

but when i try to open any page, it gives me an error message

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS

---- The code for Web.config -----






<forms loginurl="Login.aspx" name="realestate" path="/" protection="All" timeout="30">











Any Solution?

1- Can we merge two different projects with different web.config files with each others?


:- Rashid Ali -:

AnswerRe: Web.Config file problem... Any Help? Pin
Edwin Syarief30-Jul-07 15:54
Edwin Syarief30-Jul-07 15:54 
QuestionBinary File Access Pin
JamesBarnes30-Jul-07 10:09
JamesBarnes30-Jul-07 10:09 
AnswerRe: Binary File Access Pin
Luc Pattyn30-Jul-07 10:27
sitebuilderLuc Pattyn30-Jul-07 10:27 
GeneralRe: Binary File Access Pin
PIEBALDconsult30-Jul-07 10:44
mvePIEBALDconsult30-Jul-07 10:44 
GeneralRe: Binary File Access Pin
Luc Pattyn30-Jul-07 10:51
sitebuilderLuc Pattyn30-Jul-07 10:51 
AnswerRe: Binary File Access Pin
PIEBALDconsult30-Jul-07 10:37
mvePIEBALDconsult30-Jul-07 10:37 
GeneralRe: Binary File Access Pin
JamesBarnes30-Jul-07 11:17
JamesBarnes30-Jul-07 11:17 
QuestionNewspaper columns in control Pin
Elvis_Pretzelator30-Jul-07 9:18
Elvis_Pretzelator30-Jul-07 9:18 
JokeRe: Newspaper columns in control Pin
BoneSoft30-Jul-07 9:22
BoneSoft30-Jul-07 9:22 
AnswerRe: Newspaper columns in control Pin
Luc Pattyn30-Jul-07 9:31
sitebuilderLuc Pattyn30-Jul-07 9:31 
AnswerRe: Newspaper columns in control Pin
ekynox30-Jul-07 23:53
ekynox30-Jul-07 23:53 
AnswerRe: Gridview column data [modified] Pin
Herman<T>.Instance31-Jul-07 3:08
Herman<T>.Instance31-Jul-07 3:08 
QuestionSQL Data Pin
Saiyed Alam30-Jul-07 8:30
Saiyed Alam30-Jul-07 8:30 
AnswerRe: SQL Data Pin
BoneSoft30-Jul-07 9:55
BoneSoft30-Jul-07 9:55 
QuestionTab Order Pin
Saiyed Alam30-Jul-07 8:08
Saiyed Alam30-Jul-07 8:08 
AnswerRe: Tab Order Pin
Martin#30-Jul-07 8:09
Martin#30-Jul-07 8:09 
GeneralRe: Tab Order Pin
Saiyed Alam30-Jul-07 8:15
Saiyed Alam30-Jul-07 8:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.