Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2003, 12:14 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.NET dll in IIS

I'm currently making an upgrade from VB6 to VB.NET on a client. Most of the process has been made, but because we're not ready to upgrade ASP to ASP.NET, I've rewritten a dll called by the ASP pages in VB.NET

All testing has been done and the dll behaves perfectly well, with much better performance than the old VB6 dll. Even in a testing environment, with 100 accesses at the same time all work.

The problems start when actually calling it from ASP. If there is only 1 request it works, 2+ requests at the same time and all hell breaks loose. Either a server not found, a timeout, partial returns, mixed returns (1 client getting another's request) or, rarely, the correct reply.

This seems like an object creation mistake by IIS, and must be related to multiple threads under IIS (if called from VB.NET it's perfectly thread-safe). I have no clue why this is happening, altough I think it's probably due to the registry settings created by regasm.

Any ideas?

 
Old December 29th, 2003, 11:14 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I might be totally wrong here, but I would suggest you check the declaration of the main class.
Make sure that it has been declared as a shared class!


Good Luck

Ash
 
Old February 24th, 2005, 01:24 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ruisantos, I have a dll which is created in Vb.Net and I want to use it in ASP how would I do that ? can you please help me out


Usman





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to call c#.net dll in vb 6.0 hkumar Beginning VB 6 3 August 21st, 2007 01:42 PM
How to convert .NET dll to COM dll used by VB 6.0 gvprashanth .NET Framework 1.x 0 December 4th, 2006 05:05 AM
Get IIS root directory from VB.NET weichunglow Pro VB.NET 2002/2003 0 June 16th, 2004 09:39 AM
how to use ActiveX DLL in VB.NET debuajm General .NET 4 June 6th, 2004 05:26 AM
Calling a .Dll of Vb.NET enggalok C++ Programming 0 March 1st, 2004 06:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.