Windows Mobile 2005 App Fails to Compile

V

Vlad#

Hi,

I wanted to try out some development for the Windows CE 5.0 platform so
downloaded the SmartPhone SDK from Microsoft and started up a new
project with a blank form. This is virtually a blank project, I will
want to do some networking when I get the program to compile though. I
am using Visual Studio 2005 RTM (Target is set to Windows Mobile 5.0
SmartPhone Emulator)

The build error I get is this:

Warning 1 An internal error occurred in PlatformVerificationTask.
System.TypeInitializationException: The type initializer for
'Microsoft.CompactFramework.Build.Compiler.CoreSystemTypes' threw an
exception. ---> System.TypeInitializationException: The type
initializer for
'Microsoft.CompactFramework.Build.Compiler.AssemblyReference' threw an
exception. ---> System.InvalidOperationException: This implementation
is not part of the Windows Platform FIPS validated cryptographic
algorithms.
at System.Security.Cryptography.SHA1Managed..ctor()
at
Microsoft.CompactFramework.Build.Compiler.AssemblyReference..cctor()
--- End of inner exception stack trace ---
at
Microsoft.CompactFramework.Build.Compiler.AssemblyReference..ctor(String
assemblyStrongName)
at
Microsoft.CompactFramework.Build.Compiler.TargetPlatform.SetToV2(String
platformAssembliesLocation)
at
Microsoft.CompactFramework.Build.Compiler.TargetPlatform.SetupAssemblyReferenceFor()
at
Microsoft.CompactFramework.Build.Compiler.CoreSystemTypes.Initialize(Boolean
doNotLockFile, Boolean getDebugInfo)
at
Microsoft.CompactFramework.Build.Compiler.CoreSystemTypes..cctor()
--- End of inner exception stack trace ---
at
Microsoft.CompactFramework.Build.Compiler.AssemblyNode.GetAssembly(String
location, IDictionary cache, Boolean doNotLockFile, Boolean
getDebugInfo, Boolean useGlobalCache, Boolean preserveShortBranches)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationTask.Execute() C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.targets TestingP2PNetMobile
Error 2 The "PlatformVerificationTask" task failed unexpectedly.
System.TypeInitializationException: The type initializer for
'Microsoft.CompactFramework.Build.Compiler.SystemTypes' threw an
exception. ---> System.TypeInitializationException: The type
initializer for
'Microsoft.CompactFramework.Build.Compiler.CoreSystemTypes' threw an
exception. ---> System.TypeInitializationException: The type
initializer for
'Microsoft.CompactFramework.Build.Compiler.AssemblyReference' threw an
exception. ---> System.InvalidOperationException: This implementation
is not part of the Windows Platform FIPS validated cryptographic
algorithms.
at System.Security.Cryptography.SHA1Managed..ctor()
at
Microsoft.CompactFramework.Build.Compiler.AssemblyReference..cctor()
--- End of inner exception stack trace ---
at
Microsoft.CompactFramework.Build.Compiler.AssemblyReference..ctor(String
assemblyStrongName)
at
Microsoft.CompactFramework.Build.Compiler.TargetPlatform.SetToV2(String
platformAssembliesLocation)
at
Microsoft.CompactFramework.Build.Compiler.TargetPlatform.SetupAssemblyReferenceFor()
at
Microsoft.CompactFramework.Build.Compiler.CoreSystemTypes.Initialize(Boolean
doNotLockFile, Boolean getDebugInfo)
at
Microsoft.CompactFramework.Build.Compiler.CoreSystemTypes..cctor()
--- End of inner exception stack trace ---
at
Microsoft.CompactFramework.Build.Compiler.SystemTypes.Initialize(Boolean
doNotLockFile, Boolean getDebugInfo)
at Microsoft.CompactFramework.Build.Compiler.SystemTypes..cctor()
--- End of inner exception stack trace ---
at Microsoft.CompactFramework.Build.Compiler.SystemTypes.Clear()
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationTask.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
taskClassWasFound) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.targets 93 9 TestingP2PNetMobile


Thanks for the help guys,
Vlad# (VladSharp)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top