I have created the Windows Phone app using the default Blank App template in Visual Studio 2013 Ultimate (Update 4). The design surface is crashing with the following error.
I have more than 4GB free memory on PC. I can run the app inside emulator but unable to use the design surface inside visual studio.
Can anyone help me with fixing this?
---Error----
An Unhandled Exception has occurred.
Click here to reload the designer
Details:
System.Exception
Package could not be registered.
error 0x80070002: Windows cannot register the package because of an internal error or low memory.
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, FrameworkName targetFramework, String identifier, String baseDirectory)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Regards,
Jeevan
Resetting windows store cache might be worth trying as explained at http://answers.microsoft.com/en-us/windows/forum/windows8_1-windows_store/windows-81-apps-install-failure-with-error-code/ee1ef24e-5e3d-494c-88c9-c3e66845b53e
Other option if possible would be to create a new user account:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/94a86a71-3eb2-48bb-be91-9540bf1082e9/error-0x80070002-while-loading-mainpage-desinger?forum=wpdevelop
Related
I've never dealt with ActiveX controls but I wanted to add one to an an existing MFC project using VS2019. I created a dialog in the resource editor, I added the ActiveX control I wanted to play with (RDP - tried different versions), resized it. Then closed the tab, when I try to open that dialog in the resource editor I get:
---------------------------
Microsoft Visual Studio
---------------------------
The ActiveX control "Microsoft RDP Client Control (redistributable) - version 11" could not be instantiated.
---------------------------
OK
---------------------------
What's wrong and how do I fix it?
Also, what is the difference between the ones that say (redistributable) vs the ones that don't have that?
TIA!!
P.S. After that error above, if I try to open again I get:
An error occurred while initializing the frame's content
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowPaneDocumentObject.Init(Boolean initSize)
at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.InitializeDocumentObject(Object punkView)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.InitializeDocumentSite(Boolean creatingStubFrame, Boolean replacingStubView, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(FrameMoniker frameMoniker, Boolean isDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid, Guid rguidCmdUI, ViewGroup parent, IVsWindowFrame& ppWindowFrame)
File Path: Path\To\Resource.rc
Frame GUID: 177559e0-d141-11d0-92df-00a0c9138c45
Frame mode: VSFM_Float
Error Code: 0x80004005
This will be fixed in KB900411
So that error started appearing for no apparent reason.
I looked at these two similar threads with no avail:
The “XamlCTask” task failed unexpectedly in Xamarin
The “XamlCTask” task failed unexpectedly on visual studio for xamarin
My issue seems to be related specifically to the "Tapped" event. I remove all tapped references and the app compiles.
Here are the errors in order:
Severity Code Description Project File Line Suppression State
Error Position 29:44. No property, bindable property, or event found for 'Tapped'
MeetnGreet C:\Users\chris\documents\visual studio 2015\Projects\MeetnGreet\MeetnGreet\MeetnGreet\MeetnGreet.MainPage.xaml 29
Then I do a clean, build and attempt to run....
Severity Code Description Project File Line Suppression State
Error The "XamlCTask" task failed unexpectedly.
System.ArgumentException: An item with the same key has already been added.
Server stack trace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
at Mono.Cecil.Pdb.PdbReader.PopulateFunctions()
at Mono.Cecil.Pdb.PdbReader.ProcessDebugHeader(ImageDebugDirectory directory, Byte[] header)
at Mono.Cecil.ModuleDefinition.ProcessDebugHeader()
at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters)
at Mono.Cecil.ModuleReader.CreateModuleFrom(Image image, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Xamarin.Forms.Build.Tasks.XamlCTask.Compile(IList1 thrownExceptions)
at Xamarin.Forms.Build.Tasks.XamlCTask.Execute()
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 Microsoft.Build.Framework.ITask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() MeetnGreet
Along with error....
Severity Code Description Project File Line Suppression State
Error Position 29:44. No property, bindable property, or event found for 'Tapped'
MeetnGreet C:\Users\chris\documents\visual studio 2015\Projects\MeetnGreet\MeetnGreet\MeetnGreet\MeetnGreet.MainPage.xaml 29
Severity Code Description Project File Line Suppression State
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'MeetnGreet, Version=0.0.0.0, Culture=neutral, PublicKeyToken='.
Perhaps it doesn't exist in the Mono for Android profile?
File name: 'MeetnGreet.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection1 jars, ICollection1 resolvedResourceDirectories, ICollection1 resolvedAssetDirectories, ICollection1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() MeetnGreet.Android
I think all this translates to is that my forms package is corrupt. However, I am not exactly sure how to go through a clean repair or reinstall using nuget. I have never had to do it before.
Here is what the packages folder for the project looks like for ref. (because of the discussion on the other thread)
Also, disabling the compiler didn't fix the issue (ref the other threads possible solutions)
Any help would be appreciated.
Let me preface this by saying I have only been working with Xamarin for 2 weeks and am still working through some tutorials. That being said, this error is all my fault.
What happened was, I had been using a table view in my working examples and decided to see how grids worked. So I "converted" the tableview cells to entrycells to entry, textcells to labels surrounded by stacked views, etc...
I made an assumption that the Tapped event was everywhere so I never stopped to check if it was available in a stackview for example. I was just moving things around and the intellisense wasn't throwing up any warnings so I assumed everything was ok.
Hence the compiler crash and now the second error of no property makes complete sense now by itself and was not a result of the compiler crashing which is what I had originally thought.
Sorry for sending up a false flag. Seemed like a much larger issue that it was.
The xaml visual designer crashes for all WIN10 UWP projects, including ones created from the standard template with no code added. I don't know when it started because I thought it was a problem with my project until I tried creating some new ones. The error is given below and in the screen shot at the bottom.
System.Runtime.InteropServices.COMException
The app didn't start. (Exception from HRESULT: 0x8027025B)
at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.AppPackageNativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId, String activationContext, ActivateOptions options, Int32& processId)
at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.DesignerWrtUtility.ActivateApplication(String appUserModelId, String activationContext, Object site, Boolean isRunningElevated)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.ActivateApplicationInternal(String appUserModelId, String activationContext, Object site)
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.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.<StartTask>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
I have tried the following:
Running as administrator
Disabling Project Code
Clearing the \Designer\ShadowCache folder
Adding read permissions to the HKEY_CLASSES_ROOT for All Application Packagesas well as C:\Windows.
Running the visual studio repair.
I am not using TrueCrypt (people with similar issues were)
I have tried changing the platform target to ARM, x64 and x86 (rebuilding and reloading after each)
None of these have fixed the issue. I get the same error in blend. Any ideas?
A reinstall of the latest Windows 10 SDK should fix this problem. This can be gathered from Microsoft I've had many issues like this in the past. Certain versions tend to be buggy.
I am Experiencing the following error with:
- Visual Studio 2013 Ultimate Update 1 (Same with Update 3)
- Windows 10 TP Build 9860
- Windows Store Apps Only (No error with a WPF Desktop Application).
Error Decription:
- UI XAML Designer doesn't work (see attached exception)
- Intellisense in the XAML file doesn't work (no suggestion showed up).
System.Exception
Install failed. Please contact your software vendor.
Deployment Register operation with target volume C: on Package App.aa5630c6a.a99c1.a41a2.aaba0.ac20dd792d3d9_1.0.0.0_x86_NorthAmerica_8wekyb3d8bbwe from: (C:\Users\Diego\AppData\Local\Microsoft\VisualStudio\12.0\Designer\ShadowCache\hwvetbdr.ucs\pfhjajzj.4bs\AppXManifest.xml) failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, FrameworkName targetFramework, String identifier, String baseDirectory)
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Uninstalling and re-installing didn't fix it.
Has anyone experienced it ?
Edit:
Also property tab is blank for every XAML Control
Windows 10 is currently a technical preview and is not meant for you to develop up on, you need o wait for the Windows 10 Developer Preview so that you can start coding on Windows 10 (which will probably come out near the BUILD 2015 event in my opinion).
As they say here: http://technet.microsoft.com/en-US/windows/dn798751.aspx?ocid=wc-mscom-wol
"Windows 10 Technical Preview for Enterprise is an early look at some of the features and functionality in store for Windows 10, the next version of the Windows client operating system. This page offers resources to help you explore Technical Preview for Enterprise, assess the compatibility of your applications, and test the new in-place upgrade process."
From what i understand from this, it is mainly for you to test your apps and company apps on the OS to see if your company will be able to migrate on this or not and not for your to start coding.
Good Luck!
EDIT:
Went you look at the TechNet forum: https://social.technet.microsoft.com/Forums/en-US/home?category=WinPreview2014
you can see that they are mainly looking a bugs with the OS and not about how to develop apps.
I have one web application made using MVC3 Razor.
Application starts properly in browser but after put some values in text box & click on search button I get error as
"The given key was not present in the dictionary".
This happens only in Windows server 2008 R2. In other Os like windows 7, Windows server 2008 sp1 it works fine.
Below is the Stack Trace
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12686831
CVR_Prototype.Controllers.HomeController.CvrDetailsCompleted() +171
lambda_method(Closure , ControllerBase , Object[] ) +79
System.Web.Mvc.Async.<>c__DisplayClass7.<BeginExecute>b__5(IAsyncResult asyncResult) +288
System.Web.Mvc.Async.<>c__DisplayClass41.<BeginInvokeAsynchronousActionMethod>b__40(IAsyncResult asyncResult) +22
System.Web.Mvc.Async.<>c__DisplayClass3b.<BeginInvokeActionMethodWithFilters>b__35() +129
System.Web.Mvc.Async.<>c__DisplayClass51.<InvokeActionMethodFilterAsynchronously>b__4b() +810887
System.Web.Mvc.Async.<>c__DisplayClass51.<InvokeActionMethodFilterAsynchronously>b__4b() +810887
System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__38(IAsyncResult asyncResult) +15
System.Web.Mvc.Async.<>c__DisplayClass2c.<BeginInvokeAction>b__22() +33
System.Web.Mvc.Async.<>c__DisplayClass27.<BeginInvokeAction>b__24(IAsyncResult asyncResult) +811468
System.Web.Mvc.<>c__DisplayClass19.<BeginExecuteCore>b__14(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +20
System.Web.Mvc.AsyncController.EndExecuteCore(IAsyncResult asyncResult) +67
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +20
System.Web.Mvc.AsyncController.EndExecute(IAsyncResult asyncResult) +53
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__4(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +20
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +54
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +136
Source : http://shahvaibhav.com/solving-the-given-key-was-not-present-in-the-dictionary-error-of-visual-studio-2010/
While developing mvc3 razor application I came across one strange error “The given key was not present in the dictionary”.
After searching in google for hours I found the solution for this error.
Actually this error means that “This typically means that you’ve installed a custom data provider, created a Server Explorer connection using that provider, and then uninstalled the provider without deleting the Server Explorer entry”
To solve this error 1st thing you have to do is close all visual studio instances.
Now go to your user AppData directory (e.g. C:\Users\Administrator\AppData)
(Notice: AppData may not be shown in windows explorer if you have “Show hidden files and folders” turned off)
n AppData go to Roaming > Microsoft > Visual Studio > 10.0 > ServerExplorer
There you will find file named DefaultView.SEView. This files stores all connections.
This is a plain XML file, so in theory, you can locate the dud connection by its Label and just remove the containing DataViewNode XML element. In practice, I didn’t have much luck with this – the file stores blobs against connections by index, so deleting individual items can throw those indexes off. But if you’ve got a lot of connections defined and you don’t want to have to recreate them, it’s probably worth giving this a try in case you get luckier than I did.
Otherwise, just delete the DefaultView.SEView file.
Now restart visual studio & its done . Now you are free from that bad error.