Need help: IIS7 and classic ASP with VB6 COM objects, constantly fails on "server.createobject&

Need help: IIS7 and classic ASP with VB6 COM objects, constantly fails on "server.createobject&

am 16.11.2007 18:49:48 von Magnus

I am trying to setup one of our old webapps my Vista machine in order to
port the old stuff to C#/ASP.NET
To do this, I need to get the old classic ASP pages, which calls a lot of
VB6 written COM objects to work.
I have registred all the DLL files (The VB COM objects) in "Component
Services" and got classic ASP to work with IIS7.

This project is a mixed C#/ASP.NET and VB/Classic ASP.

All ASP.NET pages work just fine, and classic ASP also works fine until I
try to create a VB6 COM object using "server.createobject" inside the
classic ASP code.

I get the following error (I translated the swedish error text to english,
so it might be diffrent on english systems):
---
Serverobject error: 'ASP 0178 : 80070005'
Error on Server.CreateObject Access
/interfaceindex.asp line 7
The call to Server.CreateObject failed when the permission was checked, no
permission granted on this object"
---

I have checked that the NTFS permissions for the VB6 DLL files is correct
for the "IUSR" and "NETWORK SERVICE" groups. I have also tried to add "IUSR"
and "NETWORK SERVICE" to "Component Services" for the entire machine.

Where in Vista can I fix this permission problem? I'm getting crazy here,
please help me someone..

/Magnus

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly

am 17.11.2007 11:52:12 von David Wang

On Nov 16, 9:49 am, "Magnus Flysjö" wrote:
> I am trying to setup one of our old webapps my Vista machine in order to
> port the old stuff to C#/ASP.NET
> To do this, I need to get the old classic ASP pages, which calls a lot of
> VB6 written COM objects to work.
> I have registred all the DLL files (The VB COM objects) in "Component
> Services" and got classic ASP to work with IIS7.
>
> This project is a mixed C#/ASP.NET and VB/Classic ASP.
>
> All ASP.NET pages work just fine, and classic ASP also works fine until I
> try to create a VB6 COM object using "server.createobject" inside the
> classic ASP code.
>
> I get the following error (I translated the swedish error text to english,=

> so it might be diffrent on english systems):
> ---
> Serverobject error: 'ASP 0178 : 80070005'
> Error on Server.CreateObject Access
> /interfaceindex.asp line 7
> The call to Server.CreateObject failed when the permission was checked, no=

> permission granted on this object"
> ---
>
> I have checked that the NTFS permissions for the VB6 DLL files is correct
> for the "IUSR" and "NETWORK SERVICE" groups. I have also tried to add "IUS=
R"
> and "NETWORK SERVICE" to "Component Services" for the entire machine.
>
> Where in Vista can I fix this permission problem? I'm getting crazy here,
> please help me someone..
>
> /Magnus


I suggest using File Monitor from SysInternals.com to detect what file
IIS is failing to access, and then grant the necessary user access.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly fails on "server.createobj

am 17.11.2007 14:08:51 von Magnus

>I suggest using File Monitor from SysInternals.com to detect what file
>IIS is failing to access, and then grant the necessary user access.

Yes, I tried that, But I dont get any denied access things in the logs at
all.
On the other hand, I'm not sure I'm doing the log correct, but I think I do.
Also, File Monitor is not supported on Vista, it has been replaced with
ProcessMonitor nowadays.

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly fails on "server.createobj

am 18.11.2007 21:36:52 von Egbert Nierop

"Magnus Flysjö" wrote in message
news:u7GCVkHKIHA.1324@TK2MSFTNGP06.phx.gbl...
>I am trying to setup one of our old webapps my Vista machine in order to
>port the old stuff to C#/ASP.NET
> To do this, I need to get the old classic ASP pages, which calls a lot of
> VB6 written COM objects to work.
> I have registred all the DLL files (The VB COM objects) in "Component
> Services" and got classic ASP to work with IIS7.
>
> This project is a mixed C#/ASP.NET and VB/Classic ASP.
>
> All ASP.NET pages work just fine, and classic ASP also works fine until I
> try to create a VB6 COM object using "server.createobject" inside the
> classic ASP code.
>
> I get the following error (I translated the swedish error text to english,
> so it might be diffrent on english systems):
> ---
> Serverobject error: 'ASP 0178 : 80070005'
> Error on Server.CreateObject Access
> /interfaceindex.asp line 7
> The call to Server.CreateObject failed when the permission was checked, no
> permission granted on this object"
> ---
>

You also should do this for msvbvm60.dll in system32 for the same rights !
:)

--
ASP Session Manager (and for ASP.NET)
http://www.nieropwebconsult.nl/asp_session_manager.htm

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly fails on "server.createobj

am 19.11.2007 00:32:53 von Magnus

>
> You also should do this for msvbvm60.dll in system32 for the same rights !
> :)
>

Well, I cant do that on Vista, chaninging file permissions or anything else
is not allowed in the System32 directory even for the system administrator.

/Magnus

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly

am 19.11.2007 02:15:47 von David Wang

On Nov 18, 3:32 pm, "Magnus Flysjö" wrote:
> > You also should do this for msvbvm60.dll in system32 for the same rights=
!
> > :)
>
> Well, I cant do that on Vista, chaninging file permissions or anything els=
e
> is not allowed in the System32 directory even for the system administrator=
..
>
> /Magnus


Even with UAC enabled on Vista, one can change permissions and files
at-will anywhere, including System32 directory.

I always run as non-admin account with UAC enabled, so I use the real
admin account to do this sort of work on Vista. It behaves no
differently than what I've been used to since 2000 and just works.

This is different than running as an account in the Administrators
group with UAC enabled so that admin bits are disabled until elevated.
This UAC mode is what most people run with, and access will be denied
until you elevate, no matter who you login as.

So if you are using a command prompt, you must launch it elevated and
then it'll work.

Personally, I prefer my approach over the UAC compromise, and it's way
more functional and less confusing, too. I know the behaviors can
differ between Explorer and CMD Prompt and elevation prompts.

For the most part, I run as non-admin with the full force of UAC
restricting access, but when I want to do system-modifications, UAC
does not bother me at all because I use the elevated system
administrator. And I can alternate between the two effortlessly. One
just has to learn what actions need privileges and which do not.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly fails on "server.createobj

am 19.11.2007 11:23:31 von Magnus

>Even with UAC enabled on Vista, one can change permissions and files
>at-will anywhere, including System32 directory.

Not on system-files, I have UAC turned off and is logged in as an
administrator, and I cant change rights on systemfiles.
Only the account used by Microsoft to patch and update files is allowed to
change system files as I understand it.
And if not, then there must be something else, cause I get an error when
trying to change permission on systemfiles.

/Magnus

Re: Need help: IIS7 and classic ASP with VB6 COM objects, constantly

am 19.11.2007 13:03:43 von David Wang

On Nov 19, 2:23 am, "Magnus Flysjö" wrote:
> >Even with UAC enabled on Vista, one can change permissions and files
> >at-will anywhere, including System32 directory.
>
> Not on system-files, I have UAC turned off and is logged in as an
> administrator, and I cant change rights on systemfiles.
> Only the account used by Microsoft to patch and update files is allowed to=

> change system files as I understand it.
> And if not, then there must be something else, cause I get an error when
> trying to change permission on systemfiles.
>
> /Magnus


Well, you'll just have to know how to change those files... ;-)

But anyways, I don't see why we need to go there (yet) because you
said you did not see any Access Denied for files.

I'll see what the IIS team did for VB testing with IIS7.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//