I have been trying to get a previously built .NET component to run on
a Windows 2000 (Service Pack 4) Server box. It's previous home was on
an XP box using .NET framework version 1.0.3328. On that machine, it
ran with no problem, but on the 2000 Server box, with version
1.1.4322, it fails to load and gives an access denied error. I have
moved the same component to an XP box with version 1.1.4322, and it
registered there as well, but gave more warnings then it did with the
earlier framework version. Here are the outputs from the three runs:
Original XP box with .NET framework 1.0.3328:
C:\test>C:\WINDOWS\Microsoft.NET\Framework\v1.0.3328\RegSvcs.exe
app1.dll
/appname:app1
Microsoft (R) .NET Framework Services Installation Utility Version
1.0.3328.4
Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
WARNING: The class app1.ServiceInterface' has no class interface,
which means that unmanaged late bound calls cannot take advantage of
AutoComplete methods.
Installed Assembly:
Assembly: C:\test\app1.dll
Application: app1
TypeLib: c:\test\app1.tlb
New XP box with .NET framework 1.1.4322:
C:\test>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\RegSvcs.exe
app1.dll
/appname:app1
Microsoft (R) .NET Framework Services Installation Utility Version
1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
WARNING: The class 'app1.ServiceInterface' has no class interface,
which means that unmanaged late bound calls cannot take advantage of
AutoComplete methods.
WARNING: The assembly does not declare an ApplicationAccessControl
Attribute. Application security will be enabled by default.
Installed Assembly:
Assembly: C:\test\app1.dll
Application: app1
TypeLib: C:\test\app1.tlb
Windows 2000 Server box with .NET framework 1.1.4322:
C:\test>C:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegSvcs.exe
app1.dll /appname:app1
Microsoft (R) .NET Framework Services Installation Utility Version
1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
The following installation error occurred:
1: Failed to load assembly 'c:\test\app1.dll'.
2: Access is denied: app1.dll'.
I am logged in as local administrator on the target machine. This is a
brand new install of Windows 2000 Server and has been tried on two
different (identical ) 2000 Server machines. I have not made any
special registry or other adjustments (other than loading SP4) on the
2000 system. Please tell me on how I can get this to load and run on
the 2000 Server box and/or what the root cause of this failure might
be? |