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

VS 2013/2015 Pro hangs when drag in Data Source

$
0
0

I have a data source based on existing project (DataCore.vbproj). Project is attached to solution (for a UI.vbproj), and referenced to the project that hosts wpf window (UI).  For some reason, I am attempting to drag a table (VS created Dataset from SQL data, inherited into datacore) from the data source window into the xaml UI.  I am attempting to bring in the object as a standard combo box.  The system hangs with max processing for 1 core.  This behavior is new and persistant.  How can I solve it?

Thank you,


Design view wants Win10 update before it works.

$
0
0

 I've just installed VS2015 Community Edition (V 14.0.24720.00 Update 1) on Windows 10 V 10.0.10240.  Machine is Home build MSI AM3+ Board, Phenomll x4 @ 3.3GHz, 8GB DDR3 1333Desigher view won't start, and I have a message  that states"XAML designer requires Windows Update

Severity:Informational

Description: The target Windows 10 platform for the 'HelloWorld'project is newer than the current version of Windows 10; Update Windows 10 to enable XAML designe and take advantage of new Windows features.

Created: 1/18/2016

Expires: 2/17/2016 5:46PM"

Windows 10 IS fully updated, so what am I missing?

BTW, I've been usng VS2008 Express and 2012 Premium without problems.

When will VS Dev Essentials Azure credit ($25/mo for 1yr) be available?

$
0
0

For several months now, Microsoft Visual Studio website and various associated marketing materials have included the following:
"Azure credit  ($25/month for 12 months)*—coming soon"

QUESTION: When will this program start - become available?

mscomm32.ocx with WIndows 10

$
0
0

I am not sure where to post this so I am starting here. I am using mscomm32.ocx for serial communications and have been for years. With windows 10, I am unable to read data from any comm port.

I have looked all over and it seems that no one is saying that it is working for them either. Several people have changed tools to resolve this issue.

Can someone from Microsoft tell me if this is going to be fixed?

Weird VS bug - Window opens automatically when designer loads for the first time

$
0
0

Hi,

I have a WPF application with 2 windows. I started having this weird bug...the first time after I open VS, double clicking on the Window.XML will actually run the window right after loading the designer. This would happen only once after VS is opened and only with this window.

Also, when I run without debug (Ctrl+F5), both my starting window and the second open (also, only for the first time). If i debug, this would not happen. I tried removing from my code the line that opens this window, and it still happens.

It's like something in the XML tells it to open...

----

I tried upgrading VS to 2015 (which is the same as uninstalling and installing, right?) still nothing.

So I started removing everything from my code, clearing the window and deleting DataContext code...basically anything that has anything to do with that window. And guess what? The window keeps opening! And even after I deleted the entire content of the window, the window opens with all the buttons in it! What kind of weird bug is that?!

Any ideas?

EDIT: I literally deleted the entire content of the project, all files windows and classes, and the window still opens. I started a new project and copied the code, same thing. It's like there is a ghost or something...please help.

Thanks in advance

System.xml.Xslt Not available in Win Phone

$
0
0

Dear Team,

I am developing cross platform mobile applications using C# Visual Studio 2015 and Xamarin I have following requirement to be implemented

1. Generate HTML content based on input XML,

I decided to use XSLT transformations to translated XML into HTML . I chose cross platform shared project ,and tried to reference System.xml.Xslt I found it very strange System.xml.Xslt was supported in Android but it was giving error on WinPhone project saying System.xml.Xslt is not available Kindly advise us to implement above .

I raised this issue with Xamrin support team , i need to seek support from Microsoft on this issue .

Thanks Pravin

VS2012, C# MDI and Access DataBase, problems connecting

$
0
0

I have a C# MDI application developed under VS2012 that works fine. I am trying to hook into a database and having problems. I have connected into the same database from 3 other apps, but they are 'standard' windows apps in C++, but also in VS2012. I get back a connect string from SQLDriverConnect which works fine in C++ but it and a zillion other strings from code samples get internal errors in C# on my OleDbConnection call.

Any ideas?


ert304

Web Site Publish Question - .sln vs .csproj...

$
0
0

Hi all,

I have a quick series of questions regarding publishing a website.

When we deploy using the .sln file, it seems the .sln and other development files are pushed to the desired location.  Is there a way to filter that stuff out and only deploy what will be needed in the install/on end user's machine.

We will be adding this via MSBuild as well in a script for our CI project and I'm wondering if there is a parameter that can be passed to it to filter that 'stuff'.

We do publish another app that uses a .csproj file and we don't have to do any cleanup of dev files there.  Everything looks good from both Visual Studio and our CI process.

Is that the difference?  If its a project and not a solution the publish is cleaner?

The developer in charge of this particular solution indicated that the publish looked good if the .sln file was removed.  The problem with that is I have nothing to call or build/publish via MSBuild in our script.

Any clarity you can provide would be greatly appreciated!!

Thanks in advance.


Multiple Errors Repeatedly Appear For No Apparent Reason When Trying to Re-Run a Project After Editing Code

$
0
0

Hello community,

I have been using Visual Studios for a few years now and love it, mostly using VB. However I seem to get an intermittent but regular mass of errors when I try to run my projects sometimes. Doesn't matter what project I'm working on, and it seems to do it on every Visual Studio version I have, or have ever tried.

So I will be working on whatever, run the code fine for a few times, then stop or close the project app to make code edits or continue on with the next routine. Then when I try to run it again I often get the below error. Seems to say every project file is being used by another process, which it clearly cant be because the app was shut down or stopped. I've tried waiting, even overnight once to test. Shut everything down that's resident bar the essentials, but it still just continually repeats this error (slowly too) every time I attempt to run the code.

Only way I can fix it is to reload Visual Studios. then it will run again... until it does it again ofc. For example I've been working today for two hours roughly and its already done it four times. Is really starting to drive me nuts. And fairly messes with ones chain of thought having to stop to reload VS over and over.

Can anyone help please and end my torment - offer a solution or advice please.

all replies are appreciated

tyvm

{o_o}

 

Bug when settings contains IsolatedAzureActiveDirectoryVisible

$
0
0

Hi There,

My settings are not maintain between VS runs. I change the settings, exit, and when I'm back the settings are back to old values.

FACTS

  • The Current.settings gets updated
  • When I import the Current.settings the new settings are set

I get one error when imported manually: 

Your settings were imported, but there were some errors.

Error 1:  Synchronized Settings: Unable to import property 'IsolatedAzureActiveDirectoryVisible' because it contains invalid data 'true'.

I set it to Checked or Unchecked it doesn't matter. Same error.

If I edit the .settings and remove that property, it loads completely with all the settings. So my guess is that error cause the loading to stop instead of just skipping it.

HOW CAN I FIX THAT?

I also have the symptoms of Search and Replace last settings never saved between executions. Related? probably.

If solution is run immediately after rebuilding, files that are copied to output directory are deleted.

$
0
0

Issue: If solution is run immediately after rebuilding, files that are copied to output directory are deleted.
Visual Studio version: Community 2013 Version 12.040629.00 Update 5

Running on Windows 10

My solution is structured like this:
MySolution.Services (library project)
MySolution.Main (startup project - WPF application)

In the services project, there are some files that are marked "Copy to output directory = Copy Always"
When I build I am able to see the files being output to the correct directory.
None of my projects have build events.
All of my projects output to "..\Builds".

The following sequence works correctly (files are not deleted):
Make a random change to a .cs file
Click Start Debugging


The following sequence causes the files in the output directory to be deleted:
Click Build -> Rebuild Solution
Click Start Debugging
Files in output directory are deleted immediately.

I am able to reproduce this issue at will.
I have a breakpoint in Application_Startup.  I can see the files are deleted before any of my code runs (BTW I have no code in my application that deletes these files under any condition.):

public partial class App : Application
    {

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            if (e.Args.Length > 0 && e.Args[0] == "-debug" && !Debugger.IsAttached)
                Debugger.Launch();
            int xzzzz = 5555; // breakpoint here. Change this to force rebuild

To install this application you need either a Windows developer license or a sideloading-enabled system.

$
0
0

Hi all,

I'm just getting started learning C# and have installed VS2015 COmmunity and Express (just in case one was different).  When I try and open the designer page I get this error message: 

System.Exception
To install this application you need either a Windows developer license or a sideloading-enabled system.

Deployment of package 34d70666-fd30-46e4-86b3-bdb2a62c4886_1.0.0.0_x86_NorthAmerica_8wekyb3d8bbwe failed because no valid license or sideloading policy could be applied. A developer license (http://go.microsoft.com/fwlink/?LinkId=233074) or enterprise sideloading configuration (http://go.microsoft.com/fwlink/?LinkId=231020) may be required.
   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've registered and paid for a developer licence, but VS doesn't seem to be recognizing it.  What am I doing wrong?

Mike

How do I preserve GIT Commit History when moving a file between projects

$
0
0
I have a large solution in Visual Studio 2015 using GIT (Bitbucket) for source control. There are seven projects, all in C#. Most of the files have extensive commit histories. However, when I move files to a different project, sometimes the history is preserved and sometimes it is not preserved. How do I ensure that it is kept?

SDL Graphics and utility library

$
0
0

    Hello, I'm kinda new to using visual studio, and I was wondering: Has anyone successfully implemented, and programmed with the SDL (Simple Direct media Library) package in MSVS 2015 or other versions? If so, could someone help me out out on this front?

    A great meany thanks if you could help me out step by step.

        -Sam

visual studio 2010 does not restore my solution as I left it

$
0
0
visual studio 2010 does not restore my solution as I left it

Visual Studio 2015 XAML Designer Issue - Automatic Refresh

$
0
0

I am new to XAML and Windows Universal app development. I am trying to follow the Windows 10 development for absolute beginners video series in Channel9. Unfortunately, the Visual Studio 2015's XAML designer automatically keeps on refreshing. Sometimes, it seems stuck or slow when I try to click on an object to see its properties (for example). I uploaded a screen recording to give you a better idea of the problem on the link below. I am on Windows 10 with all the latest updates. Visual Studio has all the updates installed including the recent update 1.

https onedrive.live.com/redir?resid=83A0D68975794D80!61290&authkey=!ABqgJTySspQqm1Y&ithint=video%2cmp4

Has anybody faced this issue before? Please let me know your suggestions on resolving this.

Stop Visual Studio 2013 from changing the file encoding?

$
0
0

Hello,

I use Visual Studio to edit python scripts (.py files). When I do this, I prefer to use a particular file encoding. However, my VS seems to set the encoding to UTF-8 all the time. Here's what I am seeing:

  1. Open a file, and check its encoding via "File; Advanced Save Options...". This would show "UTF-8 with signature" is the encoding.
  2. Change the encoding to my preferred one.
  3. An asterisk appears next to the filename in the VS editor tabs, indicating that the file has changed, and needs saving.
  4. Save the file. A warning comes up to say I'm about to change encoding, which might cause problems for file diff. Say OK to this warning.
  5. Close the file. Check the encoding in Notepad++. All is fine.
  6. Reopen the file. Add a trivial change, say, a space.
  7. Save the file again. The warning about changing encoding appears again. Say OK to that too.
  8. Check Advanced Save Options to see that encoding is once again UTF-8. Notepad++ reports encoding is UTF-8 as well.

Does anyone know what settings I can change to avoid this behavior, please? This is driving me crazy!

Thank you very much.

Visual Studio Shows Build Failed But No Errors are Displayed

$
0
0

I have enabled the Error List at the bottom of my visual studio 2010, and when I build my project, it tells me build failed, however the error list does not produce any errors?

Is this a settings?  Has my project become corrupt?  Someone help! :)

Visual Studio Authoring Extensions (VSAE) Not Present in Visual Studio 2015

$
0
0

Hello,

I have installed System Center Visual Studio Authoring Extensions (VSAE - download link: https://www.microsoft.com/en-us/download/details.aspx?id=30169 ) multiple times and can never get them to show up in Visual Studio 2015.  How can I get this to work?

Thank You.

Why does VS 2015 lie when it says a .nupkg file exists in a location that doesn't exist???

$
0
0

We're upgrading a WPF project that we started in VS 2013, to VS 2015. This is a new project, not yet in production. We're using Entity Framework 6.1.3. My colleague did the upgrade. I got it out of TFS and tried to build it. It won't build. It gave me errors about entity framework not being in the solution. I got into NuGet Package Manager to look. There is it, plain as day. EF 6.1.3is installed in the solution and in that project. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is. But VS 2015 thinks it isn't. But VS 2015 thinks it is.

I gave up trying to make sense out of what VS 2015 thinks or doesn't think. I decided to uninstall it from the solution/project. So that's what I did in NuGet Package Manager. Now, sure enough EF is gone. Only problem is I can no longer install it back into the solution/project. It's now giving me an error that reads:

TF400024: The change on D:\Src\CoreFramework\packages\EntityFramework.6.1.3\EntityFramework.6.1.3.nupkg cannot be undone because a file already exists at D:\Src\CoreFramework\packages\EntityFramework.6.1.3\EntityFramework.6.1.3.nupkg. The file must be deleted from disk for the undo to succeed.

But this is an outright lie! There is no D:\Src\CoreFramework\packages\EntityFramework.6.1.3 folder on my system. I've tried looking with both Windows Explorer and PowerShell; there just ain't a D:\Src\CoreFramework\packages\EntityFramework.6.1.3 folder. VS 2015 is certain my problem is in a file in a non-existent folder. How do I fix something when the answer given is so completely wrong?


Rod

Viewing all 21115 articles
Browse latest View live


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