473,385 Members | 1,602 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,385 software developers and data experts.

VB Component not runningproperly in ASP

p1j
Hi,

One of the components (ActivX Dll developed in VB6) is not behaving
properly in ASP pages, while the same is running fine when called from
a VB Programs.. .

Here is the ASPCode

dim objTemplateMgr, tmplFileNemewithPath, sfilename, stemplcode
Set objTemplateMgr = Server.CreateObject("TmplMgr.T2DB")
Set objTemplateMgr.gMyConn = dbconn

objTemplateMgr.Tmpl2DB tmplfilenamewithpath, stmplcode
Response.write "<BR>Bytes Written : " & objTemplateMgr.BytesWritten
Response.write "<BR>Err : " & objTemplateMgr.Errno

The same code is runnign fine in VB.. (one change)
Set objTemplateMgr as new TmplMgr.T2DB
Set objTemplateMgr.gMyConn = dbconn
objTemplateMgr.Tmpl2DB tmplfilenamewithpath, stmplcode
Msgbox "Bytes Written : " & objTemplateMgr.BytesWritten
MsgBox "Err : " & objTemplateMgr.Errno

The VB code inserts a Template fine in IMAGE filed of SQL server,
while the ASP page inserts a NULL without giving any error...

Can anyone help why its not working? has it to do with security
permissions (though I have tried setting permissions for IUSR_MyPC on
the component dll)

Any idea how to check if the component is failing.. ?

thanks

P1
Jul 19 '05 #1
1 1085
You can enable the server-side debugging for ASP and check variables at each
step:

http://support.microsoft.com/default...b;en-us;192011
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"p1j" <p1*@operamail.com> wrote in message
news:a0*************************@posting.google.co m...
Hi,

One of the components (ActivX Dll developed in VB6) is not behaving
properly in ASP pages, while the same is running fine when called from
a VB Programs.. .

Here is the ASPCode

dim objTemplateMgr, tmplFileNemewithPath, sfilename, stemplcode
Set objTemplateMgr = Server.CreateObject("TmplMgr.T2DB")
Set objTemplateMgr.gMyConn = dbconn

objTemplateMgr.Tmpl2DB tmplfilenamewithpath, stmplcode
Response.write "<BR>Bytes Written : " & objTemplateMgr.BytesWritten
Response.write "<BR>Err : " & objTemplateMgr.Errno

The same code is runnign fine in VB.. (one change)
Set objTemplateMgr as new TmplMgr.T2DB
Set objTemplateMgr.gMyConn = dbconn
objTemplateMgr.Tmpl2DB tmplfilenamewithpath, stmplcode
Msgbox "Bytes Written : " & objTemplateMgr.BytesWritten
MsgBox "Err : " & objTemplateMgr.Errno

The VB code inserts a Template fine in IMAGE filed of SQL server,
while the ASP page inserts a NULL without giving any error...

Can anyone help why its not working? has it to do with security
permissions (though I have tried setting permissions for IUSR_MyPC on
the component dll)

Any idea how to check if the component is failing.. ?

thanks

P1

Jul 19 '05 #2

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

Similar topics

0
by: p1j | last post by:
Hi, One of the components (ActivX Dll developed in VB6) is not behaving properly in ASP pages, while the same is running fine when called from a VB Programs.. . Here is the ASPCode dim...
12
by: Chien Lau | last post by:
I had a situation occur today that's happened a number of times before and I'd like to get your take on it: Imagine... You're developing a WinForms app for a client that includes the use charts....
4
by: orangepic333 | last post by:
Could someone tell me what's the difference between the two? Is it that a class is used within an OO language while a component can be exported between OO languages? Are there other...
2
by: Edward Diener | last post by:
How does one specify in a component that a property is a pointer to another component ? How is this different from a property that is actually an embedded component ? Finally how is one notified in...
0
by: Jordan Bowness | last post by:
I make a similar post in another newsgroup, but this example is simplified somewhat. I have a component (cmpMyComponent) with 2 properties. The 1st property is a string value (Description) and...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
1
by: Rob Griffiths | last post by:
Can anyone explain to me the difference between an element type and a component type? In the java literature, arrays are said to have component types, whereas collections from the Collections...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
7
by: Joe | last post by:
Is it possible to have a component which is global to the entire application? I need to have a single component act sort of like a server which components in any of the forms can access. For...
0
by: bharathreddy | last post by:
In .Net COM+ components are referred to as serviced components, Namespace: System.EnterpriseServices; Advantage of Serviced Components: object pooling, database connection pooling,
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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 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.