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

Weirdest problem, program created un VS15 or 13 will only run on development PC after signing (no problem on other PC)

$
0
0

LS.

On my Win10 PC I have VS 2015 Pro and VS 2013. As of about a week ago I have the weirdest problem.

I create an application in either VS2015 or 2013 (Winform, button => Hello World). It runs fine in VS.

When I go to the debug directory and run the application. I get this blue circle that keeps turning and turning and turning as if it is loading. But nothing happens (not even after 10 minutes).

I opened my Windows logs to see if there where any errors that could help me, no errors where created when I ran my program.

When I use another computer and copy the debug directory to this computer, than it works just fine.

A few days ago I noticed a few times that when I ran the program in Visual Studio, that compiling was a problem.

It mentioned that the file was still in use and that I needed to close that file before I could continue. Closing VS, restarting did the trick. But when I got this error for like the fifth time, that is when I tested to see if it runs all by itself, so not in VS (which it didn't).

I updated VS, I updated Windows (there was some special big update, which failed once but now went OK). I checked for viruses, junk-ware, etc. All was OK. IN general I have no problems with this computer.

The weird part is that I found a work around. If I sign my software (we have a sign tool and a certificate) than there is no problem!! Than it runs.

Of course this never was the case, to my knowledge I did not change anything in my windows that would account for this behaviour.

UAC is something I have turned off for a very long time. I saw on the internet where someone had a problem that looked a bit like mine and he turned off SmartScreen (I remembered that SmartScreen did ask me some question a few days back, probably due to an update). Anyhow I now turned that off as well and it didn't make any difference.

By the way with regards to UAC it doesn't matter whether I create an application that need elevated privileges or not. The problem is the same. To my knowledge, besides some updates nothing really happened to my PC.

And although I am happy that I can do some test after I just sign my executable, it is not ideal (especially as this signature program is installed on a different computer.

I was wondering does anyone ever had a problem like this before and how did he or she overcome this? Doen anyone have a good idea what I could do?

Personally I think the problem is caused by Windows (but what setting in Windows could cause this behaviour). And to make it weirder applications that I developed in VS like a year ago and that are not signed have no problem. Software that I bought from other developers have no problem.

PS I just tested to see if turning of my antivirus made any changes and it didn't ( I have Avast AV free edition and I disabled it completely for like 10 minutes and in that period I tested it, and it made no difference). The only thing I noticed is that the blue loading circle now isn't visible, but that might be a coincidence. Nothing happens (not even an error message).

Weird, weird weird.

I hope someone will give me some idea as to how to solve this.

Kind regards,


Clemens Linders


Visual studio hangs when creating Azure App Service from Server Explorer

$
0
0

Whenever I try to create an Azure App Service from inside Visual Studio via the Server Explorer Visual Studio hangs. I also get a message that Visual Studio is waiting for an internal operation to complete.

The "Create App Service" window shows up and a generic Web App Name is added however the circles next to Web App Name textbox (that I assume should turn into a green check-mark) is frozen and I can't edit or do anything in the window. The entire window is completely frozeon. The only way to exit this state is by killing Visual Studio.

This issue is happening on both Windows 7 and Windows 10, both with Visual Studio 2015 professional, both with Azure SDK 2.8.1

Why is it that when I map a map a solution and then pull the solution down, that it doesn't get everything?

$
0
0

This question involves both Visual Studio 2015 and TFS 2013. I'm not really sure where the problem lies, whether with VS or TFS. If this is the wrong forum, please forgive me for posting it here.

We're really having a irritating problem when developing with VS 2015 and using TFS 2013. Each time when one my co-developers or I creates a new solution/project in VS 2015, and then checks it into TFS, then whenever someone else maps the location to some local drive on their system, and then brings it all down, it consistently doesn't get references necessary in order to run. Why is that?

For example, we just had a Skype call because we're not all located in the same place. One of my colleagues had worked on a new WPF app to use as an example that he wanted to share with the rest of the team. He had checked it into TFS yesterday. The rest of us got into VS, opened up the Source Control Explorer, found the solution/project, then mapped a location locally and did a Get Latest. When I tried to run it I immediately got 145 errors, all related to theModernUI for WPF and MVVM Light. I have both installed on my system, but more important than that, I really thought they'd be a part of the whole solution. Why is it, then when I did a Get Latest on the solution, these two are left out? All of the errors are one of two types:

"The type or namespace name 'FirstFloor' could not be found (are you missing a using directive or an assembly reference?)"

Or

"The type or namespace name 'GalaSoft' could not be found (are you missing a using directive or an assembly reference?)"

Just over the different files that the first team member had worked on.

So, why are we getting these errors? Why doesn't VS get them when pulling them down from TFS?


Rod

Is there a way to turn off all this extra junk in the debug console and only how items from when my code runs? ie (Debug.WriteLine)

$
0
0
All this extra IISExrpress and thread aborted crap gets in the way of seeing the data I want to see.Screenshot

[UWP] Many errors after creating a new UWP project.

$
0
0

Hi,

I've just installed VS 2015 Community and I have problem with UWP. I have many error when I create a new UWP project. I added screenshots. What's going on?
http://i63.tinypic.com/w0td9j.png
http://i67.tinypic.com/wjw1fm.png


VS2015 projects can ONLY be on the install drive?

$
0
0

Steps to rep:

  1. Create a new, blank, UWP, VC++ app project (File --> New -->  Project --> Visual C++ --> Windows --> Universal --> Blank App)
  2. Store the project on D:\    (VS is installed on C:)
  3. Hit F5 to build and run the app

Error:

Now repeat the process but this time store the project on C:\.  Everything works just fine.

How do I configure VS to let me store and run projects stored on a drive different than the drive on which VS is installed?

Specs:

Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Windows 10.

Unity, global illumination folder taken as a language folder

$
0
0

Hi, I have a problem with dev center package and visual studio (when building package it shows a warning about the language) analysis, they detect Persian language (that does not exist in my game) because they find a folder called "fa".

Unity3D, when I build the project, creates a folder called "fa" (Data/GI/level3/fa) that contains Global Illumination data. How can I fix this issue?


Visual Studio 2015 Update 1 crashes when editing

$
0
0
Is anyone experiencing consistent crashes with this? I'm finding it crashes as soon as I make an edit to a file or after a few edits. I've tried on two projects so far. Same behaviour.

Kevin


Visual Studio 2015 Freeze

$
0
0

Hi everyone,

I am a C# developer. I used to use the Visual Studio Enterprise 2015 on my Windows 7 to code and design the webpage. However, it seems to me that the Visual Studio will freeze when I switch to design view. I did uninstall the Visual Studio and installed again. It works fine for a day and it goes back to "freeze mode" again.

Anyone who has the same experience? Please drop me a line.

What does this error message mean?

$
0
0

"This project is incompatible with the current edition"

That's what I get with the following script:

usingUnityEngine;

usingSystem.Collections;

publicclassNewBehaviourScript: MonoBehaviour

{

// Use this for initialization

voidStart ()

{

Debug.Log ("Hello World Test");

}

}


Allen G. Taylor

XAML Designer not showing

$
0
0

I recently updated my visual studio and since then XAML deisgner stopped showing, only XAML code windows is visible.

Any solution ?

P.S. Building for Windows 10 Universal APP on build sdk 10.0.10586.15


Scaffolding doesn't work in Visual Basic MVC project

$
0
0

I am using Visual Studio 2015. I created a new Visual Basic MVC project, using all defaults.

When I try to Add a Controller, I right-click on the Controllers folder, select Add then select Controllers... I select the template, then enter the name, and when I click Add on the Add Controller dialog, I get "Visual Basic Command Line Compiler has stopped working" error dialog. When I click "Close the program", I get a very long error message that starts: "There was an error running the selected code generator" it continues to say it cannot find a dll file in my AppData/Local/Temp folder. The file name is different every time.

I have tried this on 2 computers with 6 installations: I have tried in Visual studio 2013, 2013 Update 5, 2015, 2015 Update 1. I have tried different templates. I have tried building, cleaning, restarting, rebooting.

It works absolutely fine in a C# project. But not in a Visual Basic project.


Windows Forms Application for C++ missing in Visual Studio 2015

$
0
0

I need some help. I am taking a class on programming and need to use Visual Studio.  I downloaded and successfully installed the 2015 version from the website here.  However the assignment requires the Windows Form Application.  Okay, I used the steps below but the option is simply not there.  How do I get this option in my C++ menu?

To create a new Windows Forms project

  1. On the File menu, click New, and then click Project….

  2. In the Project Types pane, select CLR in the Visual C++ node, and then select Windows Forms Application in the Templates pane.


VS2015 Community - "64-bit debugging operation is taking longer than expected."

$
0
0

I am getting this message pop up constantly and it takes 10-15 seconds for the pop-up to disappear. It happens when I start up VS; and when I end a Debug session. I'm guessing this is from some VS addon that is not responding to a VS request.

Qustions:
1) Is there a VS log somewhere that will tell me what addon VS is waiting for? If I can uncheck a VS option to stop this, that would be great. But I have no way of knowing what's causing this.

2) There is a cancel button on the pop-up dialog. Can I dismiss it with no ill effects?

The OptionsPagePackage did not load correctly

$
0
0

After running the Visual Studio Community 2015 Update 1, when I open Visual Studio I receive the following error box:

The 'OptionsPagePackage' did not load correctly. The problem may have been caused by a configuration change or by installation of another extension. You can get more information by examining the file C:\Users\.....\VisualStudio\14.0\ActivityLog.xml.

In the ActivityLog.xml is the following

<description>SetSite failed for package [OptionsPagePackage][ExportProviderFactory must be called on the UI thread.]:{   at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.get_ExportProviderFactory()&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.&lt;GetMEFV3ExportProviderWrapperAsync&gt;d__46.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetLazyValue[T](AsyncLazy`1 lazy)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.PowerTools.OptionsPage.Common.GetMefService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.PowerTools.OptionsPage.OptionsPagePackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>

I have run repair, had no effect.

Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1

Thank You

Mike


Mike Nichols


Windows crashing when trying to debug solution

$
0
0

Hello,

Recently my Server 2012 with Visual Studio 2013 Ultimate has started crashing every time I hit F5.  This is happening with current solutions and brand new solutions (like a simple hello world).  As soon as I hit F5 Windows Server 2012 crashes. The event logs do not show anything about the crash other than a kernel message that the reboot was unexpected.  No blue screen message and no logs anywhere that I can find.  Has anyone run into this recently?  I'm running Visual Studio 2013 Ultimate with Update 1.

Failed to create empty document after building application with VS 2015

$
0
0

I recently upgraded our MFC application from VS 2010 to VS 2015.  When executing newly built MFC application, immediately are confronted with popup with message "Failed to create empty document".  Looking at event log, I see "Faulting module name: ucrtbase.DLL".  I can debug my MFC application down to the call ShowWindow().  I have not changed my code; only built it with VS 2015. 

Would anyone know why I am now getting this error message?  Application seems to be properly linked to c:\windows\system32\mfc140.dll, c:\windows\system32\msvcrt.dll, c:\windows\system32\msvcp140.dll, c:\windows\system32\vcruntime140.dll, c:\windows\system32\ucrtbase.dll, as well as the new of newly named c:\windows\system32\api-ms-win*.dll files.

Regards, Rob

VS2015 crashes due to stackoverflow when regenerating designer files

$
0
0

I am trying to edit a aspx file in a webforms project (.net 4.6) in VS2015.1 Professional.

When I make changes to server controls and click save - visual studio hangs for a second, crashes and windows reloads it. Afterwards I sometimes cannot reload the solution unless I delete the .vs directory that sits alongside the solution.

I have tried with and without admin privileges and running vs in safe mode, and resetting windows and reinstalling vs.

The event viewer records the following when VS crashes:

Faulting application name: devenv.exe, version: 14.0.24720.0, time stamp: 0x564ea97e
Faulting module name: clr.dll, version: 4.6.1038.0, time stamp: 0x5615c25a
Exception code: 0xc00000fd
Fault offset: 0x00002b80
Faulting process ID: 0x258
Faulting application start time: 0x01d13872d0585bdc
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: e93180e9-0aba-4463-aeb5-8c0d98ca3685
Faulting package full name: 
Faulting package-relative application ID: 


When I attach another instance of VS to debug my problem, I can see that:

starting from Microsoft.VisualStudio.Web.Application.dll!Microsoft.VisualStudio.Web.Application.Generator.Microsoft.VisualStudio.Web.Application.IVsCodeBehindCodeGeneratorService.UpdateDesignerClass(string document, string codeBehind, string codeBehindFile, bool force, bool create)
and culminating in an unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll in WhereArrayIterator<TSource>.MoveNext()

Has anyone seen anything like this before? What would be the next steps to diagnose the issue?

I am currently trying to lodge an issue using my msdn support incidents, but I am waiting for my contract and access ids to be enabled (even though I have been a subscriber for 4 years+). 

I have a memory dump here - https://drive.google.com/open?id=0B5Mynos9JgziLVZpMl9tMDRZbVE




sqlpubwizinstaller.exe

$
0
0

Hello --

Please  clarify -- I was trying to add more options to my visual studio 2008 install -- SQL --  the installer stop and wants the path for

sqlpubwizinstaller.exe  -- but this files is not on the computer or on the vs2008 dvd -- how is that? where can I find this file?

The file I found on the DVD is sqlpubwiz.msi

what am I missing here?

thanks

fpe

Problem with PInvoke

$
0
0

Hello.

We have code that was written and worked properly with VS 2012/2013/2015(before update) and Windows XP/7/8/8.1/10(before update).

C# program call function in C++ dll. 

        [DllImport( @"Net.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_Multiple3" )]
        public static extern string Multiple3( string In );               

string b = "Ok. ";   

                var res = Multiple3( b );//crash
                Console.WriteLine( res );

After all updates Windows 10 code also work, but in compatible mode - Windows 8.

When I run VS 2015 by F5 ( code that compiled in debug or release mode ) I receive exception:

"vhost32.exe has stopped working"

What we can to do for prevent this exception?

Is pinvoke deprecated and which solution in this case?

Best regards. 


Viewing all 21115 articles
Browse latest View live


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