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

Microsoft Help View could not connect to http://services.mtps.microsoft.com/ServiceAPI/catalogs/VisualStudio11/en-US.

$
0
0

Microsoft Help View v2.0, v2.1, v2.2 could not connect to http://services . mtps . microsoft . com/ServiceAPI/catalogs/VisualStudio11/en-US. But v2.3 works fine. I tried from browser and the URL "http://services . mtps . microsoft . com/ServiceAPI/catalogs/VisualStudio11/en-US" worked in browser.

Error:

An error occurred while checking for updates: Microsoft.VisualStudio.Help.CacheLib.CacheLibWebConnectivityException: Unable to connect to services.mtps. Check your Internet connections. ---> System . Net . WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System . IO . IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System . Net . Sockets . SocketException: An existing connection was forcibly closed by the remote host

If I manually download all the cab files and then try to update I always get error "cab was not signed by Microsoft"

An error occurred while updating content on your computer: Microsoft.VisualStudio.Help.CacheLib.CacheLibNonMicrosoftSignatureException


Cannot download updates for Visual Studio 2012

$
0
0

Hello

years ago I bought Visual Studio 2012. Now I nedded to reset my laptop and I reinstalled VS, inserting my product key. My problem is that I cannot download updates because, when I bought VS, there was no need to join product key with an account. When I surf to https://support.microsoft.com/en-us/help/3072098, I insert my microsoft login but I got the message "Sorry, we couldn't find any downloads for you.".

How can I solve my problem?

Thanks

Fab

Open ID Connect

$
0
0
Hi, 

I have two web applications, first one is OpenIDConnect App (Downloaded from this link - https://github.com/Azure-Samples/ms-identity-aspnet-webapp-openidconnect) and another one is my organizational app, build on MVC. Due to difference in design of both apps, I can't merge them. So, I am trying to get Access Token using Open ID app and pass it on to my organization app so that I can execute operations like check-in/checkout using Graph API in SharePoint Online. Due to MFA enabled for all accounts, I had to go via Open ID only.

I have tried different approaches to make Open ID work, but unfortunately we aren’t successful. I will try to explain the scenarios, I have tried -

  1. I first created a Web App using the link provided on Github. It did work in a development machine and I am able to get the token and perform check-in/checkout using Graph APIs. It did work as expected and I was able to see “current logged in user” names under “Checked Out By” in SharePoint Online.
  2. Second step was to deploy it on a IIS server and then try to perform similar operation, which was also successful.
  3. In third step, I tried to merge the Open ID Web App with our existing MVC Web App. Both apps are using .NET Framework so technically that was feasible, however, I hit a road block when we ran the merged app. As my organizational Web App uses Windows Authentication and Open ID App uses Cookies Based Authentication (for reference, here is one line of code from OpenIDConnect Startup.cs class - app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType). We tried to change authentication type of Open ID app to Windows, but then the Open ID solution didn’t work as it failed to bring in Accounts information. Unfortunately, we can’t change Authentication scheme for our App at this moment as it will have a huge excercise.
  4. In our fourth attempt, we deployed Open ID web app to an IIS server as a Web Application (let’s say OpenIdApp) on the same server we deployed our organizational Web Application (let’s say MyApp). In Azure AD, we set Redirect URI of Azure App to MyApp. So below is the flow we are using.

Please see image attached for the flow

  1. When we get redirected to MyApp, we don’t have a way to retrieve token. We only get token when we redirect the OpenID App to the same application (i.e. to OpenID. To explain more, let’s say I am running Open ID App in local dev and debugging on https://localhost:44321/ , I have to then mention Redirect URI as https://localhost:44321/ in Azure AD to keep the token available for further actions like to call Graph APIs.
  2. We also created a WebRequest, WebClient and other objects from C# and tried to get a token but that didn’t work. We tried to call controller method of OpenID App from Leo App but it got blocked due to CORS policies setup on https://login.microsoftonline.com
  3. We tried to open the Open ID App using window.open method and other JQuery popups to that we could get the token back to Leo App. However, we didn’t succeed.
  4. Apart from Open ID solution, we tried PnP AuthManager Class to do check-in/checkout as well. It works from local machine but it didn’t work after hosting.

I will appreciate if someone can help me in achieving this piece as it has been pending since long and I can't get a workable solution for this.

Thanks.


Ashwani Vashishtha


Visual Studio 2017 - SSIS Project Incompatible

$
0
0

Hi All,

I created and have been working on a VS2017 SSIS SSDT solution for the past week. Visual Studio crashed a little while ago and after the restart the toolbar message said xxxx plugin caused the crash, click disable after restart never see this message again.

I clicked disable and restart now Visual Studio says my SSIS solution is incompatible and I can't open it, either starting Visual Studio then select the solution or right clicking and selecting open with.

So how do I re-enable SSIS packages?

Thanks

visual studio crush on find dialog:

$
0
0

Rebooting the laptop didn't help

Any find in entire solution ends with VS being closed. (crushed) 

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 3D84195D
Stack:
   at Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowPaneDocumentObject.Init(Boolean)
   at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.InitializeDocumentObject(System.Object)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(Microsoft.VisualStudio.Platform.WindowManagement.FrameMoniker, Boolean, System.String, UInt32, System.Object, System.Object, Microsoft.VisualStudio.OLE.Interop.IServiceProvider, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy, UInt32, System.Guid, Microsoft.VisualStudio.PlatformUI.Shell.ViewGroup, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(System.String, Int32, Int32, System.String, UInt32, UInt32, System.Object, System.Object, Microsoft.VisualStudio.OLE.Interop.IServiceProvider, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy, UInt32, Int32 ByRef, System.Guid ByRef, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ByRef)
   at Microsoft.VisualStudio.Shell.Interop.IVsProject2.ReopenItem(UInt32, System.Guid ByRef, System.String, System.Guid ByRef, IntPtr, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.SolutionOptions.ReopenDocumentFrame(Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService, Microsoft.VisualStudio.Platform.WindowManagement.StubWindowInfo, Microsoft.VisualStudio.Platform.WindowManagement.ReopenDocumentOptions, Microsoft.VisualStudio.PlatformUI.Shell.DocumentGroup, Int32 ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.SolutionOptions.ReopenDocumentFrame(Microsoft.VisualStudio.Platform.WindowManagement.IWindowManagerPrivate, Microsoft.VisualStudio.Platform.WindowManagement.StubWindowInfo, Microsoft.VisualStudio.Platform.WindowManagement.ReopenDocumentOptions, Microsoft.VisualStudio.PlatformUI.Shell.DocumentGroup, Int32 ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.EnsureStubFrameInitialized(Boolean, Microsoft.VisualStudio.Platform.WindowManagement.StubWindowInitializationReason)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame+<>c__DisplayClass470_0.<GetProperty>b__0()
   at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(System.Func`1<Int32>, Boolean, Boolean)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetProperty(Int32, System.Object ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame+MarshalingWindowFrame+<>c__DisplayClass4_0.<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.GetProperty>b__0()
   at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<Int32>)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame+MarshalingWindowFrame.Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.GetProperty(Int32, System.Object ByRef)
   at Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.TranslateAccelerator(Microsoft.VisualStudio.OLE.Interop.MSG[])
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowPaneDocumentObject.TranslateAccelerator(Microsoft.VisualStudio.OLE.Interop.MSG ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.TranslateAccelerator(Microsoft.VisualStudio.OLE.Interop.MSG ByRef)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.TranslateAccelerator(Microsoft.VisualStudio.OLE.Interop.MSG ByRef)

Designer does not open form

$
0
0

Vb.net:
Forms that have not changed for years are no longer opened by the designer. Error message: "The object reference was not set to an object instance"

With the same development environment, older forms can be opened perfectly.

Development system:

Microsoft Visual Studio Enterprise 2019
Version 16.3.10
VisualStudio.16.Release/16.3.10+29519.87
Microsoft .NET Framework
Version 4.8.03761

RoutedEventArgs could not be found.

$
0
0

I'm trying to implement action on button click in Xamarin.

It also tells "Signature of EventHandler ...AddBtn doesn't match the event type".

<Button Text="Add" Clicked="AddBtn"/>
namespace App
{
    public partial class MainPage : ContentPage
    {
        ...
        private void AddBtn(object sender, RoutedEventArgs e)
        {
            ...
        }
    }
}



Trying to force audio device into NAudio player in C#

$
0
0

Hello,

First post here!

I am trying to force an audio device into an NAudio player but I've been unable to work it out. At the moment, the code I have inherited uses a comboBox to select the device and use it, but I want to hard code it in.

From the code below in the commented lines you can see what I have already tried, but they all show errors so I am not getting it right somehow.

Can anyone help me with this?

The outcome I desire is to 'force' the NAudio to use the "Speakers (High Definition Audio Device)" audio device instead of selecting it from the combo box.

Thank you

NAudio.CoreAudioApi.MMDeviceEnumerator enumerator = new NAudio.CoreAudioApi.MMDeviceEnumerator();
var devices = enumerator.EnumerateAudioEndPoints(NAudio.CoreAudioApi.DataFlow.All, NAudio.CoreAudioApi.DeviceState.Active);
Globals.NewDevice = devices.ToString();
comboBox1.Items.AddRange(devices.ToArray());



if (comboBox1.SelectedItem != null)
    {
    var device = (NAudio.CoreAudioApi.MMDevice)comboBox1.SelectedItem;
    //var device = (NAudio.CoreAudioApi.MMDevice.Equals.("Speakers (High Definition Audio Device)"); 
    //var device = (NAudio.CoreAudioApi.MMDevice)."Speakers (High Definition Audio Device)";
    //var device = (NAudio.CoreAudioApi.MMDevice)"Speakers (High Definition Audio Device)";
    //var device = NAudio.CoreAudioApi.MMDevice."Speakers (High Definition Audio Device)";
    //var device = (NAudio.CoreAudioApi.MMDevice.ReferenceEquals."Speakers (High Definition Audio Device)");
}



Visual Studio Design Is Blank But Labels and Panels Still Show Up In Code With No Errors

$
0
0

Hello,

I am having an issue where Visual Studio 2019 shows a window in my program in the design window. It is showing up as a blank window but the panels and labels that I have placed still show up as still in use but when I go to debug the program I get errors that basically tell me that there are no such items.

I did not delete anything and this happened when I saved the file and then tried to debug the program.

What is going on and how can I fix this?

Thanks!

Deploying a self contained React application with Nuget on Visual Studio 2019

$
0
0

I am trying to deploy my .net React JS application on another server on Visual Studio 2019 as a self contained package and this is almost working, except for the Nuget dlls which, although present in the deployed files, are supposed to be found on $(USERPROFILE)/.nuget/packages. But this folder is not present on the prod server.

My web.config contains this line to start the web site on IIS:

    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" />

So the basic VSIISExeLauncher.exe behavior is to get NuGet file from my initial path $(USERPROFILE)/.nuget/packages. Can I change that ? I was thinking about using "additionalProbingPaths": ["~/.nuget/packages"] in the runtimeconfig.json




Is there any solution to avoid that, or if it is impossible, can I tweak the *.csproj file in order to choose the packages folder ?

Any help appreciated !


Access violation with safeij.dll

$
0
0

Hi,

I am a semiconductor equipment software developer.

We've used VS6.0 with Windows 7 for many years, and recently changed our platform to VS2015.

The problem is, 

Our VS2015 project has no problem on Windows 7,

but when we use the same project on Windows 10 access violation errors happen with 'safeij.dll'. 

I tried to search for any information regarding 'safeij.dll', but nothing is found online.

Could somebody help me solve this problem?


Find text in column of a .csv file. Add/modify text if does not exist.

$
0
0

Hi all,

I am using C#.

I have a .csv file formatted as below.

COMPONENT, FREQUENCY

C456,             45

V345,            34

etc.

I want to search, for example, for C456.

If C456 does NOT exist, then add it into COMPONENT column and add 1 into the FREQUENCY column.

If C456 DOES exist, simply increment the number in the FREQUENCY column.

Regards

Francesco

How do I assess which elements of my app are slowing it?

$
0
0

Hi,

I have an app that starts out fresh as a daisy but can slow down quickly.

Is there a way to assess how much time is spent on each subroutine or what might be the cause?


Not seeing options in new project

$
0
0

Hi All I'm a total newbie to VS. Just trying to cut my teeth on a simple form but I seem to be having trouble even getting the right stuff installed. Im trying to build a form for data entry connected to a local SQL server using c# and windows forms??

here's where i'm at thanks for the help!! 


Everett Carson

Can't get the file i'm looking for via NugGet

$
0
0

Hello , we have restrictions as to what we can manually downloaded at work, but apparently we can download files from VS NuGet, but when i try to find the file i need using NuGet, its not showing up in the NugGet found list after the search, for example:

The "Get started with Blazor" example i'm referencing says to install theNET Core 3.0 SDK but manually downloading this file gets blocked by security, so i'm trying to find this same exact file name on NuGet using the following search items, but the file isn't being returned in the NuGet found list, so any pointers would be very much appreciated.

Search terms used on NuGet

sdk

dotnet-sdk-3.0.101-win-x64.exe   (this is the file being downloaded when i select the NET Core 3.0 SDK link)

dotnet-sdk


Mirroring words

$
0
0

I'm programming in Visual Studio 2019 for school. Can somebody explain me how to mirroring words in Visual Studio 2019.

Thanks for the help.

Unable to get razor page working

$
0
0
Still unable to make a simple razor webpage with visual studio 2019.

Step 1: Clicked on "make Asp.NET core web app". 2 minutes, nice demo page pops up. 

Step 2: Adding www hosted and existing Sql Server db to WEBSITE (not to VS, can see it there, credentials tested in SSMS) -> Other tools: 2 minutes, visual studio: 100+ hours and still fail! 

Need to use existing sql server db, need to use own sql, not datagrids. Please help me how to get this done!


Is it free to use VS 2017 ?

ResolveKeySource

$
0
0

I'm getting a build error:

"The target "ResolveKeySource" does not exist in this project."

It's a vb.net Windows Forms App.  VS 2019

Sure enough, ResolveKeySource doesn't exist - no mention I can find in the source.  

So it appears that I need it, for some reason.

I'd like to know just WTH this means and what do I have to do to to get this goofy thing to build.

I've search around and found no resources that will help.

Any suggestions, pointers, pr derisive peals of laughter will be welcome



"ResolveKeySource" does not exist

$
0
0

I'm getting a build error:

"The target "ResolveKeySource" does not exist in this project."

It's a vb.net Windows Forms App.  VS 2019

Sure enough, ResolveKeySource doesn't exist - no mention I can find in the source.  

So it appears that I need it, for some reason.

I'd like to know just WTH this means and what do I have to do to to get this goofy thing to build.

I've search around and found no resources that will help.

Any suggestions, pointers, pr derisive peals of laughter will be welcome

Viewing all 21115 articles
Browse latest View live


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