Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce 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 26th, 2003, 05:45 AM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default chap3 Beginning ASP.NET with VB.NET etc

Hi all,
Im a newbi at ASP.NET -just getting my dirty at it .

ProbBackground: :D
Im trying to connect to the MSDE database that I have created a database called WroxJokeShop, using Windows NT integrated Security coz it wouldn't allow sa or any name for that matter as login :error is "user sa is not associated with trusted SQL server connection" as a result i ended up with using Windows NT integrated Security .


Prob:
I am using a ConnectionSting in Web.config . But im unsure of how to go on doing it for NT integrated security.
I have following at the moment and it doesnt work.


<add key="ConnectionString" value="Server=(local)\NetSDK;Integrated Security=SSPI;Initial Catalog=WroxJokeShop" />

I am calling this from another method GetDepartments() which is a stored procedure.

Dim command As New SqlCommand("GetDepartments", connection)
command.CommandType = CommandType.StoredProcedure

connection.Open()


An error always occurs at connection.Open()
Which states that the User is not part of Authoriszed members-- some thing like that. I believe its the way I have set up the server thats causing the prob. I can run the stored procedure directly.

Hers is how I installed MSDE.

Setup.exe /qb+ INSTANCENAME=NetSDK DISABLENETWORKPROTOCOLS=1 SAPWD=admin

And when I create the dbShop using VS.NET I am using the NT Secure Authentication.

Can you cc anything Im doing wrong.. this is soo frustating.
Any help is appreciated.
Cheers.

Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
__________________
Imran.
-=there are 10 type of people in this world=-
&nbsp;-those who understand binary and the rest-
 
Old November 27th, 2003, 05:33 PM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default

oh
im Running:
Windows XP pro
MSDE
Visual Studio.NET 2003 Pro TrialVersion


Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
 
Old November 28th, 2003, 12:54 AM
Authorized User
 
Join Date: Sep 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all, you might get into trouble using NT Secure in later chapters, try to get MSDE running.

Have you installed MSDE? Is SQL running on your task bar?

also}}

This might help:
http://support.microsoft.com/default...NoWebContent=1

Maybe MSDE is not set up correctly. Try this:

This will setup the "sa" password if you are using Windows XP.

1) Open a DOS windows by selecting start/run and type cmd, then click ok

2) At the prompt type the following exactly as you see it as it is
case-sensitive:

' replace the "VSdotNET" part with the name of your SQL server
' instance...
Osql –E –S (local)\VSdotNet

then press enter.

You will see something like "1>" appear.

Type: sp_password null,’newpassword’,’sa’

then press enter

Type: Go

then press enter

It should come back and tell you that the password was changed.

Type: quit

Type: exit

This should close the DOS window and you are ready for the next bit. -
creating the database


Kevin



 
Old November 28th, 2003, 04:18 PM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default

Thanks Kevin for that reply,
I think my MSDE setup was not correct.

I have uninstalled VS.net and MSDE.. am gonna install VS.Net2002 instead, and use Sql2000. If that doesnt work.. i will install MSDE2002.

Thanks again for the reply..gives me hope:)

Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
 
Old November 28th, 2003, 09:30 PM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default

Hi ya Kevin,
Ok I have done just like yoiu said.. but it giving ADO error when I try to create the database.
Refer to :
<http://homepages.paradise.net.nz/imran/asp/>


Cheers.

Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
 
Old November 28th, 2003, 11:29 PM
Authorized User
 
Join Date: Sep 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This might be a little out of my league...but did you select the "option" to install MSDE when you installed VS 2002?

If you had selected to install MSDE during installation of VS 2002 your instance name would be

ILIA004\VSdotNET

you still might have to go back and set the password again...

Kevin

 
Old November 29th, 2003, 08:27 AM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default

I think i have got it.

I reinstalled every thing from scratch.

Refer following, I cant test the WRoxshop rite now.. beepin tired.. i have tested a connection with Masters db and that seems to be working.. dammit i wasted more time administring this thing than actually coding it :( pisses me off + I got my MCP exam on Mon.
As long as this works.. I soo wanna get this website online before endofthisyear. MayB i shoud write a intallation bible for dummies :-)

ANyways..If U have time, please hav a quick look at following just to make sure I am correct:-

VS.NET 2002 Installation::
http://homepages.paradise.net.nz/imran/vs2k/

Sql2000 Installation::
http://homepages.paradise.net.nz/imran/sql2k/

Sql2000 SP1 Installation::
http://homepages.paradise.net.nz/imran/sqlsp1/

After al thsi crap.. this is the result:
http://homepages.paradise.net.nz/imran/snap/

Cheers.

Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
 
Old November 29th, 2003, 10:20 PM
Authorized User
 
Join Date: Nov 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to imran4sin
Default

SUCCESS ...
its working now.
Thanks for ur help.

Imran.
-=there are 10 type of people in this world=-
 -those who understand binary and the rest-
 
Old November 29th, 2003, 11:32 PM
Authorized User
 
Join Date: Sep 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sweet! Good luck on your exam.

Kevin






Similar Threads
Thread Thread Starter Forum Replies Last Post
Can'T find code to Beginning Asp.net using VB.NET darruler All Other Wrox Books 1 August 12th, 2004 05:04 PM
Help 'beginning asp.net using vb.net' source code jkmf Wrox Book Feedback 1 January 18th, 2004 08:09 AM
Beginning ASP.Net Databases Using VB.Net ISBN 6195 tlamazares SQL Server ASP 1 December 15th, 2003 01:28 PM
Beginning ASP.NET E-Commerce using VB.NET KJ All Other Wrox Books 2 December 2nd, 2003 09:01 AM
Beginning ASP.NET E-commerce with VB.NET attipa All Other Wrox Books 2 June 23rd, 2003 10:35 PM





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