Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
GeneralTextbox question Pin
mweiss17-Oct-03 19:26
mweiss17-Oct-03 19:26 
QuestionMP3 Player in C# ??? Pin
Dato17-Oct-03 14:50
Dato17-Oct-03 14:50 
AnswerRe: MP3 Player in C# ??? Pin
Kant17-Oct-03 17:56
Kant17-Oct-03 17:56 
GeneralRe: MP3 Player in C# ??? Pin
leppie17-Oct-03 19:56
leppie17-Oct-03 19:56 
GeneralRe: MP3 Player in C# ??? Pin
Dato19-Oct-03 1:27
Dato19-Oct-03 1:27 
GeneralRe: Possible Speed Enhancements Pin
Daniel M. Edwards17-Oct-03 17:14
Daniel M. Edwards17-Oct-03 17:14 
GeneralRe: Possible Speed Enhancements Pin
eggie517-Oct-03 18:26
eggie517-Oct-03 18:26 
GeneralCOM+ Service Installation Pin
Pietro217-Oct-03 12:21
Pietro217-Oct-03 12:21 
Hi,

I have a strange behavior when using an installer class to register a com+ server (Using the RegistrationHelper class). When the installer perform a new install there is no problem, the behavior appear when doing an upgrade, the old version is registered, not the new one (the Installer package is configured to remove the previous version before reinstalling a new one. "RemovePrevious Version=True").

Here is the symptom :
When installing a new version of the com+ server, the installer class first uninstall the previous version, remove the files and copy the new ones.

then, the following procedure is run :
public override void Install(System.Collections.IDictionary stateSaver)<br />
{<br />
	base.Install(stateSaver);<br />
<br />
	string appID = null;<br />
	string typeLib = null;<br />
	// Get the location of the current assembly<br />
	string assembly = GetType().Assembly.Location;<br />
<br />
	// Install the application<br />
	RegistrationHelper regHelper = new RegistrationHelper ();<br />
	regHelper.InstallAssembly (assembly, ref appID, ref typeLib,<br />
				InstallationFlags.FindOrCreateTargetApplication);<br />
		<br />
	// Save the state - you will need this for the uninstall<br />
	stateSaver.Add ("AppID", appID);<br />
	stateSaver.Add ("Assembly", assembly);<br />
}


Theoritically the new com+ server must be reinstalled.

BUT, the version registered is the previous...

Because of that, the server can't provide com object access because of a mismatch in assembly effective version and declared version in registry.

I don't understand why because the assembly property refer to the new assembly with the correct version number !!!

Does anyone have an explanation for this problem or it is a bug ?

Pietro
GeneralRe: COM+ Service Installation Pin
Heath Stewart18-Oct-03 10:41
protectorHeath Stewart18-Oct-03 10:41 
GeneralRe: COM+ Service Installation Pin
Pietro219-Oct-03 3:18
Pietro219-Oct-03 3:18 
Generalremoting channel woes Pin
qek17-Oct-03 11:37
qek17-Oct-03 11:37 
GeneralRe: remoting channel woes Pin
Heath Stewart18-Oct-03 10:42
protectorHeath Stewart18-Oct-03 10:42 
GeneralRe: remoting channel woes Pin
qek20-Oct-03 5:04
qek20-Oct-03 5:04 
GeneralRe: remoting channel woes Pin
Heath Stewart20-Oct-03 6:00
protectorHeath Stewart20-Oct-03 6:00 
GeneralRe: remoting channel woes Pin
qek20-Oct-03 11:02
qek20-Oct-03 11:02 
GeneralRe: remoting channel woes Pin
Heath Stewart20-Oct-03 11:38
protectorHeath Stewart20-Oct-03 11:38 
GeneralRe: remoting channel woes Pin
qek27-Oct-03 10:14
qek27-Oct-03 10:14 
GeneralRe: remoting channel woes Pin
Heath Stewart27-Oct-03 10:23
protectorHeath Stewart27-Oct-03 10:23 
GeneralRe: remoting channel woes Pin
qek27-Oct-03 10:50
qek27-Oct-03 10:50 
GeneralRe: remoting channel woes Pin
Heath Stewart27-Oct-03 10:53
protectorHeath Stewart27-Oct-03 10:53 
GeneralRe: remoting channel woes Pin
qek27-Oct-03 11:46
qek27-Oct-03 11:46 
Generalcustom attribute question Pin
sharkfish17-Oct-03 9:32
sharkfish17-Oct-03 9:32 
GeneralRe: custom attribute question Pin
Alex Korchemniy17-Oct-03 10:49
Alex Korchemniy17-Oct-03 10:49 
GeneralRe: custom attribute question Pin
sharkfish17-Oct-03 11:31
sharkfish17-Oct-03 11:31 
GeneralDataGrid and ArrayList Pin
Wjousts17-Oct-03 8:26
Wjousts17-Oct-03 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.