?
Solved

Replaceable Class-Library for an Application

Posted on 2003-03-14
2
Medium Priority
?
262 Views
Last Modified: 2010-04-15
Dear Experts

There is a c# Project (class library) which has a bug. This ClassLib is referenced by an windows service. The service runs well since the bug is not really bad.

Well after I resolved the bug I have to recompile the class llibrary. Of course, I can recompile the Service and it's Setup and deinstall/reinstall the service. But it would be cool, if it is possible just to stop the service, replace the old ClassLib with the debugged one and start the Service again....ins't it?

Well i tried that and got the following message in the EventLog:
"Com object with CLSID XXXXXXXXXXXXXXXXXX is either not valid or not registered"

Is there an option in C# like in earlier times in VB the option "binary compatible"?

Many thanks for your answers
Alesch
0
Comment
Question by:alesch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Nebulus_ earned 2000 total points
ID: 8135990
You have attributes like these:

[Guid("EAA4976A-45C3-4BC5-BC0B-E474F4C3C83F")]
public interface IComYourClass
{ ... }

[Guid("EAA4976A-45C3-4BC5-BC0B-E474F4C3C83E")]
public class YourClass: IComYourClass
{ ... }

in your class library?
If the attribute is omitted, a Guid is assigned automatically.

for more info see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconapplyinginteropattributes.asp
0
 

Author Comment

by:alesch
ID: 8165631
Nebulus, your comment helped me.

Many Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question