473,800 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Failing to register component using RegSvcs

I have been trying to get a previously built .NET component to run on
a Windows 2000 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 1.0.3328:
C:\test>C:\WIND OWS\Microsoft.N ET\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.ServiceInt erface' has no class interface,
which means that unmanaged late bound calls cannot take advantage of
AutoComplete methods.
Installed Assembly:
Assembly: C:\test\app1.dl l
Application: app1
TypeLib: c:\test\app1.tl b

New XP box with 1.1.4322:
C:\test>C:\WIND OWS\Microsoft.N ET\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.ServiceIn terface' has no class interface,
which means that unmanaged late bound calls cannot take advantage of
AutoComplete methods.
WARNING: The assembly does not declare an ApplicationAcce ssControl
Attribute. Application security will be enabled by default.
Installed Assembly:
Assembly: C:\test\app1.dl l
Application: app1
TypeLib: C:\test\app1.tl b
Windows 2000 Server box with 1.1.4322:
C:\test>C:\WINN T\Microsoft.NET \Framework\v1.1 .4322\RegSvcs.e xe
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.d ll'.
2: Access is denied: app1.dll'.
Any suggestions on how I can get this to load on the 2000 Server box
or what the root cause of this failure might be?
Nov 22 '05 #1
1 4583
As a follow up to anyone else who runs into a similar problem, the
security permissions apparently don't move across for the dll when
going to 2000 Server or my security defaults are different on that
box. I just needed to go to the permissions for the DLL and give
administrator "Full Control" under the Security tab. Then everything
worked.
Nov 22 '05 #2

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

Similar topics

0
1390
by: Karuppasamy | last post by:
H I have created a Windows Application using C#. This Windows application makes a call to a Remoting Object which runs as a Windows Service. This Remoting Component makes a call to a Com+(Name : MyComPlusComponent) component. All the Windows application, the Remoting component and the Com+ run in the same Windows 2000 Advanced Server machine. When i am running the Windows application and invoking a method I am getting an error like this ...
1
625
by: J. P. Young | last post by:
I have been trying to get a previously built .NET component to run on a Windows 2000 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...
0
1360
by: Boomessh | last post by:
Hai all, can any one help me in solving he following problem? I am registering a COM+ component in a machine. While registering i am getting the following error. ************************************************************ System.EnterpriseServices.RegistrationException: Failed to register assembly 'LR.Server.TransactionManager, Version=1.0.0.1, Culture=neutral, PublicKeyToken=e0e8e60ed826fed8'. ---> System.UnauthorizedAccessException:...
1
1395
by: Eric Mamet | last post by:
I have created a .Net class that I configured to use through Component Services (using regsvcs MTSWord.dll). The "Server" app. I intend to use this "COM+" object in another .Net app: the "client" app. In visual studio, if I try to add a reference to my Com+ "Server" app, I get the following error "Converting the type library to a .Net assembly failed. TypeLibrary
2
13541
by: Andy Bates | last post by:
Hi - I have a C# .NET assembly that exposes a COM interface (basically has an interface and class with Guid attributes). If I compile this under VS.NET (with the "Register for COM Interop" selected). Then I can import the TLB into C++ and use the component as a standard COM component, it creates and I can call it's methods. If however, I take the DLL and use REGASM to register the component. I
2
1400
by: Mark Broadbent | last post by:
Please guys save me from throwing my laptop throught the window grrr. No one answered my original post so here is a reworded version. I am working through some study material but have hit a brick wall. Im sure this is simple. I have a dot net component that I have imported into the COM+ catalog via regsvcs. My study text says that I need to make the dot net dll available to COM by adding it to the GAC (which I have done ....GACUTIL). ...
3
4144
by: msuk | last post by:
All, I have a C# COM+ that I would like to debug with context so I can see the transactions being committed. I have a webform1.aspx that calls my C# component but for some reason I cant debug it. I have registered the component with COM+ using regsvcs myassembley.dll but when I try to debug from the webform1.aspx it is simply executed and does not jump into the C# component source code. How do I debug it? Thanks
4
2213
by: Mihiri | last post by:
Hi, I have created a simple managed component in vb.Net with a public class exposing a public function. I successfully registered it using 'Regasm.exe' .. But when I tired to access it in vb 6.0( using late binding) it gives an error . I cannot view managed component in Ole View . Both managed componet and vb 6.0 exe are in the same folder. How Can I successfully register my component for COM? Thanks
0
961
by: Henrik | last post by:
Hi There,,, I've createt a com-class in vb2005, but when i try to registrer it on a windows 2003 server, with framework 2.0, by using the command regsvcs.exe. Then i get the follewing error?? An unknown exception occurred during installation: 1: System.TypeLoadException - Could not load type 'System.Runtime.CompilerServic
3
2437
by: Admin.TalkPC | last post by:
Hi people, I have now spent far too much time on this small problem, I am hopefully going to hand it over to you guys that are cleverer than I in this respect. Problem. I need to get all firms in a certain postal code area (say "E1") from the FSA website. I can do this interactively, but I thought I would save time and automate it. Big mistake, I have taken hours investigating an so far failed to get the second search results
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10251
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.