Mallikarjun Avula

Hi

I am trying to run a Microsoft Robotics Studio tutorial in Visual Studio 2005 ( C# ) where in I get the following error

Error : Cryptographic failure while signing assembly 'C:\Microsoft Robotics Studio (1.5)\samples\RoboticsTutorials\Tutorial4\CSharp\obj\Debug\RoboticsTutorial4.Y2006.M06.dll' -- 'Access is denied. '

Please help me in debugging this error.




Re: Microsoft Robotics - Community Cryptographic Failure

Omid K. Rad

Are you able to run any other samples Try opening the project in VS, and reassign the sign key to \samples\mrisamples.snk.





Re: Microsoft Robotics - Community Cryptographic Failure

Mallikarjun Avula

I tried to open the project in Visual Studio 2005 but there seems to be a build error ( Error:Cryptographic failure while signing assembly 'C:\Microsoft Robotics Studio (1.5)\samples\RoboticsTutorials\Tutorial4\CSharp\obj\Debug\RoboticsTutorial4.Y2006.M06.dll' -- 'Access is denied.' ) when I debug the project. I have assigned the key to \samples\mrisamples.snk but the same error persists.







Re: Microsoft Robotics - Community Cryptographic Failure

Omid K. Rad

Did you reassign it This error happens when the .snk file cannot be found relative to the location of the assembly (output path). In VS open project properties, go to signing and remove the sign file. and compile. Then add the sign file again and compile.





Re: Microsoft Robotics - Community Cryptographic Failure

Mallikarjun Avula

I have removed the sign file and compiled it and then compiled it again by adding the sign file but the same error persists.

Can you tell me how to place the .snk file relative to the location of the assembly

Thank you for your patience.






Re: Microsoft Robotics - Community Cryptographic Failure

Omid K. Rad

When adding the sign file Visual Studio will resolve the path relative to outputpath. You don't need to move the .snk file or this will break all the other projects. I think this is related to some version conflict that maybe in your installation (for example you may have mixed runtime dlls from v1.0 and v1.5). Try reinstalling MSRS 1.5. Also do you get the same error when compiling other projects





Re: Microsoft Robotics - Community Cryptographic Failure

Mallikarjun Avula

May be you are right.I have upgraded from v1.0 to v1.5. I am not facing any problem while compiling other projects. I will check it out by re-installing 1.5 and get back to you. Thank you for your assistance.






Re: Microsoft Robotics - Community Cryptographic Failure

Alexander Dahl

Mallikarjun Avula wrote:

Error : Cryptographic failure while signing assembly 'C:\Microsoft Robotics Studio (1.5)\samples\RoboticsTutorials\Tutorial4\CSharp\obj\Debug\RoboticsTutorial4.Y2006.M06.dll' -- 'Access is denied. '

What about this "Access denied" error Did you check access rights in your MSRS folder






Re: Microsoft Robotics - Community Cryptographic Failure

Mallikarjun Avula

Could you please tell me how to check the access rights in MSRS folder






Re: Microsoft Robotics - Community Cryptographic Failure

Omid K. Rad

You can change security settings in secirity manager. When viewing the DSS node in the browser click on Security Manager on the left navigation pane. For more information about DSS security see Security.





Re: Microsoft Robotics - Community Cryptographic Failure

Mallikarjun Avula

The project is successfully build but the DssHost is terminating unexpectedly.






Re: Microsoft Robotics - Community Cryptographic Failure

Omid K. Rad

Could you use DebugView to see what kind of error messages you get

Also try deleting the security settings file with the following command and configure security again.

del "%MRI_INSTANCE_DIR%\store\SecuritySettings.xml"





Re: Microsoft Robotics - Community Cryptographic Failure

Mallikarjun Avula

*** Initialization failed in DSS boot loader: A core service failed to initialize: http://schemas.microsoft.com/xw/2004/10/directory.html

The program '[1404] DssHost.exe: Managed' has exited with code 20 (0x14).

This is the error which I am facing after succesful build.






Re: Microsoft Robotics - Community Cryptographic Failure

Omid K. Rad

Hi sorry for the late response. I was investigating this issue. This is most likely because there's something wrong with the installation. Please uninstall Robotics Studio and remove the left-overs manually. Then install again.

Thanks