2

I have an error from the certification test and I can't seem to resolve it. Errors found are:

• This API is not supported for this application type - Api=System.Security.Cryptography.Aes. Module=MSCORLIB. File=System.Core.dll.

• This API is not supported for this application type - Api=System.Security.Cryptography.ICryptoTransform. Module=MSCORLIB. File=System.Core.dll.

• This API is not supported for this application type - Api=System.Security.Cryptography.Aes.#ctor. Module=MSCORLIB. File=System.Core.dll.

• This API is not supported for this application type - Api=System.SystemException. Module=MSCORLIB. File=System.dll.

• This API is not supported for this application type - Api=System.SystemException.#ctor. Module=MSCORLIB. File=System.dll.

• This API is not supported for this application type - Api=System.SystemException. Module=MSCORLIB. File=System.Xml.dll.

• This API is not supported for this application type - Api=System.SystemException.#ctor. Module=MSCORLIB. File=System.Xml.dll.

The mscorlib module is part of the Windows Phone 8.1 framework. The project is for Windows Phone 8.1 RT, a universal app.

What I have tried to resolve the issue is starting a new project to refresh the references, but it didn't do anything. I've tried adding and removing libraries, but it didn't do anything. I've tried removing the assembly, but I can't seem to.

How do I resolve this error?

1 Answer 1

1

Windows/Windows Phone RT project only support a subset of .net APIs. You can get a full support list from this MSDN article.

The assembly is needed, don't try to move it. But for Windows/Windows Phone RT project, System.Security.Cryptography.Aes is not supported for this projct type.

I guess you may try to migrate from a silverlight app to Runtime app. Because the System.Security.Cryptography.Aes is supported in Silverlight app. This MSDN article is for avaliable .net APIs for Windows Phone silverlight app.

So please find out where you used it and remove it. Then try to implement the functions using the class CryptographicEngine in namespace Windows.Security.Cryptography.Core in the Windows API subset.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the help. I've made a new project, introduced the packages and assemblies needed one by one and found the faulty one. It was an assembly no longer used that came with a previous port from Silverlight to Runtime. WACK doesn't give me any problems now.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.