Javascript Runtime Error in VS2012

1

I face a problem to compile windows 8 application which is create using visual studio 2012 windows runtime component project. I'm using html 5 , javascript and c++ to develop this application. But when I compile the project I'm getting error which is JavaScript runtime error: Error in the DLL.

I don't know how to fixed this problem and when i build this project I'm getting error like below:-

Error   40  Loading assembly "D:\workspace\Test\apps\Test\windows8\native\Debug\WindowsRuntimeComponent1\WindowsRuntimeComponent1.dll" failed. System.IO.FileLoadException: Could not load file or assembly 'WindowsRuntimeComponent1.dll' or one of its dependencies. This operation is only valid in the context of an application container. (Exception from HRESULT: 0x8007109A)
File name: 'WindowsRuntimeComponent1.dll'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.UnsafeLoadFrom(String assemblyFile)
   at Microsoft.Build.Tasks.ProcessResourceFiles.ReadAssemblyResources(String name)
    C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets 383 9   Test

May I ask how to solve this problem? Thank you.

javascript
visual-c++
visual-studio-2012
windows-8
windows-runtime
asked on Stack Overflow Aug 29, 2013 by tontontv

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0