Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Display Modes
  #1 (permalink)  
Old July 1st, 2005, 08:50 AM
Authorized User
 
Join Date: Apr 2004
Location: glasgow, , United Kingdom.
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:(
Reply With Quote
  #2 (permalink)  
Old July 1st, 2005, 10:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
Reply With Quote
  #3 (permalink)  
Old July 21st, 2005, 11:08 AM
Authorized User
 
Join Date: Apr 2004
Location: glasgow, , United Kingdom.
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?
Reply With Quote
  #4 (permalink)  
Old July 21st, 2005, 08:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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.
Reply With Quote
  #5 (permalink)  
Old July 22nd, 2005, 07:34 AM
Authorized User
 
Join Date: Apr 2004
Location: glasgow, , United Kingdom.
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
Reply With Quote
  #6 (permalink)  
Old July 22nd, 2005, 08:06 AM
Authorized User
 
Join Date: Apr 2004
Location: glasgow, , United Kingdom.
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 :(
Reply With Quote
  #7 (permalink)  
Old July 22nd, 2005, 10:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
Reply With Quote
Reply


Thread Tools
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
PHP Configuration Error? jimmyliew PHP How-To 4 December 16th, 2006 05: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



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


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