Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 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 November 15th, 2004, 08:15 AM
Authorized User
 
Join Date: Jun 2004
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hlchuah77
Default ASP.net database question

Chapter 8 and Chapter 9 of the book have discussed about how we can access database (i.e. including select, update, delete and edit) using Web Matrix. But, I came to know one problem this recently when I try to update my database via IIS Server, where I get an error not allowing me to update the database.

I am quite confuse about this as I don't understand why it is fine when I try to update my database via Web Matrix Web Server, but it is not the case when I try to do the same thing via IIS Server.

So, is any one here face this kind of problem before, and what is the problem behind? How to solve it?

 
Old November 15th, 2004, 09:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Does it give an error message?

Did you give permissions to the ASPNET user account to 'write'?

 
Old November 15th, 2004, 11:29 AM
Authorized User
 
Join Date: Jun 2004
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hlchuah77
Default

Below is the error message:

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'DRAGON77\ASPNET'.


 
Quote:
quote:Did you give permissions to the ASPNET user account to 'write'?


What do you mean by give permissions to ASPNET user account to write? You mean the configuration in Sql Server? If this is the case, then I think I have never give any permission to ASPNET user the right to write by configuring in Sql Server; in fact, I do not know how to do so because I am a Sql Server novice.

Then what should I do?


 
Old November 15th, 2004, 11:46 AM
Authorized User
 
Join Date: Jun 2004
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hlchuah77
Default

Oh great, I can update data to my database finally!

Ya stu9820, your

 
Quote:
quote:Did you give permissions to the ASPNET user account to 'write'?


inspire me to configure Sql Server to let ASPNET user the right to write.

Thanks a lot!






Similar Threads
Thread Thread Starter Forum Replies Last Post
another database connection question! asp and mysq fogofogo Classic ASP Professional 2 December 2nd, 2005 08:20 AM
Asp.net question asp.netUser ASP.NET 1.0 and 1.1 Basics 1 September 13th, 2005 03:23 PM





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