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

Errors when upgrading TFS 2013 to 2018

$
0
0

Apologies if this is not in the proper forum; this is the closest that I could find.

I am attempting to test an upgrade of our TFS 2013 installation to TFS 2018.  Everything that I have seen online shows that this is possible.

Our current TFS instance is 2013 (v12.0.30324.0)  running on a Win 2008 server. It connects to a database on another server (win 2012/sql 2012).

We set up a Win 2016 server for the new front-end, which is connecting to SQL server 2016 (currently latest build, 2016 sp2: 13.0.5292.0). The database has been successfully backed up from the existing instance and restored to the new 2016 sql instance.

I start the TFS installation process, select that I will be doing an upgrade, and when it asks to specify a Team Foundation Server configuration database, I enter the server name and get this error:  "No Team Foundation Server databases were found on the given SQL Server Instance."

I can manually connect to the database through SSMS.

I can’t find any references to this on the web – everything talks about migrating from one instance to another instance of TFS, where an error regarding detaching a database occurs, but this doesn’t even recognize the database. 

Any ideas what the issue might be?


Export to a file what Visual Studio Modify shows

$
0
0
I need to compare what I have installed for Microsoft Visual studio community edition with another developer who suspects the problems I have are due to not having installed the proper components. Ho send me a visual snapshot he made but that is not the best solution as it's not complete and is easy to miss items. Is there a way to export that to a file and compare that way?

WPF designer - Access is denied 0x80070005

$
0
0

Hi,

Have a problem with a new installation of Visual Studio 2017 - Version 15.9.9 on new notebook.

Installation did not have any problem. Loaded project I am working on without a problem.

But WPF designer is showing the next error

System.UnauthorizedAccessException
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at Microsoft.VisualStudio.DesignTools.Utility.AssemblyHelper.LoadFile(String path, Action`1 logger)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.AssemblyService.CreateClassicShadowCopy(String assemblyPath, String projectPath, ReferenceAssemblyContext context, Boolean useReflectionOnlyLoad)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.AssemblyService.ResolveShadowCopyAssembly(String assemblyPath, String projectPath, ReferenceAssemblyContext context, Boolean useReflectionOnlyLoad)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.AssemblyService.ResolveAssembly(String assemblyPath, String assemblyFullName, String projectPath, ReferenceAssemblyContext context, Boolean useReflectionOnlyLoad)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.GetAssemblyInformationInternal(String path)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.GetAssemblyInformation(String assemblyLocation)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.InternalAddAssemblyReference(String assemblyLocation)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.UpdateAssemblyReferences(IEnumerable`1 referencesToUpdate)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyResolver.Initialize()
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyService.GetProjectAssemblyResolver(IHostProject project)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.Assemblies.ProjectAssemblyService.CreatePlatformReferenceAssemblyResolver(IHostProject project)
   at Microsoft.VisualStudio.DesignTools.Designer.Documents.Project.ProjectContextManager.CreatePlatformReferenceAssemblyResolver(IHostProject project)
   at Microsoft.VisualStudio.DesignTools.Designer.Documents.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)
   at Microsoft.VisualStudio.DesignTools.Designer.Documents.Project.ProjectContextManager.<GetContextsInActiveSolution>d__94.MoveNext()
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.ReplaceStyleTemplateCommand.ResolveDefaultStyle(SceneNode targetElement, Object defaultStyleKey, Boolean allowDefaultStyle, DocumentNode& currentStyle, Boolean& isThemeStyle, IList`1& auxiliaryResources)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.ReplaceStyleTemplateCommand.ProvideCurrentStyle(SceneNode targetElement, IType targetType, PropertyReference targetPropertyReference, Boolean allowDefaultStyle, IList`1& auxiliaryResources)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.EditCopyOfStyleCommand.get_IsEnabled()
   at Microsoft.VisualStudio.DesignTools.Utility.Commands.Command.GetProperty(String propertyName, Object defaultValue)
   at Microsoft.VisualStudio.DesignTools.XamlDesigner.Commands.ReplaceStyleTemplateCommand.GetProperty(String propertyName)
   at Microsoft.VisualStudio.DesignTools.Utility.Commands.CommandTarget.<>c__DisplayClass21_0.<GetCommandProperty>b__0()
   at Microsoft.VisualStudio.DesignTools.Utility.ProtectionZone.DummyProtectionZone.Execute[T](Func`1 func)
   at Microsoft.VisualStudio.DesignTools.Utility.Commands.CommandTarget.GetCommandProperty(String commandName, String propertyName)
   at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneView.UpdateCommandState(IEnumerable`1 commandNames, Boolean forceRefresh)
   at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneView.SelectionManager_LateActiveSceneUpdatePhase(Object sender, SceneUpdatePhaseEventArgs args)
   at Microsoft.VisualStudio.DesignTools.Designer.ViewModel.SceneUpdatePhaseEventHandler.Invoke(Object sender, SceneUpdatePhaseEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.ViewModel.Selection.SelectionManager.FireLateActiveSceneUpdatePhase(SceneUpdatePhaseEventArgs args)
   at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneViewUpdateScheduleTask.UpdateLate()
   at Microsoft.VisualStudio.DesignTools.Utility.Scheduler.ScheduleTask.Update()
   at Microsoft.VisualStudio.DesignTools.Utility.Scheduler.SchedulingService.DispatchTasksAtPriority(DispatcherPriority priority)
   at Microsoft.VisualStudio.DesignTools.Utility.Scheduler.SchedulingService.DispatcherToken.Dispatch(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass3_0.<Main>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

The first load is fine and shows the form but as soon I want to change and of the XAML code the above error shows in designer. When clicking the option 'Click her to reload the designer' the view is showing again.

Have search for solutions but none is working or give me a clue where there problem comes from.

One solution was to remove privateregistry.bin which I did but that did not work.

Problem occurs with every view/form/usercontrol even newly created one.

Building the project is no problem and everything works.

Can someone please help me get rid of this problem?

Greetings,

Ernst Jan

Cannot open project after new installation of sql

$
0
0

I installed SQL on a different computer because my other computer went dead, and I get a Message: "A network-related or instance-specific error occurred while establishing a connection to SQL Server".

What can I do to prevent this Message, to be able to open the project and reconnect it to SQL?


I tried frixing the problem by opening in Design, to the TAB "Compile"

and Checked the box "Disable all Warnings"

also I tried to Check "Treat all Warnings as error"

and it doesn't help when it gets to the following stage:

 SQLTXT = "SET CONCAT_NULL_YIELDS_NULL OFF"            gg = "GO"            Dim SqlKTP As New SqlConnection(SQLConection)            SqlKTP.Open()            Dim AdlKTsExuP As New SqlCommand(SQLTXT, SqlKTP)            AdlKTsExuP.ExecuteNonQuery( )

how can I prevent any warning?

Thanks in Advance

 




When I built one project in a solution, why built all?

$
0
0

I am using Visual Studio 2013. When I built one project (Project A) in a solution, it built all 3 projects. One project (Project B) has error but I don't care. The issue here is it won't publish Project A because Project B has error. 

I have worked on other solutions that I could just build one project. Please advise.

Thanks.

vb 2019 = Cannot open project after new installation of sql

$
0
0

I installed SQL on a different computer because my other computer went dead, and I get a Message: "A network-related or instance-specific error occurred while establishing a connection to SQL Server".

What can I do to prevent this Message, to be able to open the project and reconnect it to SQL?


I tried frixing the problem by opening in Design, to the TAB "Compile"

and Checked the box "Disable all Warnings"

also I tried to Check "Treat all Warnings as error"

and it doesn't help when it gets to the following stage:

 SQLTXT = "SET CONCAT_NULL_YIELDS_NULL OFF"            gg = "GO"            Dim SqlKTP As New SqlConnection(SQLConection)            SqlKTP.Open()            Dim AdlKTsExuP As New SqlCommand(SQLTXT, SqlKTP)            AdlKTsExuP.ExecuteNonQuery( )

how can I prevent any warning?

Thanks in Advance

Visual Studio 2019 Connected Service Key Vault missing?

$
0
0

Hi there,

I am using VS 2019 Enterprise 16.0.1 with the Web Workload installed.

Neither a .NET Core nor a .NET Standard Webapplication is showing the Option "Secure Secrets with Azure Key Vault" under the Add Connected Service tab.

What is going on here?


Get full error details

$
0
0

Hi,

In Visual Studio 2017, I am getting this error in my project.

Unhandled Exception:Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference occurred


How can I get the full error details including the page and line number just like the old Visual Studios?

Thanks,

Jassim


Visual Studio 2019 & Data Connection & Entity Framework Wizard (Oracle)

$
0
0

I'm trying to do two things with VS2019 and am having some trouble.

First, I'm trying to create a Data Connection to an Oracle database that I can use when creating all the Entity Framework contexts, etc. I am able to create a connection, but I really need to specify that it uses a different schema in the Oracle database.

Second, I'm trying to use the Data Connection I created as I go through the Entity Framework Wizard (I need to import the database schema so I can use EF in my code). The problem I am having here is that the Data Connection that I previously created doesn't appear as an option in the combo box for "Which data connection should your application use to connect to the database?"

So, here are my questions which both need to be solved for me to import my database into EF:

  1. How do I specify the schema when I create the Data Connection (without this, I won't be able to choose tables for the Entity Framework Wizard—there are no objects in the default schema)?
  2. Where is my connection when I'm going through the EF Wizard?

After I get these two issues solved, then I can try and actually complete the EF Wizard.

Thanks,
Jay

REMOTE DEBUGGING IN VISUAL STUDIO 2017

$
0
0

Hi ,

I am trying to execute a SSIS package via Visual studio 2017. There is a script task used in vb which tries to hit a webservice wsdl.. While executing the task I get an error as Unable to step into the server. Remote debugger is not supported.

The remote debugger is enabled on the remote computer.

Can someone please help with this.TIA.

After installation VS 2019 cannot build or create any project. VS 2017, 2015 works ok.

$
0
0

I installed VS 2019 pro.

When I open existing project in vs2019, I cannot build project. The project works and buildscorrectly in VS2017.
When I open in VS2019 the project (just now clearly created and working in VS2017), project does not load (in vs2019) and this warning appears.

C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj : error  : The tools version "15.0" is unrecognized. Available tools versions are "12.0", "14.0", "2.0","3.5", "4.0".  C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj

When I manually change (in .csproj file) 

<Project ToolsVersion="15.0" 
to
<Project ToolsVersion="14.0"
Then when trying to reload project, only appears info, that migration is needed.

Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
  - WebApplication1, "C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1\WebApplication1.csproj"

Non-functional changes required
Visual Studio will automatically make non-functional changes to the following projects in order to enable them to open in Visual Studio 2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1. Project behavior will not be impacted.
  - WebApplication1, "C:\Users\ik.CEBIA\source\repos\WebApplication1\WebApplication1.sln"

When I try to create completely new project in VS2019 (c#/Windows/WEB/ASP.net web application/MVC), only this error appears:

The tools version "15.0" is unrecognized. Available tools versions are "12.0", "14.0", "2.0", "3.5", "4.0".

When I open VS2019 development command prompt and type: msbuild /version, I get this:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>msbuild /version
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
15.9.21.664

The version 15.9.21.664 is strange.

When I open in VS2019 any existing project, it cannot be built in VS2019.

Output:
1>------ Rebuild All started: Project: ZTP_vin, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: ZTP_vin_cs, Configuration: Debug Any CPU ------
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========

Warnings:
Warning  Could not find rule set file "ManagedMinimumRules.ruleset". ZTP_vin C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.VisualBasic.CurrentVersion.targets 133 

Warning  The target "CollectReferencedNuGetPackages" does not exist in the project. ZTP_vin D:\AAA_data\AAA_VB\ZTP_vin\ZTP_vin\ZTP_vin.vbproj  
Warning  The referenced component 'System' could not be found. ZTP_vin_cs   
Warning  Could not create output directory ''.  Exception has been thrown by the target of an invocation. ZTP_vin_cs   
Warning  The referenced component 'Microsoft.CSharp' could not be found. ZTP_vin_cs   
Warning  The referenced component 'Microsoft.VisualBasic' could not be found. ZTP_vin_cs   
Warning  The referenced component 'System.Xml.Linq' could not be found. ZTP_vin_cs   
Warning  The referenced component 'System.Xml' could not be found. ZTP_vin_cs   
Warning  Could not find rule set file "ManagedMinimumRules.ruleset". ZTP_vin_cs C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets 133 

My environment:Win 10 pro, 1809 (build 17763.404)
VS2015, VS2017, VS2019 - pro



Visual Studio with Win7 need to run at Win10

$
0
0

Hi, a newbie here and I wanted to be directed to the correct path. I have Visual Studio 2010 running on Win7 and when we build the executable which runs on as a 64bit application.

Question 1:Now, Can I execute a build with my Studio 2010 on the Win7 PC but perform a build so the executable it produces will work on a target Win10 PC? We haven't moved our Studio to a Win10 development PC just yet.

Question 2: Installing Studio 2010, will install work on a Win10 development PC?

Thanks...so sorry for the newbie question.

Angular templates Intellisense

$
0
0

I am using Visual Studio as my angular application editor. I want to know how I can add comments to inline html templates stored in ts files. I cannot figure the same in VS Code.

Thanks

Error BC2012 Can't Open for writing: Access to the path is denied.

$
0
0

Running VS2015 with Win10, .NET Framework 4.5, project is in VB. Was able to run project approximately 2,000 times before the error started occurring:
"vbc : error BC2012: can't open 'C:\MyProject\ProjR5\ProjR5\obj\Debug\ProjR5.exe' for writing: Access to the path 'C:\MyProject\ProjR5\ProjR5\obj\Debug\ProjR5.exe' is denied."

I have checked the path, the the ProjR5.exe doesn't even exist, yet upon starting the build, VS is looking for it, however, based on the error semantics, the issue isn't the missing file, but the denial of access to anything in the path ... or is it?

I have spent a greater portion of three days scouring the web for a solution to the problem, to no avail. Here is what I have tried to alleviate this problem ... Have I missed something?

  • ran sfc /scannow (elevated prompt)
  • Using ProcessExplorer, find handle or DLL substring that included my project
  • Made sure there were no hanging procs (including procs with my project name, devenv.exe, [project].exe, [myproject].vhost.exe, etc.)
  • Restarted VS2015
  • Restarted VS2015, running "as Administrator"
  • Restarted Computer
  • Full Shutdown of computer
  • Complete Rebuild of Solution
  • Complete Reentry of all code from scratch
  • Removed all references
  • Re-added all references
  • Build->Clean Solution
  • Build->Clean Solution, then Build->Build Solution
  • Build->Rebuild Solution
  • Uninstalled and Reinstalled VS2015
  • Disabled All Indexing
  • Removed "Read Only" attribute from entire project folder
  • Checked startup scripts for like- or identical processes
  • Disabled all antivirus apps
  • Disabled all antispyware apps
  • Disabled all firewalls
  • Verified Application Experience (in services.msc) wasn't disabled (I'm using Win10 ... it isn't in the list of services)
  • Set Tools->Options->Projects and Solutions->Build and Run->Max. parallel builds to 1
  • Rerun aspnet_regiis.exe (under .NET\Framework)
  • Checked Local Security Policies and verified account was listed under "Impersonate a client after authentication"
  • Removed \bin and \obj folders altogether
  • Put \bin and \obj back when removing didn't help

I'm sure I've overlooked something right in front of my nose. Any ideas?

Intellisense not working on one project - VS2019

$
0
0

Hello,

I'm having issues with one specific project in VS2019. After upgrading from VS2017, I got the solution from the TFS.

Everything was working fine until I modified a file of this project. Intellisense stopped working.

It should be something related to this project file because if I modify other files in other projects from the same solution it keeps working fine.

What can I do to try to fix it?


Hugo


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

Source code for ReportViewer Control

$
0
0

Hi,

I am after the source code for report Viewer Control. Kindly provide reference Links. Thanks is advance.

Regards,

Balaji


balaji

How do I report a problem with Visual Studio?

$
0
0

I am running Visual Studio offline, so I cannot Report a Problem in the normal way.

I tried the "Access my subscription" button on the email I recently received from Microsoft. On "My Visual Studio" page, I clicked on the Technical Support "Chat to Activate" Link and waited for ages. After waiting for over 60 minutes, I gave up on that.

Use of kanban

$
0
0

Can you point me to instructions for how to enable kanban in Team Foundation Server 2017? I am wondering...Thank you.

Create a C++/WinRT UWP library Visual Studio 2019

$
0
0

It is unclear to me what the appropriate project Visual Studio 2019 template is to make a C++/WinRT UWP library. I wrote a simple UWP app that scanned for Bluetooth Low Energy advertisements. I needed all this special C++/WinRT infrastructure to access the Bluetooth APIs. Now what I would like to do is take that Bluetooth code and make a library out of it.

How do I do that? It was so straightforward when using basic C++.

When using Visual Studio 2019 and filtering on C++ and library, the only options I get for a static or dynamic library that supports UWP is C++/CX. There are no options for C++/winRT.

Viewing all 21115 articles
Browse latest View live