Why can I not create an IIS application?

PeterW
09-09-2000, 11:00 AM
Well dear Sirs (and Ladies, of course), riddle me this...

I am trying to make my first IIS application, and I am doing my very best to follow the instructions. As far as I understand it, the basics are: 1) Start a new IIS app, 2) Save it, and c) Run it. That should get a Hello World, at least. Well it doesn't for me! I get an error message (included below) that is beyond my abilities to understand. Is there anyone Out There who might help me?

Peter

Error Type:
Server object, ASP 0178 (0x800A0005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
/IISTest/WebClass1.ASP, line 14

... and a quick peek at line 14 in WebClass1.ASP reveals...

Application "~WC~WebClassManager").ProcessNoStateWebClass "Project1.WebClass1", Server, Application, Session, Request, Response

niktesla
09-09-2000, 10:12 PM
Any unhandled error in your webclass will come back as an error on line 14, because that is the call to the webclass.

Are you running the webclass on an NT system with Personal Web Server or is it running on an NT server with IIS?

While in the VB Environment, have you put a breakpoint in the webclass.start event and tried to debug?, If so, does it run.

There are a few things you need to do on IIS to get a webclass to run, and unfortunately, it isn't explained anywhere.

The first webclass installed on a system should be installed with the setup utility. This ensures that all the required .dll's are loaded. Any subsequent webclasses can be copied over and registered.

Also, the directory has to not only be a virtual root, but in IIS it must be an application directory.

Errorhandling is extremely important in a webclass. If an unhandled error occurs and a webclass.nextitem isn't set, you typically get back a blank page, which tends to tick off users.

Let me know what you've done so far.



Brian




Brian T. Wiehoff

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum