473,385 Members | 1,647 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,385 software developers and data experts.

Error writing managed MMC SnapIn

Hi I'm trying to write an MMC SnapIn for a 64-bit system. I'm using MMC 3.0
and the managed framework for the SnapIns with C#. I get an error saying
Unable to cast object of type 'TestSnapIn' to type
'Microsoft.ManagementConsole.SnapInBase'.

Here is my code:

[SnapInSettings("30654E37-DA56-407a-83DA-97855D01CD39",
DisplayName = "Test Snap-In",
Description = "Test",
Vendor = "")]
public class TestSnapIn : SnapIn
{
public TestSnapIn()
{
this.RootNode = new ScopeNode();
this.RootNode.DisplayName = "Test";
}
}

Can anyone tell me what I'm doing wrong? Note: This seems to work fine on my
32-bit workstation, just not on my 64-bit server with MMC running in either
32-bit or 64-bit modes.

May 24 '06 #1
0 1042

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

Similar topics

2
by: Julia | last post by:
Hi, I am using Ironing MMC library to create a C# MMC snapin But I didn't succeeded to debug it either using Attach to process or using Assert to break into the code The assert is being...
1
by: Julia | last post by:
My service send email messages and log all information to a log file I wonder if it's common to raise events from the service(the remote object which hosted inside the service) to my MMC snapin,...
12
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses...
5
by: Dominiek | last post by:
Hi, I have a strange problem. during the developement of my program, while progressively writing more and more code, the callstack of my program gets deeper and deeper (7 levels). Then, all...
5
by: Les Caudle | last post by:
On a new win2003 Standard install, I installed IIS and ASP.NET. I then installed .NET Framework 2.0 from MS Updates. In the management console, I've added in a .NET Configuration 1.1 snapin. ...
0
by: auad | last post by:
Hi, I wolud like to know if there is a way to load or embed a snapin (like sql server, iis,...) in a windows application. I would like to display on my Form. Tks,
2
by: Ilkka | last post by:
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled...
4
by: DaTurk | last post by:
Hi, I've noticed that when trying to create a managed, auto_gcrooted variable in a antive class, the compiler throws linker exceptions. While searching some forums I found out that this is a...
17
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have set up a virtual directory using IIS. Whenever, I load a web page of type .htm, I have no problem. Whenever I run a .aspx page I get the statement below. I am running on XP Pro, both...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.