Groups | Blog | Home
all groups > inetserver asp components > october 2003 >

inetserver asp components : Browscap.dll


Calle
10/15/2003 3:35:40 AM
Hi all!

I'm having problems with instanciating MSWC.BrowserType in
my VB6 component, i do like this.

Declaration:
Private objBC As BrowserType.BrowserCap

In my public sub:
Set objBC = Server.CreateObject("MSWC.BrowserType")
bcBrowser = objBC.browser

Generates error:
006~ASP 0177~Server.CreateObject Failed~There is no MTS
object context

Works fine when used in an .asp page but not in my COM,
why?
And how should i do it?
Cowboy (Gregory A. Beamer)
10/16/2003 8:26:05 AM
Browscap requires your COM component be in MTS (COM+) as well, as ASP uses
the MTS/COM+ context for its objects. Browscap requires getting at the ASP
objects.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
[quoted text, click to view]

AddThis Social Bookmark Button