problem assigning strong name to assembly -winapp



Hi


It is a windowsapplication . i have created the srongname using sn key
and it has been set in the assemblyinfo file .If i build the application
2 folders are created called bin ,obj .

It is natural the bin folder is created and i thought the exe file
inside the bin folder should have been assigned the strongname .

I went to mscorcfg.msc to create the code groups for this assembly .If i
refer the assembly(exe) from the bin folder of my app ,then it says that

'Import failed .An assembly does not contain the strongname' .

But if i refer the assembly (exe) from the obj folder ,then it is
accepted .


So ,by this is i can conclude that the strongname is assigned to the
assembly in side obj folder and during the run time assembly bin folder
is refered which is not strongnamed and producing the security exception
..


Please tell me how can i make the assembly in bin folder to be
strongnamed and referred at runtime (not with obj foder)..



Thanks
Raghu



Six faces rule the world

*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages

  • Re: error msg "assembly identity could not be determined"
    ... You haven't got a 1.0.* in your assemblyinfo file have you? ... Definitive Guide to Windows Installer ... > an error message 'runtime error' 'assembly identity could not be ...
    (microsoft.public.dotnet.framework.interop)
  • Weird assembly key problem
    ... I have an application that uses a simple utility DLL. ... specified in AssemblyInfo file: ... Everything works fine on a development machine. ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Strong naming
    ... Any assembly that you want to put into the GAC is required to have a "Strong ... Then open up your project's AssemblyInfo file and add this: ... goto the index tab and goto "strong-named assemblies" ...
    (microsoft.public.dotnet.languages.vb)
  • Re: license an assembly
    ... Fill in this information in the AssemblyInfo file found in your project. ... There you can specify the ... version number, the strong name public key, company name, product name, ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)

Loading