Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

Problem with designer in VS 2013 and 2015

$
0
0

Hello,

I have an issue with Designer in Visual Studio 2013 and 2015 (see below) . It can't load the xaml for the Windows Phone Store project... I tried  to add some rights in regedit, remove all temporary files and so on ... but I have always the issue.

If somebody has a solution, he is welcome.   

Didier

--------------------------------->

System.Runtime.InteropServices.COMException
L’application n’a pas démarré. (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.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()


HelpViewer broken for TFS API?

$
0
0

I'm installing a new machine, and I slapped Visual Studio 2015 (and a few more versions of VS on it). Then I selected Help, ask for local content, and made my selections to download. That included Application Lifecycle Management. When the download was completed, I looked around in the contents to find the reference for the TFS VersionControl classes that I have occasionally have need to consult.

When I did not find them, I looked up one of the classes, VersionControlServer, in the index, and indeed it was there. Now I selected "Sync with contents" from the toolbar. Whereupon the cursor went to the top node! That is, it seems that the contents is there, but it is not in the table of contents. And for a class reference, that is almost the same as the contents is not there.

When I think of it, I think I've seen this on my machine at work where I have VS 2013.

Anyone who has any tips to fix this?


Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

WCF vs ASP web api

$
0
0

Hi,

 

I try to make an application for our company to keep track of working schedules.

The front end I like to make with WPF and the backend I thought to make in a WCF application to keep the back end accessible via the internet.

Both technologies I am slightly familiar with.

During my quest to find out how to secure the WCF backend, I noticed that there is a new project type in Visual studio called ASP WEB API that has all the security things build in, and that has about the same functionality as WCF.

Before spending time to study another technology I like to know some things:

1: I need to put quite some business logic in the back end. What technology is better suitable for this WCF or ASP WEB API?

2: If in a later stage I like to extend my application for use on Mobile phone or iPad which is better?

3: Is the combination WPF - ASP WEB API just as easy to use as WPF – WCF?

4: As I said, I am slightly familiar with WCF. Is ASP WEB API easier to master that WCF?

Thank for your response.

Regard


Rob

Visual Studio Crashes on opening Data Sources window

$
0
0

I have this very weird problem

When I select my project in the solutions explorer and i then open up the data sources and i can see all my data sources

When i then open up any form the datasources list goes away and my visual studio crashes

the error in the event viewer is the following

Faulting application name: devenv.exe, version: 14.0.24720.0, time stamp: 0x564ea97e
Faulting module name: clr.dll, version: 4.6.1055.0, time stamp: 0x563c0f73
Exception code: 0xc00000fd
Fault offset: 0x00014264
Faulting process ID: 0x30b0
Faulting application start time: 0x01d131b730eae76f
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report ID: 7753c615-440d-4af9-a873-394282ee82ed
Faulting package full name:
Faulting package-relative application ID:

Problem with Starting Mobile Emulators in VS 2015

$
0
0

I'm still having a problem with starting phone emulators in VS2015. They were seemingly working fine at one point, but after several days of not using emulators, I went back to trying to use one and now get the following errors when attempting to run several of the universal window examples from Microsoft:

Severity Code Description Project File Line
Error  Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device 'A6BAF594-9315-40C3-AD16-F5B8A425A7AB'.':
SystemException - A method was called on an uninitialized object. DataReaderWriter.WindowsPhone  

Severity Code Description Project File Line
Error  Error : DEP6200 : Bootstrapping 'Emulator 8.1 WVGA 4 inch 512MB' failed. Device cannot be found. DataReaderWriter.WindowsPhone  

I also get an "Attempting to modify switch settings" warning message before the emulator fails to load.

Does anyone have any idea what is going on here?

Thanks.


Steve Hunt

Visual Studio 2015 - Unable to run apps on Mobile Emulator - Error DEP6100 during deployment

$
0
0

Hi Everybody,

I'm using Visual Studio 2015 Professional Version 14.0.24720.00 Update 1

The OS is Microsoft Windows 10 Professional Version 10.0.10240

I've created a basic Universal Windows application "Hello World".

This is working fine on local host, but when I'm trying to run this application on Mobile Emulator 10.0.10586.0 WVGA 4inch 512 M I'm getting theses errors :

"

Erreur        Erreur : DEP6100 : L'erreur inattendue suivante s'est produite durant l'étape d'amorçage 'Connexion à l'appareil '98CD6FA8-9114-4179-ACA3-38E5D23C77EE'.' :
DeviceException - Les données nécessaires pour terminer cette opération ne sont pas encore disponibles.    HelloWorld            
Erreur        Erreur : DEP6200 : L'amorçage de 'Mobile Emulator 10.0.10586.0 WVGA 4 inch 512MB' a échoué. L'appareil est introuvable. Les données nécessaires pour terminer cette opération ne sont pas encore disponibles.   HelloWorld            
"

Note that, emultor is displayed.

Does someone can help me.

Thanks in advance

Dimitri



How do I force my VB app to use SQL Server 2014?

$
0
0

Hi 

I have updated a simple VB app using Visual Studio 2013 Express.  This app was working fine but has suddenly stopped.  It now gives me this error: "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll. The database 'Q:\DATA\GOQMCDB.MDF' cannot be opened because it is version 782. This server supports version 655 and earlier. A downgrade path is not supported. Cannot open user default database. Login failed.  Login failed for user 'Janine-TOSH\Janine'."

My connection string for the database is:  Data Source=.\SQLEXPRESS;AttachDbFilename=Q:\Data\GOQMCdB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True

I am running on Windows 10.

It looks like the database is SQL Server 2014 but my app is using 2008 SQL server.  

How can I get my app to use SQL Server 2014?  

Thanks for your help.  This is exasperating. I have googled this error for solutions but so far nothing I have tried has helped.

Janine 

P.s. I have tried uninstalling all the latest Windows updates in case that caused the issue.

P.P.S When I developed this app I did not have SQL Server 2008 installed on my PC!   I only have SQl Server 2014.  The original app was written in the days of SQL Server 2008 but I have been tweaking it without issue up to now.





Designer for XAML file cannot be opened in 2015.

$
0
0

We moved a project (WPF) from 2013 to 2015. I see that all the XAML files crashes when double clicked to open in the designer. Even a new file created also crashes. 

SystemNullReference exception at

   at Microsoft.VisualStudio.DesignTools.Platform.Utility.DocumentContext.CreateNode(ITypeId typeId)

I'm not seeing crash if I create a new project and open a XAML file. 



Can't see items in XAML Designer - dark theme (Visual Studio 2015)

$
0
0

hi,

I cannot see items (like user controls) in Visual Studio 2015 on the XAML Designer.  See attached image :

XAML Designer - can't see the User Controls

What can I do to get a white background on the canvas ? I love the dark theme (or Son Of Obsidian ) but the bright theme doesn't provide a bright canvas either and I still can't see users controls either.

What can I do to get items visible like this :

someone got this working with an order version of visual studio

I tried changing the color in Visual Studio -> Tools -> Options -> Fonts and Colors -> XAML Designer -> Artboard Background -> To same color (bright) foreground and background but it didn't work and I only got a checkerbox effect - worse and nothing visible 

Please help !!

Visual Studio Error when opening project nuget manager

$
0
0

Hi

I encounter the following error message, when I want to open the nuget manager for a project in my solution:

An error occurred while reading file
'<project path>\project.json': Error reading JObject from JsonReader. Path '', line 0, position 0.

The file is there, but completly empty (File Size 0K).
I have no idea, what I did, to introduce this error.
For other projects in my solution NuGet Manager is still working.

What can I do, to get rid of this error?

Thanks for help and hints.

Regards
Rainer

VS2015 Designer view can't be used

$
0
0

Today, I just updated VS2015 update 1 and get Universal App tool installed. I created a blank project and the designer view can't be used. No error what so ever. There is a notification says XAML designer requires Windows Update. But my machine is up to date. My developer mode is on of course. 

I can't include image in this post saying they have to verify my account. LOL.




VS 2015,C# Designer Process Crashes

$
0
0

New install of VS 2015 Community Edition Version 14.0.24720.00 Update 1, on a new Dell running Win 10 Pro, build 10586.

I created new C# Windows Universal Blank App. Opened "MainPage.xaml", see loading Designer prompt, then an unhandled exception occurs on the designer.  Error message is at the end of post.

No code has been added or changes made to the blank project.  The system is in Developer mode.

Have tried repairing and reloading Visual Studio.  Followed multiple MSDN and Google reports of similar errors, but found nothing that resolves problem.

Tried inputting a "Hello World" following this outline: https://msdn.microsoft.com/en-us/library/windows/apps/dn765018.aspx and the app compiles without error, then crashes calling the debugger, with a message: "Unable to activate Windows Store app".

Any suggestions or ideas?

Larry

The following error message occurs:

System.Runtime.Remoting.RemotingException
[4548] Designer process terminated unexpectedly!
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain.Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IIsolationDomain.CreateInstance(String assemblyName, String assemblyCodeBase, String typeName)
   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.<StartTask>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Werid compile/build error

$
0
0

Hello

When i want to build/compile my project its come up with this error: https://gyazo.com/fc5259558390f14d3a3511290145e159

Error:

Unable to copy file "obj\Debug\Steamstealerr.exe" to "bin\Debug\Steamstealerr.exe". Access to the path 'obj\Debug\Steamstealerr.exe' is denied

How do i fix it?

Regards Jens

invalid entries passed to /FilterFeatureSelectionTree switch

$
0
0

     Hi,

     I have been working with visual studio and have been attempting to install Python Tools for it. But whenever I click onNew Project> Install Python Tools for Visual Studio> Install, it comes up with an error message:

                                    invalid entries passed to /FilterFeatureSelectionTree switch.                                                    Please make sure you have an internet connection, and retry                                                          your oporation. For more details, please see the setup log.

     I have tried the instructions here: https://support.microsoft.com/en-us/kb/3039361#bookmark setupblocked

     These instructions informed me to "run the following command:

VS2015.1 RC.exe /overridefeeduri <Path to feed.xml>

 "

   These instructions are well and good, except for the fact that they do not specify where I am supposed to "run the following command". This does not help me. Am I supposed to run the command on a C++ compiler, or Ruby? I tried the Visual Studio command prompt, and got the error:

 The syntax of the command is incorrect.

     I have gotten this far, and am stuck. I would be obliged to any help given.

     Thanks in advance!





Visual studio not launching

$
0
0

Hi,

My Visual studio 2013 suddenly stopped working , unable to launch. I repaired twice and also i uninstalled and installed visual studio , again the same error. Please provide the resolution for the issue. I am not able to figure out




Purushothama V S


properties for moved project changed

$
0
0

The process was to move all files from one computer (Windows 7) to another (Windows 10) and reload Visual Studio 2010 on the new computer. All project files were moved to the identical locations on the new computer. This included the .sln and .vcxproj files. Looking at the properties on the new installation they are quite different. 

For example something as simple as "configuration properties->C/C++->Preprocessor->Preprocessor Definitions" were different. On the old system, it was 

WIN32
NDEBUG
_CONSOLE
_WINDOWS
VSPROJ
_CRT_SECURE_NO_WARNINGS

On the new system (same files) it was 

WIN32
_DEBUG
_CONSOLE

Note that on the new system both VS 2010 and VS 2015 are installed. There did not seem to be any interaction between the two.

There are many places in many projects where this is happening. It would be very dangerous to try to track them all down manually.


Mark Hubelbank NorthEast Monitoring 2 Clock Tower Place #555 Maynard, MA 01754


System requirements

$
0
0
Does Windows 10 Home edition support Visual Studio 2013 and 2015 Express?

Debugger does not always start

$
0
0

I recently moved my VS 2010 development environment to a new computer running Windows 10. Since then, I have noticed that frequently, the debugger will not start and the only way to test my web application(s) is to press [Ctrl][F5] to start without debugging. Moments later I will try again and the debugger will indeed start.

When this happens, I see that the build was successful, and the local IIS port message displays and then the screen flashes, and finally, execution stops. Sometimes, simply launching the debugger again will get start it up. Other times, I've tried doing a clean and rebuild and the debugger will start but not always.

It is extremely inconsistent and sometimes, when I really need to debug I can't get it started.

Is this a condition of VS 2010 on Windows 10? My VS environment is at service pack 1.

Any help our advice on this issue would be most appreciated.

Thanks!

Bob

VS 2015: Prevent IDE internet access

$
0
0

The IDE has allowed access to the MSFT symbol server. However, it also accesses some other servers right after startup. Why? No project is loaded, the option "Automatically check for updates" is disabled, and I'm not logged into my VS account, so there is no reason to access anything.

Which option must I disable to stop this unrequested behavior?

Some servers accessed are Akamai servers, but also...

93.184.221.200 edgecast.com
108.162.232.198 cloudflare.com
191.232.139.254 eu.vortex.microsoft.com

If I put trust in something by installing it, I expect not to misuse it by not giving the explicit clarity of what it is doing and why.


Armin

Exceeded retry count of 10. Failed - Windows 10 - VS 2010

$
0
0

I have seen chat on this problem with no proper solution.
I have never had the problem before but over the last 2 days I get it every second build for the 'startup project' in a multi project solution  first build the file is not locked

I have checked

There is NO executable in Task Manager
I have tried running Visual Studio as administrator but that makes no difference
Try to delete the executable in File Manager errors because the file 'IS'locked

The only things which appear to work:

a) Change the startup project to another project which releases the exe,
Build then the offending exe builds OK, change the startup project back, make changes, build, test Change startup project etc. etc. 
b) Close Visual Studio delete the bin folder or Executable file re-open VS - I can make changes and 1 build until the bin folder has bee re-created

any ideas?, maybe it is a Windows 10 problem


jnc

Viewing all 21115 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>