Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 1st, 2005, 08:50 AM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Configuration Error

Decided to try this on a new machine(Hard Disk Problems!)
Now get the following error when I try to view the site in a browser:

Server Error in '/thephile' Application.

Configuration Error

Parser Error Message: Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.
'

Source Error:

Line 237: password="password of above specified account" | empty string
Line 238: -->
Line 239:<identity impersonate="false" userName="SYSTEM" password=""/>
Line 240:
Line 241:<authorization>


ANYONE HAVE ANY IDEAS?Suspect that I've got userName and password wrong:(
 
Old July 1st, 2005, 10:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What are you trying to do with this account? It looks like you're trying to use the SYSTEM account to run ASP.NET, but I would never recommend doing this - you should definitely never deploy a website using the SYSTEM account.

I know the README tells people that is one way to get around the problem registering event sources, and he's right, but that's not a good option from a security standpoint. There are better ways to fix the event log problem.

I suspect your syntax is wrong for making this change.

You should undo your changes and go back to a standard machine.config and try again. But this time don't edit that file. That should only be editted in extrememly rare cases, and only if you fully understand the issues.

Eric
 
Old July 21st, 2005, 11:08 AM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe.Having tried to look into this I've found that aspnet_wp.exe wont start.I tried to fix this running a fixup patch thar deleted and added ASPUSER.All to no avail.Avy ideas?
 
Old July 21st, 2005, 08:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried copying in an unmodified machine.config?

If you can't get it working soon you might need to uninstall Visual Studio and .NET and reinstall everything.
 
Old July 22nd, 2005, 07:34 AM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

any quick way I can get an unmodified machine.config
Or will I have to install Visual Studio .NET
 
Old July 22nd, 2005, 08:06 AM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

got an unmodified machine.config.
AM NOW GETTING ACCESS IS DENIED for a temp module.
Which is what I was getting to start with.
.NET is supposed to avoid the problems that we VC++ and VB programmers had.Maybe it does. Replacing them with a new set of problems but problems nonetheless :(
 
Old July 22nd, 2005, 10:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should give the ASPNET user account permission to write to your temp directory. Windows NTFS security exists for a purpose and .NET is not supposed to get around all of the valid security restrictions in Windows.

I've heard people say that .NET is better than the old way of coding in VB6 and C++, but I've never heard anyone say it's easier. I've certainly never said this.

Some aspects are easier, but you have to understand the .NET platform that rides on top of Windows. The CLR and .NET doesn't replace Windows, so your programs have to be compatible with BOTH Windows and .NET.

I do understand the frustrations you feel. You need to take one step at a time. Are there any more experienced .NET programmers in your local community who might be able to help you? I am involved with a lot of user groups in the Atlanta area and I help people all the time. Try to get some local friends who have more experience than you.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Configuration Error? jimmyliew PHP How-To 4 December 16th, 2006 06:32 AM
Configuration error exstream ASP.NET 2.0 Professional 2 July 2nd, 2006 02:52 AM
Configuration error exstream ASP.NET 2.0 Basics 1 May 6th, 2006 12:39 PM
Biztalk configuration Error pvasudevan Biztalk 0 May 4th, 2005 04:55 AM





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