do you mean to do  [assembly: AssemblyKeyName(@".\keysTest\KEYS\Yang.SNK")]?see the explantation athttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingtransactionalqueuewithcomservices.asp

解决方案 »

  1.   

    [assembly: AssemblyKeyName(@"\keysTest\KEYS\Yang.SNK")]
    把@"\keysTest\KEYS\Yang.SNK")]删掉就好了
      

  2.   

    多谢各位指点,我把路径改成
     [assembly: AssemblyKeyName(@".\keysTest\KEYS\Yang.SNK")]
    试了各种可能的路径都不成功。是不是还缺哪些步骤?
      

  3.   

    多谢各位指点,我把路径改成
     [assembly: AssemblyKeyName(@".\keysTest\KEYS\Yang.SNK")]
    试了各种可能的路径都不成功。是不是还缺哪些步骤?
      

  4.   

    试了绝对路径,真的成功了,呵呵。看来是路径不正确。《ASP.NET Web站点高级编程》中的例子中有20个项目分别有不同的输出路径,但所有的AssemblyInfo.cs文件中都是写成:
    [assembly: AssemblyKeyFile(@"\Wrox\Keys\ThePhile.snk")],不知是如何实现的?
      

  5.   

    according to the documentation,The file location for the key file is given relative to the build location. You will need to confirm that the path is correct for your project configuration
    ...
    The location of the KeyFile should be relative to the project output directory, which is %Project Directory%\obj\<configuration>. For example, if your KeyFile is located in the project directory, you would specify the AssemblyKeyFile attribute as 
    [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]see
    http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconGlobalAttributes.asp?frame=true