473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error in Connection

Hello I have a problem of connection with SQL SERVER from
Visual VB.NET Studio, but in WebMatrix all this good.
Error:

"Cannot open database requested in login 'tonet'. Login
fails. Login
failed for user 'ANTRAX\ASPNET'.
Description: An unhandled exception occurred during the
execution of the
current web request. Please review the stack trace for
more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Cannot open
database requested in login 'tonet'. Login fails. Login
failed for user
'ANTRAX\ASPNET'.

Source Error:
Line 43: dataAdapter.SelectCommand = dbCommand
Line 44: Dim dataSet As System.Data.DataSet = New
System.Data.DataSet
Line 45: dataAdapter.Fill(dataSet)
Line 46:
Line 47: Return dataSet

Nov 17 '05 #1
1 1452
Just curious are you using Windows or SQL authenication to login to the
server.

Plus did you make sure that user you are logging in as has rights to the
database on the server you want to use?

Just a couple of things to check.

M
"PABLIN" <pa******@hotmail.com> wrote in message
news:03****************************@phx.gbl...
Hello I have a problem of connection with SQL SERVER from
Visual VB.NET Studio, but in WebMatrix all this good.
Error:

"Cannot open database requested in login 'tonet'. Login
fails. Login
failed for user 'ANTRAX\ASPNET'.
Description: An unhandled exception occurred during the
execution of the
current web request. Please review the stack trace for
more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Cannot open
database requested in login 'tonet'. Login fails. Login
failed for user
'ANTRAX\ASPNET'.

Source Error:
Line 43: dataAdapter.SelectCommand = dbCommand
Line 44: Dim dataSet As System.Data.DataSet = New
System.Data.DataSet
Line 45: dataAdapter.Fill(dataSet)
Line 46:
Line 47: Return dataSet

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris Szabo | last post by:
I've created a data access layer for a .NET web application. I'm using C# and framework 1.1. I'm getting an error from time to time when I close a connection saying: ...
4
by: Troy | last post by:
We recently installed the .Net framework on a windows 2000 server. Shortly after that we experienced intermitant problems running a web based program that accesses an Access 2002 database. The...
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
by: =?Utf-8?B?U3VuaWwgUGFuZGl0YQ==?= | last post by:
Hi All, I have created a VB.Net application that used classic ADO to access the oracle database. I have mentained a persistant connection in it. When i start the application and it works fine....
0
by: mbenedict | last post by:
I am rather new at this code and am attempting to modify existing code to use clob datatypes, which I have never used before. The database tables have been set up for clob data. When trying to use...
1
by: piyushgpt1 | last post by:
My company has a web application running on JBoss-2.4.4_Tomcat-4.0.1. It works fine for a few days, but once or twice in a week, getting the exception :- Error : Runnable did not complete within...
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.