473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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

Mar 27 '06 #1
1 2050
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

Mar 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lin Ma | last post by:
Greetings, Is it possbile to check a file exist without using Server.CreateObject("Scripting.FileSystemObject") in asp page?? The reason is our hosting company turn that function off for...
5
by: Andrew | last post by:
Hi, experts, My system has a problem when I invoke the fileSystemObject to create a text file (it worked ok long before.) The asp seems running, but actually never finishes. I don't know what I...
3
by: bt | last post by:
I am just beginning with asp and have gotten an error that I need some help with. I posted a pair of files to an online ASP host server. The files are in the same directory; one is readfile.asp...
2
by: Robin Tucker | last post by:
Hi there, Getting ready for deployment and I would like to be able to run an install script that will not just generate the schema, but fill in some of the tables with default data. Is there a...
2
by: Stavros | last post by:
Hi all when I execute the following VB6 code in Windows 2000 and as an Administrator, everything is working fine. Project->References->"Microsoft Scripting Runtime" and scrrun.dll is located...
4
by: MoF | last post by:
Hello! I have for a long time used the line: Set FS=Server.CreateObject("Scripting.FileSystemObject") in my ASP code. Suddenly one day this week it stopped working and I now get the error: ...
5
by: Barry | last post by:
I've wasted the whole day trying things and researching, but nothing is working. I would *greatly* appreciate if someone can give me the solution to this problem. I'm using the .NET Framework...
3
by: =?Utf-8?B?VG9kZA==?= | last post by:
trying to access files located on another server within the network. the folder is shared out and we created a virtual directory as well. The error is Microsoft VBScript runtime error '800a004c'...
7
by: Benjamins via AccessMonster.com | last post by:
Hi, I have meet a problem for CreateObject("Scripting.FileSystemObject"). I uses this code to get the information of the harddisk I have 10 user using the same code. All where working fine...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.