Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old June 4th, 2006, 04:18 PM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

 
Quote:
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:
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.

Thanks,

Rob
Reply With Quote
  #12 (permalink)  
Old June 4th, 2006, 05:01 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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

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

Imar
---------------------------------------
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?
Reply With Quote
  #13 (permalink)  
Old October 16th, 2006, 01:44 PM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default


 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!

Darkonekt





Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.