473,385 Members | 1,769 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 17 '05 #1
0 1147

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

Similar topics

1
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...
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: 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: 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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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,...

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.