错误1已授予对“SqlAccess, PublicKey=0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8”的友元访问,但输出程序集http://u.huoban001.com/space.php的名称为“sqlaccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”。请尝试添加对“SqlAccess, PublicKey=0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8”的引用,或者更改输出程序集的名称以使其匹配。这个是什么错误?C#的,其中SqlAccess是一个类库的名称。
解决办法如下:
程序集出错Assembly 可能是多个名字空间有SqlAccess 类, 如SqlAccess是自定义类,建议换个名字
命名空间或类名不能用SQLAccess