Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2004, 01:31 AM
Authorized User
 
Join Date: Jul 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form Authentication Help (IIS)

In Dreamweaver, I created a Login Page and configured it for forms authentication. When I build and browse the page I get:

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

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.

Source Error:


Line 9: <system.web>
Line 10: <customErrors mode="Off" />
Line 11: <authentication mode="Forms">
Line 12: <forms name = " .ASPXAUTH " loginUrl="Login.aspx">
Line 13: <credentials />


Source File: c:\inetpub\wwwroot\LeanSigma-ASP\web.config Line: 11

How do you setup your virtual directory to be configured as an application in IIS???

Thanks,
Jim



 
Old July 26th, 2004, 10:10 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Go to the directory in IIS manager, right-click on it, select properties.
Under the "Directory" tab, click "Create" button. This will create it as an application.
 
Old July 27th, 2004, 12:50 AM
Authorized User
 
Join Date: Jul 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I right clicked My Computer, clicked "Manage", found the directory under IIS, right clicked the file....but there is no "Directory Tab" or "Create" button?

What am I doing wrong?

 
Old July 27th, 2004, 01:16 AM
Authorized User
 
Join Date: Jul 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oops. Ok I found it.

But now, I get the following error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: File or assembly name DreamweaverCtrls, or one of its dependencies, was not found.

Source Error:


Line 1: <%@ Page Language="VB" ContentType="text/html" %>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,culture=neutral" %>
Line 3: <MM:DataSet
Line 4: id="dsLogin"


Source File: c:\inetpub\wwwroot\LeanSigma-ASP\Login.aspx Line: 2


Any help would be great.
Thx.
Jim

 
Old July 27th, 2004, 01:11 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Not to be a smart guy or anything, but the error messages says it all:

"File or assembly name DreamweaverCtrls, or one of its dependencies, was not found."

What are you missing? Is everything compiled? Assemblies in the right place?
 
Old July 27th, 2004, 02:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

For future references: this one has been answered here:

http://p2p.wrox.com/topic.asp?TOPIC_ID=16668

[Not really a cross post; just turned out as one ;)]

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Humming by Portishead (Track 6 from the album: Portishead) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS user authentication in .NET 1 graeme.robb ASP.NET 1.x and 2.0 Application Design 1 June 19th, 2006 08:35 PM
IIS with Authentication causing issues.... tfrugia .NET Web Services 0 July 7th, 2005 11:52 AM
IIS config for authentication using AD MSUser General .NET 0 March 26th, 2004 04:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.