Re: ASP to ASP.NET Error 80070005 (JScript.NET)



On Nov 16, 11:52 am, NvrBst <nvr...@xxxxxxxxx> wrote:
Hello. I have a ASP webpage that I'm converting to ASP.NET. The ASP
is writen with <%@ Language=JScript %>.

I'm having a problem with the 'var oTestObject =
Server.CreateObject("Test.class");' The page just shows up as pure
white with the following message.

-------------
Error: Retrieving the COM class factory for component with CLSID
{xxx1} failed due to the following error: 80070005.5022Retrieving the
COM class factory for component with CLSID {xxx1} failed due to the
following error: 80070005.
-------------

It looks like the ASPNET user doesn't have access, however, I searched
the registry for "xxx1" and found the entry.

LocalServer32: C:\Program Files\X\TestU.exe
ProgID: Test.class.1
TypeLib: xxx2

I then run DCOMCNFG, and find the "TestU" (with Application ID xxx2)
under "DCOM Config". I right click > Properties > Security" and add
"ASPNET" on "Location: MyComName".

It adds the "ASP.NET Machine Account (MyComName:ASPNET)" and I grant
it Allow for all 4 options.

I repate that for "Launch and Activation Permissions" "Access
Permissions" and "Configuration Permissions" then save. I still get
the exact same error when reloading the .aspx file. I also tried
restarting.

This may be a newbie question but is there a special step to get my
COM object working for ASPNET (using JScript.NET). It works 100% in
normal ASP.

Thanks
NB

Ahh. To get it working I had to remove the "Internet Guest Account"
and then Add the ASPNET Account, and restart the computer. On another
computer (where manually moving/adding -> restarting didn't work) I
had to unregister the COM object completly and re-add it. Then added
the ASPNET permissions and it worked.

NB
.



Relevant Pages

  • RE: Problem Writing a File from a Web Service
    ... it should have the same permissions as my Domain account. ... That leads me to believe that the web service isn't running under the ASPNET ... actually running under the ASPNET user credentials. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server Application Unavailable
    ... You were right about the FP permissions. ... I have tried logging in as ASPNET with a password ASPNET/aspnet and also ... >> the installation directory allow access to the configured account. ... Go to a command prompt. ...
    (microsoft.public.frontpage.client)
  • Re: Problem: Process.GetProcessesByName : Couldnt get process information from remote machine
    ... If I put the ASPNET user into the local Administrators group it ... I obviously don't want the ASPNET account to have full admin rights in the ... > I have tried setting all sorts of permissions, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Downloading Files
    ... Best regards, ... > ASPNET user account. ... but rather because the permissions are not correct. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Incoming E-Mail - cant create contact in OU
    ... account out of local administrator to attempt to find any denied access. ... I then added full permissions to my user account on both of these keys, ... local admin rights to the server hosting incoming email. ... what permission I need to give the app pool locally to avoid this issue. ...
    (microsoft.public.sharepoint.windowsservices)