I had DXGI_ERROR_INVALID_CALL error on packaged project. Go %LocalAppData% and empty delete your game folder