VS2012中的Javascript运行时错误

时间:2013-08-29 09:10:41

标签: javascript visual-c++ visual-studio-2012 windows-8 windows-runtime

我遇到了编译使用visual studio 2012 windows运行时组件项目创建的Windows 8应用程序的问题。我正在使用html 5,javascript和c ++来开发这个应用程序。但是当我编译项目时,我收到的错误是JavaScript运行时错误:DLL中的错误。

我不知道如何解决这个问题,当我构建这个项目时,我收到如下错误: -

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

请问如何解决这个问题?谢谢。

0 个答案:

没有答案
相关问题