dont found package at Visual studio - package

when I am building universal app ,this problem is occured by visual studio 2015. How can I solve ?
System.Exception
Windows cannot install package 70733c38-2ce9-4c3f-93bb-b44ef99de628 because this package depends on another package that could not be found. This package requires minimum version 14.0.23019.0 of framework Microsoft.VCLibs.140.00.Debug published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install. Provide the framework along with this package.
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

Create a new fresh universal windows app and install it
It will fix issue with your app.

Related

PostgreSQL connection issue from LLBLGen via Npgsql

We are trying to configure connection to PostgreSQL database (version 9.4.9) in LLBLGen Pro v 5.9.2 but we have following error:
Exception information.
LLBLGen Pro version: v5.9. Build: 5.9.2
Exception details:
Message: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Source: Npgsql Stack trace: at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.g__OpenLong|0() at Npgsql.NpgsqlConnection.Open(Boolean async, CancellationToken cancellationToken) at Npgsql.NpgsqlConnection.Open() at SD.LLBLGen.Pro.Gui.Controls.WizardPages.MetaDataRetrievalWizard_Step_ConnectionData.TestConnectionData(Boolean showSuccess)
Inner exception:
stack trace: LLBLGen Pro version 5.9. Build 5.9.2 -----[Core exception]-------------------- at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.g__OpenLong|0() at Npgsql.NpgsqlConnection.Open(Boolean async, CancellationToken cancellationToken) at Npgsql.NpgsqlConnection.Open() at SD.LLBLGen.Pro.Gui.Controls.WizardPages.MetaDataRetrievalWizard_Step_ConnectionData.TestConnectionData(Boolean showSuccess)
Please advise.
Many thanks.

TFS Build: System.IO.FileNotFoundException: Could not find file

We have an issue, where developers were Renaming and Deleting files in our Visual Studio SSIS project. Received this error:
System.IO.FileNotFoundException: Could not find file '..SSISPackage.dtsx'
2019-02-07T02:29:05.5297338Z at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2019-02-07T02:29:05.5297338Z at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2019-02-07T02:29:05.5297338Z at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Design.Project.IDEProjectStorage.LoadStream(String streamName)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.Project.LoadStreamToEnd(IProjectStorage storage, String streamName)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.Project.LoadPackage(IProjectStorage storage, Package package, String streamName, IDTSEvents events)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.PackageItem.Load(IDTSEvents events)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.PackageItem.get_Package()
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)
We went to Visual Studio and Cleaning Solution. --> Clean files and Rebuild Solution. We tried this several times but did not work, so I Closed and Restarted Visual Studio on my desktop and for several developers. The problems and errors went away.
Now we have same issue on TFS 2015 Server. I tried to Clean solution and also Delete the Workspace files in TFS task. It does not work. What is the equivalent of 'Restarting' this on TFS, or how do I clear the memory cache? Our last option is to restart the server, has to be better way.
Create a template empty fake file to replace the missing file and complete your check-in. After the file is checked in, it should build correctly. Then delete the file not required.

Windows Azure Error - Could not load file or assembly MFCMIFC80

I have created an Angular/WebAPI/MongoDb project and using StructureMap for dependency injection and I have it published to a private BitBucket account.
I have create an Azure Webapp and set it up to auto deploy whenever I commit a change to my BitBucket repo.
When I run it locally (from Visual Studio) my main page is:
http://localhost:37071/index.html#/
It makes API calls to http://localhost:37071/api/stock?stkSymbol=ORCL successfully.
However, when it is deployed, my page loads successfully at: http://myAzureProject.azurewebsites.net/index.html#/
However, all API calls to: http://myAzureProject.azurewebsites.net/api/stock?stkSymbol=ORCL
Fail with this error message:
Server Error in '/' Application.
Could not load file or assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
System.Reflection.RuntimeAssembly.GetExportedTypes() +21
StructureMap.Graph.TypePool.<.ctor>b__0(Assembly assembly) +10
StructureMap.Util.LightweightCache`2.get_Item(TKey key) +65
StructureMap.Graph.<>c__DisplayClass3.<For>b__2(Assembly x) +37
System.Linq.<SelectManyIterator>d__14`2.MoveNext() +232
StructureMap.StringExtensions.Each(IEnumerable`1 enumerable, Action`1 action) +140
StructureMap.Graph.AssemblyScanner.ScanForTypes(TypePool types, PluginGraph pluginGraph) +128
StructureMap.<>c__DisplayClass2.<RunConfigurations>b__1(AssemblyScanner x) +21
StructureMap.StringExtensions.Each(IEnumerable`1 enumerable, Action`1 action) +131
StructureMap.PluginGraphBuilder.RunConfigurations() +143
StructureMap.PluginGraphBuilder.Build() +13
StructureMap.PipelineGraph.For(Action`1 action) +49
myAzureProject.DependencyResolution.IoC.Initialize() +82
myAzureProject.App_Start.StructuremapMvc.Start() +10
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +192
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155
WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +57
WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +350
WebActivatorEx.ActivationManager.Run() +78
[InvalidOperationException: The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +547
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521
[HttpException (0x80004005): The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930568
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36215
I'm not familiar with what MFCMIFC80 is or what I need to do in order to be able to get it deployed to my Azure web app.
Any help would be appreciated.
Thanks!
MFCMIFC80.dll is an MFC library (https://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library). It most probably is a requirement for your MongoDB drivers. As I do not recall any dependency on MFC for regular Web API als using AngularJS.
You cannot deploy MFC on Azure Web Apps (former Web Sites).
Look for alternative MongoDB drivers which do not have dependencies on MFC.
Another reason for this error could be that in your project you refernece .NET 2.0 assemblies, while your main project targets .NET 4.0. Which may be the case with the MongoDB driver indeed (it may be only compiled against .NET 2.0 and it would cause the issues).
So go through all of your referneces (incl. StructureMap and MongoDB drivers) to make sure that all your refenreced assemblies are targetinng .NET 4.0 and not .NET 2.0.
Note that although .NET 4.0 actually runs in the .NET 2.0 Runtime environment, there still might be issues when referencing .NET 2.0 assemblies from a .NET 4.0 targeted project.
Finally figured it out. In my solution, I have one line to tell structuremap to scan for assemblies from path.
scan.AssembliesFromPath(Environment.CurrentDirectory);
Removing this line resolves the issue.

Postgres entity framework 6 code first issue

Ok, here are the exact steps I followed:
Installed postgres 9.3 locally, created database 'testdb', added login role with uname/pass test
Installed Setup_Npgsql-2.2.3.0-r2-net45.exe from here
Created a new class library (PGTest) in vs 2012, installed "npgsql for entity framework" from nuget package manager
Modified app.config to match this
Added Models folder, added two files: DataContext.cs and Region.cs
In package manager console ran "enable-migrations", "add-migration Initial", "update-database -script"
Got the following error
PM> update-database -script
Applying explicit migrations: [201501282207413_Initial].
Applying explicit migration: 201501282207413_Initial.
System.Runtime.InteropServices.COMException (0x8004000C): User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))
Server stack trace:
at EnvDTE.ItemOperations.OpenFile(String FileName, String ViewKind)
at System.Data.Entity.Migrations.Utilities.DomainDispatcher.OpenFile(String fileName)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.Data.Entity.Migrations.Utilities.DomainDispatcher.OpenFile(String fileName)
at System.Data.Entity.Migrations.Extensions.ProjectExtensions.NewSqlFile(Project project, String contents)
at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))
In visual studio, going to SQL menu, Transact-SQL Editor, New Query... It gives you a dialog about the tools not working with the server installed. Installing SQL Server Data Tools - December 2012 update (http://msdn.microsoft.com/en-us/jj650015) fixed the problem.
The dialog should provide you a link to the SQL Server Data Tools.

Razor Host installation error in dotnetnuke

I upgraded my IIS to .NET v4.0 successfully but on installing Razor Host, It shows the error like
*Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Access to the path 'C:\inetpub\wwwroot\dotnetnuke\Install\Temp\ajynte0h' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\dotnetnuke\Install\Temp\ajynte0h' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) at System.IO.DirectoryInfo.Create() at DotNetNuke.Services.Installer.Util.WriteStream(Stream sourceStream, String destFileName) at DotNetNuke.Services.Installer.InstallFile.ReadZip(ZipInputStream unzip, ZipEntry entry) at DotNetNuke.Services.Installer.InstallerInfo.ReadZipStream(Stream inputStream, Boolean isEmbeddedZip) at DotNetNuke.Services.Installer.InstallerInfo..ctor(Stream inputStream, String sitePath) at DotNetNuke.Services.Installer.Installer..ctor(Stream inputStream, String physicalSitePath, Boolean loadManifest, Boolean deleteTemp) at DotNetNuke.Modules.Admin.Extensions.Install.LoadPackage(String package) at DotNetNuke.Modules.Admin.Extensions.Install.Initialize() at DotNetNuke.Modules.A*dmin.Extensions.Install.OnLoad(EventArgs e) --- End of inner exception stack trace ---
help me to solve this error?????
How did you udpgrade to 4.0? Did you change the app pool? or did you change the framework for the app pool, and kept the identity the same? If the first: Have you checked that you app identity has sufficient rights on the application?
If the second: Try to re-install the razor module.

Resources