XP SP2 breaks .NET .dll load via Server.CreateObject("scripting.fileSystemObject")

C

chsmith

I'm calling a .net / c# .dll from .ASP via Server.CreateObject().

I regasm, gacutil /i and all runs fine on XP SP1 or older. SP2
registry subracts System (??) from the registry root nodes and .ASP
calling my .net dll breaks with Invalid class string to the browser.

I find that I can fix a SP2 box by adding the IIS user to the permissed
users for each .dll object in the registry.

IE: regedt32, HKEY_CLASSES_ROOT.your_dll_class

1. Right-click-Permissions
2. Add - Locations, choose the top pick, your host.
3. Advanced - Find Now
4. Choose IUSR_<your host name> Note: if this doesn't work, choose
Users. The later gives too much privilege but worked for me on my dev
box.
5. Click: Full Control and Read, then OK.

Don't try this: go to root node (HKEY_CLASSES_ROOT) add Everyone, add
full control, advanced, replace all child permissions.

The above failed and corrupted my registry. I fixed by mounting my
disk on another box and grabing one of the save point registry files
out of system information ....

Is there a generalized solution to installing .NET .dlls that solves
the .ASP/IIS permission issue?

IE: regasm mydll
gacutl /i mydll
magiccmd mydll

What might "magiccmd" be that I can add to my install script? Even my
development box needs the regedt32 right click 10 minutes of wasted
time to deploy a new .dll. Isn't this a bit nutz?

I've tried running IIS anonymous access as mybox\administrator and
aspnet users. No go.

Any helps?

tnx curt
 
C

chsmith

I still have only found that going through the registry entries for
each .net api and adding the IIS user with all privs is the only tactic
that works.

Surely there's a simplier and general solution?

Thanks, curt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top