Opened 17 years ago

Closed 17 years ago

#2112 closed enhancement (fixed)

Create a signed version of mapscript_csharp.dll for .NET ClickOnce deployment

Reported by: jbartol Owned by: tamas
Priority: normal Milestone: 5.0 release
Component: MapScript-C# Version:
Severity: normal Keywords:
Cc:

Description

Jim,

I think we haven't too much experience with ClickOnce but we can surely support signing the assembly using a pre-generated key pair. If you are interested in this topic submit a ticket as an enhancement for the mapscript C# component. http://trac.osgeo.org/mapserver/newticket

Best regards,

Tamas

I have developed a .NET Windows Forms based application that incorporates Mapserver, and have successfully distributed it to users by using xcopy deployment. I would now like to distribute this application using ClickOnce technology. I have been able to successfully publish the application using the default settings, however it failed when I tried to deploy to a client machine with the following error message:

ERROR SUMMARY

Below is a summary of the errors, details of these errors are listed

later in the log.

  • Activation of C:\ClickOnce Deployments\Rms.application resulted in

exception. Following failure messages were detected:

+ Manifest XML signature is not valid. + No signature was present in the subject.

I believe this error could occur if the mapscript_csharp.dll assembly was not signed when it was created. I have been using the binaries found in the sample code posted by David Lowther found at http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile. Has the mapscript_csharp.dll in this project been signed? If not, would it be possible to post a version of this project where the assembly has been signed.

Change History (4)

comment:1 by jbartol, 17 years ago

Component: AGGMapScript-C#
Owner: changed from sdlime to szekerest
Type: defectenhancement

I corrected some of the request properties from the original defaults as I believe they are now more appropriate.

comment:2 by tamas, 17 years ago

Milestone: 5.0 release
Owner: changed from szekerest to tamas

comment:3 by tamas, 17 years ago

The SVN trunk have been modified so that the mapscript_csharp.dll is signed with a strong name. The following files have also been added:

mapscript.snk -- Contains the key pair used config/AssemblyInfo.cs -- Contains the reference to the key file

Note1: The key pair can be recreated manually using 'nmake -f makefile.vc sign' (if needed) Note2: As of these changes the applications having reference to the mapscript_csharp.dll should be recompiled when a new version of the .dll is deployed. Note3: to add the dll into the GAC we can use: 'gacutil -i mapscript_csharp.dll'

comment:4 by tamas, 17 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.