473,726 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem in accessing remote DB

Hello,
I am facing a strange problem. Problem accessing remote database from
ASP using COM+ server application having VB components (ActiveX DLL)
installed.
Tier 1 : ASP front End (IIS 5.0)
Tire 2 : COM objects
Tier 3 : SQL Server 2000 DB
Flow is : ASP talks with COM objects and COM objects talks with DB

Scenario 1
All Tier installed on single m/c.
Scenario 2
Tier1 and 2 are on one m/c and Tier 3 on another m/c in the same LAN
network
Scenario 3
Tier1 and 2 are on one m/c and Tier 3 on another m/c but connected over
internet or WAN

Scenario1 and Scenario 2 are working fine. But in Scenario 3, I am facing
problem of accessing remote DB.
Throwing error "Invalid procedure call or argument"
I am not able to find out whether problem is in
ASP, which accesses DB via COM objects OR
COM objects talking to DB.
While connecting to remote DB, in the connection string I am providing IP
address of DB Server in my COM object.

--
Jaydeep
Solversa Technologies
Jul 19 '05 #1
4 2986
Are you sure there is no firewall or similar that is blocking the connection
of the COM object to the SQL Server? If you are on the webserver, can you
use some other tool (eg SQL Server Enterprise Manager) to connect to the
remote SQL Server?

Cheers
Ken

"Jaydeep" <ja**********@s olversa.com> wrote in message
news:eQ******** ******@tk2msftn gp13.phx.gbl...
: Hello,
: I am facing a strange problem. Problem accessing remote database from
: ASP using COM+ server application having VB components (ActiveX DLL)
: installed.
: Tier 1 : ASP front End (IIS 5.0)
: Tire 2 : COM objects
: Tier 3 : SQL Server 2000 DB
: Flow is : ASP talks with COM objects and COM objects talks with DB
:
: Scenario 1
: All Tier installed on single m/c.
: Scenario 2
: Tier1 and 2 are on one m/c and Tier 3 on another m/c in the same LAN
: network
: Scenario 3
: Tier1 and 2 are on one m/c and Tier 3 on another m/c but connected
over
: internet or WAN
:
: Scenario1 and Scenario 2 are working fine. But in Scenario 3, I am facing
: problem of accessing remote DB.
: Throwing error "Invalid procedure call or argument"
: I am not able to find out whether problem is in
: ASP, which accesses DB via COM objects OR
: COM objects talking to DB.
: While connecting to remote DB, in the connection string I am providing IP
: address of DB Server in my COM object.
:
: --
: Jaydeep
: Solversa Technologies
:
:
Jul 19 '05 #2
I am able to connect through Enterprise Manager, and actally I can able to
connect using VB. means if i create test VB application for connection with
remote DB it works fine.....
That what i am not getting if VB client is getting connection then why not
ASP.

Thanks
Jay
"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
Are you sure there is no firewall or similar that is blocking the connection of the COM object to the SQL Server? If you are on the webserver, can you
use some other tool (eg SQL Server Enterprise Manager) to connect to the
remote SQL Server?

Cheers
Ken

"Jaydeep" <ja**********@s olversa.com> wrote in message
news:eQ******** ******@tk2msftn gp13.phx.gbl...
: Hello,
: I am facing a strange problem. Problem accessing remote database from : ASP using COM+ server application having VB components (ActiveX DLL)
: installed.
: Tier 1 : ASP front End (IIS 5.0)
: Tire 2 : COM objects
: Tier 3 : SQL Server 2000 DB
: Flow is : ASP talks with COM objects and COM objects talks with DB
:
: Scenario 1
: All Tier installed on single m/c.
: Scenario 2
: Tier1 and 2 are on one m/c and Tier 3 on another m/c in the same LAN
: network
: Scenario 3
: Tier1 and 2 are on one m/c and Tier 3 on another m/c but connected
over
: internet or WAN
:
: Scenario1 and Scenario 2 are working fine. But in Scenario 3, I am facing : problem of accessing remote DB.
: Throwing error "Invalid procedure call or argument"
: I am not able to find out whether problem is in
: ASP, which accesses DB via COM objects OR
: COM objects talking to DB.
: While connecting to remote DB, in the connection string I am providing IP : address of DB Server in my COM object.
:
: --
: Jaydeep
: Solversa Technologies
:
:

Jul 19 '05 #3
Then it's probably some kind of user context problem (maybe). The only thing
that I can think of OTOH, is that when you run a VB program, it is running
in your user context.

ASP runs under the IIS Anonymous User context (unless you are forcing
authentication) . I don't know what your COM+ object is running under...

Cheers
Ken
--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~
"Adhik" <ad***@hotpop.c om> wrote in message
news:e3******** ******@TK2MSFTN GP09.phx.gbl...
: I am able to connect through Enterprise Manager, and actally I can able to
: connect using VB. means if i create test VB application for connection
with
: remote DB it works fine.....
: That what i am not getting if VB client is getting connection then why not
: ASP.
:
: Thanks
: Jay
:
:
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
: > Are you sure there is no firewall or similar that is blocking the
: connection
: > of the COM object to the SQL Server? If you are on the webserver, can
you
: > use some other tool (eg SQL Server Enterprise Manager) to connect to the
: > remote SQL Server?
: >
: > Cheers
: > Ken
: >
: > "Jaydeep" <ja**********@s olversa.com> wrote in message
: > news:eQ******** ******@tk2msftn gp13.phx.gbl...
: > : Hello,
: > : I am facing a strange problem. Problem accessing remote database
: from
: > : ASP using COM+ server application having VB components (ActiveX DLL)
: > : installed.
: > : Tier 1 : ASP front End (IIS 5.0)
: > : Tire 2 : COM objects
: > : Tier 3 : SQL Server 2000 DB
: > : Flow is : ASP talks with COM objects and COM objects talks with DB
: > :
: > : Scenario 1
: > : All Tier installed on single m/c.
: > : Scenario 2
: > : Tier1 and 2 are on one m/c and Tier 3 on another m/c in the same
LAN
: > : network
: > : Scenario 3
: > : Tier1 and 2 are on one m/c and Tier 3 on another m/c but connected
: > over
: > : internet or WAN
: > :
: > : Scenario1 and Scenario 2 are working fine. But in Scenario 3, I am
: facing
: > : problem of accessing remote DB.
: > : Throwing error "Invalid procedure call or argument"
: > : I am not able to find out whether problem is in
: > : ASP, which accesses DB via COM objects OR
: > : COM objects talking to DB.
: > : While connecting to remote DB, in the connection string I am providing
: IP
: > : address of DB Server in my COM object.
: > :
: > : --
: > : Jaydeep
: > : Solversa Technologies
: > :
: > :
: >
: >
:
:
Jul 19 '05 #4
Hi Ken,

My COM+ is running under user from administrator group. Is there any problem
with IIS Anonymous User Context?
But how can IIS user affect DB connection coz DB server is on WAN with
respcet to IIS and I am passing appropriate user with appropriate rights for
DB access.

Also suggest what should i change in IIS settings, also what is OTOH.

Thanks
Jay

"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:OJ******** ******@tk2msftn gp13.phx.gbl...
Then it's probably some kind of user context problem (maybe). The only thing that I can think of OTOH, is that when you run a VB program, it is running
in your user context.

ASP runs under the IIS Anonymous User context (unless you are forcing
authentication) . I don't know what your COM+ object is running under...

Cheers
Ken
--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~
"Adhik" <ad***@hotpop.c om> wrote in message
news:e3******** ******@TK2MSFTN GP09.phx.gbl...
: I am able to connect through Enterprise Manager, and actally I can able to : connect using VB. means if i create test VB application for connection
with
: remote DB it works fine.....
: That what i am not getting if VB client is getting connection then why not : ASP.
:
: Thanks
: Jay
:
:
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
: > Are you sure there is no firewall or similar that is blocking the
: connection
: > of the COM object to the SQL Server? If you are on the webserver, can
you
: > use some other tool (eg SQL Server Enterprise Manager) to connect to the : > remote SQL Server?
: >
: > Cheers
: > Ken
: >
: > "Jaydeep" <ja**********@s olversa.com> wrote in message
: > news:eQ******** ******@tk2msftn gp13.phx.gbl...
: > : Hello,
: > : I am facing a strange problem. Problem accessing remote database : from
: > : ASP using COM+ server application having VB components (ActiveX DLL)
: > : installed.
: > : Tier 1 : ASP front End (IIS 5.0)
: > : Tire 2 : COM objects
: > : Tier 3 : SQL Server 2000 DB
: > : Flow is : ASP talks with COM objects and COM objects talks with DB
: > :
: > : Scenario 1
: > : All Tier installed on single m/c.
: > : Scenario 2
: > : Tier1 and 2 are on one m/c and Tier 3 on another m/c in the same
LAN
: > : network
: > : Scenario 3
: > : Tier1 and 2 are on one m/c and Tier 3 on another m/c but connected : > over
: > : internet or WAN
: > :
: > : Scenario1 and Scenario 2 are working fine. But in Scenario 3, I am
: facing
: > : problem of accessing remote DB.
: > : Throwing error "Invalid procedure call or argument"
: > : I am not able to find out whether problem is in
: > : ASP, which accesses DB via COM objects OR
: > : COM objects talking to DB.
: > : While connecting to remote DB, in the connection string I am providing : IP
: > : address of DB Server in my COM object.
: > :
: > : --
: > : Jaydeep
: > : Solversa Technologies
: > :
: > :
: >
: >
:
:

Jul 19 '05 #5

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

Similar topics

2
7077
by: Douglas Harber | last post by:
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope) installed on my desktop, do I have what I need to connect to a remote DB2 server (also running 8.1 FP5) from my desktop machine? I assume, perhaps naively, that all the parts are there but I've spent several hours trying to grasp how to go about accessing the remote server. Specifically, I'm trying to create and populate databases on the remote server from...
3
4319
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different geographical locations. I have been completely unsucessful in acheiving this goal so far however. Things I have tried: Create a shortcut to ftp sight via browser then tried to map local drive to
1
3428
by: Max Baki via .NET 247 | last post by:
I all, i've write a sample ftp Windows service which download files and copy them on remote share or remote mapped drive (the service works fine on local drives). This part of code is the function to change the local path for downloaded files. If the configured path is different from local drive C: the new path is selected. The program works fine in debug or release mode into Visual Studio. All downloaded files were placed on remote...
0
1083
by: Paul | last post by:
I am reading events from an event log on a remote server. Certain events will be put in a file or some other form of output. Everything works fine but I am concerned a potential problem. Reading about how events are handled, I found that the message property of an event is not recorded but rather accessed from the source dll file. While testing my code I found that when accessing the message property of a remote event log the message is...
2
2897
by: Jon L. Lovesky | last post by:
Hello all, I am attempting to access a remote folder from an asp.net application (all within the same domain). The application is configured for windows authentication in IIS and the asp.net worker process runs as the local ASP.NET account. When the application is about to access the remote folder I switch the security context to the remote user programmatically, then switch it back afterwards. When I run the application on my local...
3
2492
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating between the XML Web Service and the host for the remote object. Within the host a port is defined and the channel registered. It starts listening for requests. The destination port is therefore clearly defined.
3
2687
by: Pakna | last post by:
Hello, I have what may be a beginner's question regarding DB2. How does one access a remote table on a remote database via SQL? What is the command string, is there an equivalent of Oracle DBLINK? I hope I was clear. If there are more information that I need to supply, please do tell me. Thank you very much for your replies
8
7282
by: John | last post by:
Hi We had an sbs 2003 with isa 2000 server. We wre able to access a remote sql server (hosted at our web host) just fine. We replaced the server with a new sbs 2003 r2 with isa 2004 server and even though I have opened port 1433 in isa 2004 we can't access the remote sql server anymore. Where can I look for any blocks? Many Thanks
1
1219
by: vijayB | last post by:
Hi All, I have written an application in which I m accessing remote host name using; System.net.dns.GetHostByAddress(<IP Address>).HostName It is working fine with Windows Vista and Windows XP, but when I try to get remote host name from win2k machine, it throws an exception. Is there any alternative for this. I m writting this application using .Net framework 1.1
0
8890
marktang
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9402
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9259
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9182
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9120
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
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
2
2639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.