Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 June 4th, 2006, 04:18 PM
Authorized User
Join Date: Jan 2006
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Imar,

quote:Did you make any changes to the setup of IIS?

Yes, I kept getting a security error on different local sites, and it turns out that I had to enable integrated Windows authentication. So in these situations, I perform the following steps:

- Go to the IIS Control Panel, open "Web Sites" > "Default Web Site", right-click a web app folder and select Properties

- In the Directory Security tab, I select Edit

- In the Authentication Methods dialog, I check "Anonymous access", specify the "User name" as IUSR_P4, no password (the field is grayed out), check "Allow IIS to control password", uncheck "Basic authentication", and check "Integrated Windows authentication".

quote:And did you leave the impersonation element in the config file?

No, I commented it out, just to see if it would make a difference. It didn't.


Old June 4th, 2006, 05:01 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Still a bit weird that you need the IUSR account...

Anyway, you're welcome and glad it's working.

Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Praise You by Fatboy Slim (From the album: You've Come a Long Way, Baby) What's This?
Old October 16th, 2006, 01:44 PM
Registered User
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

 Re: Network Logon Failed-Home network

 [u]User instances are not supported in common language runtime (CLR) code that is running inside of SQL Server. An InvalidOperationException is thrown if Open is called on a SqlConnection that has User Instance=true in the connection string.</u>

The network protocol for user instances must be local Named Pipes. A user instance cannot be started on a remote instance of SQL Server, [u]and SQL Server logins are not allowed. </u>
So basically to deploy your application to the real world I recomend this: First attach the .mdf file to the SQL Express back it up then restore as a new DataBase then change your sql connection string in the web.config file to disable user instance then give the ASPNET account login permission on the server and the specific database.

Now for those of you who got the Login Controls to work but doesn't work remotely when viewed from the Internet; simply IExplore 6.0 doesn't handle the authentication ticket very well when your DNS its being "URLRedirected" or using "Frames" so just change the settings for your domain to do just the plain old "IP Address redirect to" method.

I hope this helps someone.

I am just a newbie trying to learn!


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Failed. Cant figure out why. ArnoldSanders SQL Server DTS 3 January 3rd, 2005 12:33 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM
Database login failed AcidHell2 All Other Wrox Books 0 January 2nd, 2004 02:18 PM

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