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.SqlClient
Dim Conn2 As New SqlClient.SqlConnection("Data
Source=10.10.10.101,1433;Initial Catalog=MapLayers; UID=coresqluser;
PWD=OeQu_!102")
Dim cmd As SqlClient.SqlCommand
Dim objDataReader As SqlClient.SqlDataReader
Dim strSQL As String
Dim basename As String
Dim appt As String
Dim last_upd As String
Dim n As Integer
appt = Request.QueryString("atype")
basename = Request.QueryString("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_id = '" & basename &
"';"
cmd = New SqlClient.SqlCommand(strSQL, Conn2)
objDataReader = cmd.ExecuteReader
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 1408
This line should read...
Source=10.10.10.101,1433;Initial Catalog=MapLayers; User ID=coresqluser;
Password=OeQu_!102")
"Tony Zoccolillo" <to*****@hotmail.com> wrote in message
news:uN******************@tk2msftngp13.phx.gbl... 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.SqlClient
Dim Conn2 As New SqlClient.SqlConnection("Data Source=10.10.10.101,1433;Initial Catalog=MapLayers; UID=coresqluser; PWD=OeQu_!102") Dim cmd As SqlClient.SqlCommand Dim objDataReader As SqlClient.SqlDataReader Dim strSQL As String Dim basename As String Dim appt As String Dim last_upd As String Dim n As Integer
appt = Request.QueryString("atype") basename = Request.QueryString("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_id = '" & basename
& "';" cmd = New SqlClient.SqlCommand(strSQL, Conn2) objDataReader = cmd.ExecuteReader
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*****@hotmail.com> wrote in message
news:Ob****************@TK2MSFTNGP11.phx.gbl... This line should read...
Source=10.10.10.101,1433;Initial Catalog=MapLayers; User ID=coresqluser; Password=OeQu_!102")
"Tony Zoccolillo" <to*****@hotmail.com> wrote in message news:uN******************@tk2msftngp13.phx.gbl... 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.SqlClient
Dim Conn2 As New SqlClient.SqlConnection("Data Source=10.10.10.101,1433;Initial Catalog=MapLayers; UID=coresqluser; PWD=OeQu_!102") Dim cmd As SqlClient.SqlCommand Dim objDataReader As SqlClient.SqlDataReader Dim strSQL As String Dim basename As String Dim appt As String Dim last_upd As String Dim n As Integer
appt = Request.QueryString("atype") basename = Request.QueryString("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_id = '" &
basename & "';" cmd = New SqlClient.SqlCommand(strSQL, Conn2) objDataReader = cmd.ExecuteReader
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*********@mindspring.com> wrote in message
news:eA****************@TK2MSFTNGP10.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*****@hotmail.com> wrote in message news:Ob****************@TK2MSFTNGP11.phx.gbl... This line should read...
Source=10.10.10.101,1433;Initial Catalog=MapLayers; User ID=coresqluser; Password=OeQu_!102")
"Tony Zoccolillo" <to*****@hotmail.com> wrote in message news:uN******************@tk2msftngp13.phx.gbl... 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.SqlClient
Dim Conn2 As New SqlClient.SqlConnection("Data Source=10.10.10.101,1433;Initial Catalog=MapLayers; UID=coresqluser; PWD=OeQu_!102") Dim cmd As SqlClient.SqlCommand Dim objDataReader As SqlClient.SqlDataReader Dim strSQL As String Dim basename As String Dim appt As String Dim last_upd As String Dim n As Integer
appt = Request.QueryString("atype") basename = Request.QueryString("thebase")
Conn2.Open()
strSQL = "SELECT * from site_name WHERE site_name.site_id = '" & basename & "';" cmd = New SqlClient.SqlCommand(strSQL, Conn2) objDataReader = cmd.ExecuteReader
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...
|
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...
|
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...
|
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...
|
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
...
| |
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...
|
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...
|
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...
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |