I have a SQL Server database on a Windows 2000 Server. I have IIS running
on a 2nd 2000 Server with no SQL Server on it.. Neither are the PDC. Both
servers have the most recent .NET framework installed.
When I try to connect from my aspx page using SqlClient I get an error right
away. My code looks something like...
Imports System.Data.Sql Client
Dim Conn2 As New SqlClient.SqlCo nnection("Data
Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; UID=coresqluser ;
PWD=OeQu_!102")
Dim cmd As SqlClient.SqlCo mmand
Dim objDataReader As SqlClient.SqlDa taReader
Dim strSQL As String
Dim basename As String
Dim appt As String
Dim last_upd As String
Dim n As Integer
appt = Request.QuerySt ring("atype")
basename = Request.QuerySt ring("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_ id = '" & basename &
"';"
cmd = New SqlClient.SqlCo mmand(strSQL, Conn2)
objDataReader = cmd.ExecuteRead er
It errors on the "Imports" line....If I remove it, I get am error on the
first DIM. It seems the problem is with the SqlClient class. If I put .NET
framework on a machine without SQL Server, are these connectors installed?
Any ideas or suggestions would be appreciated,
Tony Zoccolillo 3 1416
This line should read...
Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; User ID=coresqluser;
Password=OeQu_! 102")
"Tony Zoccolillo" <to*****@hotmai l.com> wrote in message
news:uN******** **********@tk2m sftngp13.phx.gb l... I have a SQL Server database on a Windows 2000 Server. I have IIS running on a 2nd 2000 Server with no SQL Server on it.. Neither are the PDC.
Both servers have the most recent .NET framework installed.
When I try to connect from my aspx page using SqlClient I get an error
right away. My code looks something like...
Imports System.Data.Sql Client
Dim Conn2 As New SqlClient.SqlCo nnection("Data Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; UID=coresqluser ; PWD=OeQu_!102") Dim cmd As SqlClient.SqlCo mmand Dim objDataReader As SqlClient.SqlDa taReader Dim strSQL As String Dim basename As String Dim appt As String Dim last_upd As String Dim n As Integer
appt = Request.QuerySt ring("atype") basename = Request.QuerySt ring("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_ id = '" & basename
& "';" cmd = New SqlClient.SqlCo mmand(strSQL, Conn2) objDataReader = cmd.ExecuteRead er
It errors on the "Imports" line....If I remove it, I get am error on the first DIM. It seems the problem is with the SqlClient class. If I put
..NET framework on a machine without SQL Server, are these connectors installed?
Any ideas or suggestions would be appreciated,
Tony Zoccolillo
Have you set a reference to the .dll? If so, perhaps you should set it to
make a local copy, as a workaround.
"Tony Zoccolillo" <to*****@hotmai l.com> wrote in message
news:Ob******** ********@TK2MSF TNGP11.phx.gbl. .. This line should read...
Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; User ID=coresqluser; Password=OeQu_! 102")
"Tony Zoccolillo" <to*****@hotmai l.com> wrote in message news:uN******** **********@tk2m sftngp13.phx.gb l... I have a SQL Server database on a Windows 2000 Server. I have IIS
running on a 2nd 2000 Server with no SQL Server on it.. Neither are the PDC. Both servers have the most recent .NET framework installed.
When I try to connect from my aspx page using SqlClient I get an error right away. My code looks something like...
Imports System.Data.Sql Client
Dim Conn2 As New SqlClient.SqlCo nnection("Data Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; UID=coresqluser ; PWD=OeQu_!102") Dim cmd As SqlClient.SqlCo mmand Dim objDataReader As SqlClient.SqlDa taReader Dim strSQL As String Dim basename As String Dim appt As String Dim last_upd As String Dim n As Integer
appt = Request.QuerySt ring("atype") basename = Request.QuerySt ring("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_ id = '" &
basename & "';" cmd = New SqlClient.SqlCo mmand(strSQL, Conn2) objDataReader = cmd.ExecuteRead er
It errors on the "Imports" line....If I remove it, I get am error on the first DIM. It seems the problem is with the SqlClient class. If I put .NET framework on a machine without SQL Server, are these connectors
installed? Any ideas or suggestions would be appreciated,
Tony Zoccolillo
I'm fairly new to .NET and I 'm not 100% sure what you mean. I have a
reference to System, System.Data, System.Design, System.Drawing, System.Web,
System.Windows. Forms and System.XML. Copy Local is False on all. If I set
Copy Local to true, will it put the dlls in my bin and distributed when I
copy remote? Shouldn't these refs already be on a system with .NET
Framework installed?
thanks,
TZ
"Rick Spiewak" <ri*********@mi ndspring.com> wrote in message
news:eA******** ********@TK2MSF TNGP10.phx.gbl. .. Have you set a reference to the .dll? If so, perhaps you should set it to make a local copy, as a workaround.
"Tony Zoccolillo" <to*****@hotmai l.com> wrote in message news:Ob******** ********@TK2MSF TNGP11.phx.gbl. .. This line should read...
Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; User ID=coresqluser; Password=OeQu_! 102")
"Tony Zoccolillo" <to*****@hotmai l.com> wrote in message news:uN******** **********@tk2m sftngp13.phx.gb l... I have a SQL Server database on a Windows 2000 Server. I have IIS running on a 2nd 2000 Server with no SQL Server on it.. Neither are the PDC. Both servers have the most recent .NET framework installed.
When I try to connect from my aspx page using SqlClient I get an error right away. My code looks something like...
Imports System.Data.Sql Client
Dim Conn2 As New SqlClient.SqlCo nnection("Data Source=10.10.10 .101,1433;Initi al Catalog=MapLaye rs; UID=coresqluser ; PWD=OeQu_!102") Dim cmd As SqlClient.SqlCo mmand Dim objDataReader As SqlClient.SqlDa taReader Dim strSQL As String Dim basename As String Dim appt As String Dim last_upd As String Dim n As Integer
appt = Request.QuerySt ring("atype") basename = Request.QuerySt ring("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_ id = '" & basename & "';" cmd = New SqlClient.SqlCo mmand(strSQL, Conn2) objDataReader = cmd.ExecuteRead er
It errors on the "Imports" line....If I remove it, I get am error on
the first DIM. It seems the problem is with the SqlClient class. If I
put .NET framework on a machine without SQL Server, are these connectors installed? Any ideas or suggestions would be appreciated,
Tony Zoccolillo
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Chapman |
last post by:
I run into a strange problem today while enableding ODBC SQL logging on my
IIS Server.
Once the logging was enabled, and working fine, my two ASP.Net Applications
could no longer connect to the database. I got an Access Denied or Server
does not exist error.
The moment I set the logging back to the normal file based logging, the...
|
by: Mike MacSween |
last post by:
Sorry if this is a bit off topic, but I can't seem to find a 'remote
control' newsgroup on my news server. And anyway I know Tony has some
experience of this.
The app is split FE/BE. I'd like remote access to at least the server,
hopefully the whole network. And to be able to upload/download, to install
new versions of the FE to the server...
|
by: mayamorning123 |
last post by:
A comparison among six VSS remote tools including SourceOffSite ,
SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere 4.0,
SourceOffSite 4.1, VSS Connect 1.5,...
|
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere
and VSS Remoting
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
|
by: Chris Langston |
last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server
that is experiencing strange shutdown problems. We are using ASP.NET v1.1
and our application is written in VB.NET
Here's the scenario:
1. .NET Windows Client on a remote machine makes a web service call to
update tables on a Web Server running SQL Server...
| |
by: Tor Inge Rislaa |
last post by:
Database on remote server
On the remote server where my ASP.NET application is located there is no SQL
Server or SQL Server Express. When I test my application locally it works
fine because I have the SQL Server Express 2005 on my computer, but when I
deploy it I am getting error message telling me that there are some problems...
|
by: CLM |
last post by:
When I test the remote access at work (lapttop computer to desk top computer) the connection works fine. When I bring the laptop home and try to connect to my desktop I get the error msg:
The client could not connect to the remote computer. Remote connections might not be enabled or the computer might be too busy to accept new connections. It...
|
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= |
last post by:
Has anybody worked with performancecounter object to access counters on
remote machine?
I managed to write code that retrieves counters categories froma remote
machine, when I try another remote machine I get
"System.ComponentModel.Win32Exception" error. Error message is
"The network path was not found."
I have checked running services (RPC,...
|
by: Andy |
last post by:
Hello all,
I have a user using Remote Desktop connection, who is getting an error when
trying to print. When my program starts, he get's an error 2205, the default
printer isn't set up correctly. Then when he tries to preview a report, he
gets an error 9: subscript out of range.
Anyone have any ideas on this?
Thanks!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |