none
Getting System.EntryPointNotFoundException: Unable to find an entry point named 'GetCurrentPackageId' in DLL 'kernel32.dll' RRS feed

  • Question

  • Hi,

    I started getting this exception: System.EntryPointNotFoundException: Unable to find an entry point named 'GetCurrentPackageId' in DLL 'kernel32.dll' 

    after installing .Net 4.5 and VS 2012 when running my .Net 4 application in release mode or from an EXE. but it still run correctly from debug mode (at VS 2010 and VS 2012) !!!

    What is wrong?

    The full stack trace is:

    System.EntryPointNotFoundException: Unable to find an entry point named 'GetCurrentPackageId' in DLL 'kernel32.dll'.
       at Microsoft.Win32.UnsafeNativeMethods._GetCurrentPackageId(Int32& pBufferLength, Byte[] pBuffer)
       at Microsoft.Win32.UnsafeNativeMethods._IsPackagedProcess()
       at Microsoft.Win32.UnsafeNativeMethods.<.cctor>b__0()
       at System.Lazy`1.CreateValue()
       at System.Lazy`1.LazyInitValue()
       at System.Lazy`1.get_Value()
       at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)

    ...

    • Moved by Barry Wang Monday, November 5, 2012 6:30 AM CLR related (From:Visual Studio Setup and Installation)
    Thursday, November 1, 2012 11:34 AM

Answers

All replies