Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

VB DLL on IIS and windows 2000

I used to develop DLL in VB and put them on a NT4 server and call them under ASP pages and IIS, workin very well in NT4.  

The same dll is not owrking under Win2000???  any idea
0
dabellei
Asked:
dabellei
  • 5
  • 4
  • 2
  • +4
1 Solution
 
Dave_GreeneCommented:
Does the DLL have any dependencies that may be missing on the 2000 system?

Have you set your DLL to work under COM+?
0
 
dabelleiAuthor Commented:
Well I am developping the dll on the server it is actually my pc where everything is running.  Did not put it under MTS
0
 
dabelleiAuthor Commented:
Well I am developping the dll on the server it is actually my pc where everything is running.  Did not put it under MTS
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Dave_GreeneCommented:
you need to add the components to a COM+ package for them to be accessed by your ASP page(s)
0
 
bubba755Commented:
Do you receive a particular error message? It would greatly help to know a little bit more about the error.

Also you should check for security issues. It might be just that...
0
 
TimelibCommented:
I just got my first DLL to function under Win2000 and (haha) Windows XP, however it fails under WinNT.

The main concern in win2000/XP was secuirty rights to execute, write, read. The IWIN_ComputerName account is used if the web site is set to Anonymous user login.
To solve the problem, I assigned the Everyone account, and gave full rights to any files the application requested.

Also, you need to assign the correct secruity to the MSVBVM60.DLL, otherwise you may get "Permission denied when creating object" error.

----

Now, anything I need to know to get a VB DLL to work on WinNT, I'm getting a "ActiveX object can't be created..."

0
 
JonFish85Commented:
it appears as tho its not registered maybe?

regsvr32 C:\Directory\MyDLL.dll


try that...
0
 
TimelibCommented:
In Win2000, registering it fix the problem when it came up. But in WinNT, it doesn't seem to.
0
 
dabelleiAuthor Commented:
I did register the dll

regsvr32 cms.dll

here is the code in asp

<%
dim myobj
set myobj = server.CreateObject ("cms.language")  
result = myobj.add ("test")

%>


The dll is name CMS
the class is name Language

here is the error message from IE

Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object
/cms/cms.asp, line 10

line 10 is the line where I create my object


0
 
dabelleiAuthor Commented:
I did register the dll

regsvr32 cms.dll

here is the code in asp

<%
dim myobj
set myobj = server.CreateObject ("cms.language")  
result = myobj.add ("test")

%>


The dll is name CMS
the class is name Language

here is the error message from IE

Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object
/cms/cms.asp, line 10

line 10 is the line where I create my object


0
 
TimelibCommented:
What directory did you put the cms.dll file in?
0
 
dabelleiAuthor Commented:
I put the cms in its own directory, tried in scriplibrary as well.

I resolve the problem partly by putting the dll on a fat32 drive instead of NTFS.  It seem that it is a security issues.....
0
 
TimelibCommented:
If you put it in a different directory, other than the system directory (c:\winnt\system32) you will need to add the directory information in the registeration of the DLL.

for example:

regsvr32 c:\ItsOwn\Directory\cms.dll
0
 
DanRollinsCommented:
Hi dabellei,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Timelib's comment(s) as an answer.

dabellei, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
Computer101Commented:
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 5
  • 4
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now