系统重装和vs2005后,原来的项目不能运行?
编译好的exe文件可运行,但是就是不能.net直接运行。不知道是什么原因。
下面是错误提示:
Error 1 The "ResolveKeySource" task failed unexpectedly.
System.Security.Cryptography.CryptographicException: Cannot find the requested object. at System.Security.Cryptography.X509Certificates.X509Certificate2.QueryCertFileType(String fileName)
at System.Security.Cryptography.X509Certificates.X509Certificate2.GetCertContentType(String fileName)
at Microsoft.Build.Tasks.ResolveKeySource.ResolveManifestKey()
at Microsoft.Build.Tasks.ResolveKeySource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) Shell(项目名称)
编译好的exe文件可运行,但是就是不能.net直接运行。不知道是什么原因。
下面是错误提示:
Error 1 The "ResolveKeySource" task failed unexpectedly.
System.Security.Cryptography.CryptographicException: Cannot find the requested object. at System.Security.Cryptography.X509Certificates.X509Certificate2.QueryCertFileType(String fileName)
at System.Security.Cryptography.X509Certificates.X509Certificate2.GetCertContentType(String fileName)
at Microsoft.Build.Tasks.ResolveKeySource.ResolveManifestKey()
at Microsoft.Build.Tasks.ResolveKeySource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) Shell(项目名称)
有过经验的海清不吝赐教!
是所有的工程都不好用,还是个别的?
用.net运行的时候还没有到检测dll时就报错了。
难道是xml的事?
就没有用到什么外部控件。只是用了几个dll而且也都注册了。
否则exe文件也不可用。
[align=center]------ Build started: Project: Shell-Application, Configuration: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: The "ResolveKeySource" task failed unexpectedly.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: System.Security.Cryptography.CryptographicException: Cannot find the requested object.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: at System.Security.Cryptography.X509Certificates.X509Certificate2.QueryCertFileType(String fileName)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: at System.Security.Cryptography.X509Certificates.X509Certificate2.GetCertContentType(String fileName)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: at Microsoft.Build.Tasks.ResolveKeySource.ResolveManifestKey()
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: at Microsoft.Build.Tasks.ResolveKeySource.Execute()
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1718,7): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
Done building project "Shell_Application.csproj" -- FAILED.[/align]