I want to add a new form named Entry.cs but somehow it copies the design of my EntryForm.cs with locked control.
I don't know what happened but previously i was able to add a new blank form without controls but now whenever I create a new form it just copies my EntryForm.cs with locked controls.
It seems like the other option is missing, I only see the inherited option also i opened a different project and its the same only inherited option is available.
When I tried repair it shows the error below:
Error log:
Something went wrong with the install.
You can troubleshoot the package failures by:
1. Search for solutions using the search URL below for each package failure
2. Modify your selections for the affected workloads or components and then retry the installation
3. Remove the product from your machine and then install again
If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.
================================================================================
Package 'Microsoft.AspNetCore.SharedFramework.5.0.5.0.1-servicing.20601.7.x64,version=16.8.30804.86,chip=x64' failed to repair.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.AspNetCore.SharedFramework.5.0.5.0.1-servicing.20601.7.x64;PackageAction=Repair;ReturnCode=1603
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.AspNetCore.SharedFramework.5.0.5.0.1-servicing.20601.7.x64,version=16.8.30804.86,chip=x64\aspnetcore-runtime-5.0.1-servicing.20601.7-win-x64.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 DOTNETHOME="C:\Program Files\dotnet" ALLOWMSIINSTALL="True" REINSTALL=ALL REINSTALLMODE="cmuse" IGNOREDEPENDENCIES=ALL
Return code: 1603
Return code details: Fatal error during installation.
Log
C:\Users\User\AppData\Local\Temp\dd_setup_20210109003135_063_Microsoft.AspNetCore.SharedFramework.5.0.5.0.1-servicing.20601.7.x64.log
Impacted workloads
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=16.8.30509.167)
Impacted components
.NET 5.0 Runtime (Microsoft.NetCore.Component.Runtime.5.0,version=16.8.30804.86)
.NET Core development tools (Microsoft.NetCore.Component.DevelopmentTools,version=16.8.30607.99)
.NET Core development tools (Microsoft.NetCore.Component.Web,version=16.5.29721.120)
.NET SDK (Microsoft.NetCore.Component.SDK,version=16.8.30804.86)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=16.0.28517.75)
Azure WebJobs Tools (Component.Microsoft.VisualStudio.Web.AzureFunctions,version=16.0.28714.129)
Azure WebJobs Tools (Microsoft.VisualStudio.ComponentGroup.AzureFunctions,version=16.0.28621.142)
Cloud tools for web development (Microsoft.VisualStudio.ComponentGroup.Web.CloudTools,version=16.2.29003.222)
Container development tools (Microsoft.VisualStudio.Component.DockerTools,version=16.4.29409.204)
I want to create a new blank form, how can I do this? Please help thank you!
That's because you choose from creation dialog the "inherited form". Inherited form inherits from main form and that's why you're getting same controls.
Try to find an empty form, it should be somewhere there. If it doesn't check project's settings.
So i just figured it out my public partial class EntryForm : Form is causing the problem. I change it to public partial class EntryForm: System.Windows.Forms.Form then I reinstalled C# .Net Framework seems like it was uninstalled after i installed ASP.Net, now I was able to choose Windows Form not inherited.
I had this same issue, I found that if you open Visual Studio installer, select modify. You will see .Net desktop Development is unchecked. Check it select modify finish install. After you will be able to select Form again.
Related
I've created a solution in VS2022 using the WPF application template (not the one that says (.net framework)) and when trying to run it I get the error popping up:
"The project doesn't know how to run the profile with name 'wpftestproject' and comment 'Project'."
See the image below, it's not an output window error but an actual pop-up window.
I'm on Windows 10 pro and trying to get this template solution to run (it should pop up a MainWindow).
I have no idea what could be the source of this issue and I'm not finding anything online.
One thing I noticed is that under application properties the "Target framework" is default to .NET6.0 and not .NET CORE 3.0 for some reason. Though changing this isn't fixing it.
I've also tried having a look over my VS installation, it doesn't seem to me that anything is missing but maybe someone else knows something:
Normally you need to install correctly, .Net desktop development and universal windows platform development.(Try to reinstall .Net desktop development)
And install the packages you need in individual components.
If reinstalling these does not help you, I suggest you choose update->repair
Recently I tried out Visual Studio 2017. We've got a MSDN Subscription. We're working on some internal apps which we're writing as WPF apps. These apps need to be installed on user machines (Windows 7 through Windows 10) where the users have no administrative privileges. The thing which has hurt us the most, at this point, is getting the ReportViewer control to install without requiring an administrator to be around. It was impossible with VS 2015 and older, because (so I understand) VS 2015 and older, the ReportViewer control is an ActiveX control which requires admin privileges to install. I have been told that with VS 2017 the new ReportViewer control (version 14) is not an ActiveX control; that it does not require admin privileges. This is great news and I told my colleagues this. In order to demonstrate this I wrote a very simple WPF app using VS 2017. All I did was put the ReportViewer control onto a window. It did take about 6 weeks to finally get it to work (way longer than it should have), but I got it to deploy to a machine using ClickOnce deployment.
Next I thought I'd prove to myself that I could do it again, this time taking notes as to what I did. I've tried twice to duplicate the same, simple app, but I keep getting the following message:
This is not going to do at all, because that takes us right back to the same problem - some admin must be near by to install this app. We do not want that. Briefly here are the steps I took:
Installed the Microsoft.SqlServer.Types version 14.0.314.76 using the Package Manager Console from within VS.
Installed Microsoft.ReportingServices.ReportViewerControl.Winforms version 140.340.80 using Package Manager Console
In XAML I included namespace Microsoft.ReportViewer.WinForms in the window tag.
Added references to System.Windows.Forms and WindowsFormsIntegration
Added the following XAML in the Grid tag of the window:
Set up the ClickOnce deployment
Because of a bug involving the Chinese location files, I went into the project's Publish tab | Application Files and sent all of the files beginning with "zh-" to Exclude for Publish Status.
Then I published it to the network share and ran the ClickOnce Setup.exe on a machine which didn't have the older ReportViewer installed using an account with no privileges.
And I got the "System Update Required" message I gave near the beginning of this post.
Why is this happening? Why does it require Microsoft.VisualStudio.Text.Logic be installed in the GAC? Especially for an app that doesn't even connect to any database at all?
As it looks the important DLLs for the ReportViewer files in GAC which also includes the Microsoft.VisualStudio.Text.Logic DLL into the package. Therefore, it shows the error unless it found the missing DLL.
Try below steps to add DLL into your project toolbar:
Run the below command in the Package Manager Console:
Install-Package Microsoft.ReportingServices.ReportViewerControl.Winforms -Version 140.340.80
Right click in anywhere in the toolbox and then select Choose Items...
On the .NET Framework Components, click on Browse
Select the Microsoft.ReportViewer.WinForms.dll from the NuGet package you installed.
The new control should display within the toolbox. And then try to publish your project with this new reportviewer.
As mention in a link shared by Dmitry 's comment.
I have created new MVC web application in visual studio with Individual account. Every functionality is working fine including Identity and sql localDB.
But when I add entity framework into my project. It giving me error in dialog box. "The operation could not completed". In output window i saw
TF10121: The path '\\D:\c#\2016\testdelete\testdelete\Data\Model1.edmx.diagram' is not found or not supported. Type or select a different path.
I googled it but everybody giving different solution and those are not working.
I re-install my visual studio, but same error.
Do I need to change any path to solve this issue ?
I have created new solution from scratch, and there is only one project.
Tried with below solutions,
VS2010 The operation could not be completed
Installed mentioned package. (ASPNET WEB FRAMEWORK TOOL)
Visual studio was suggested me to install "AspNet5.ENU.RC1_Update1_KB3137909", and I installed this too.
I am using latest EF.
I tried to remove project and created new project as mentioned here,
http://chrisghardwick.blogspot.in/2011/12/tf10121-path-is-not-found-or-not.html
I am missing the usual publish targets when publishing my c# web application. The usual "Import" and "Custom" options are missing when I go to publish, as well as the "Manage Profiles" drop down that has the option to create a new profile.
Here is the screen I am presented with.
The buttons on the left hand side are "greyed out"
Here is another screen from a colleague that has the missing options
I have tried a full reinstall of Visual Studio 2015 update 1 with no success. I have also tried creating a fresh ASP.NET Web application project in a new solution resulting with the same problem.
In the end this ended up being a corrupt publish profile file in the Properties/PublishProfiles/xxxx.pubxml within the project.
There are multipy options for this behavior:
Issue with the Web Deploy Tool
Try to reinstall the current Web Deploy 3.5 Tool
Depending on the exact Version of your Visual Studio and your Operating System
There are known issues about specific OS/Visual Studio combinations.
Missing Web Developer Tools at Installation
Select the Web Developer Tools Option at installation
I've been struggling with Visual Studio to create a windows installer msi.
This is what I was hoping to create in the msi:
Installer opens and first page has a couple fields where you can enter various config locations, including being able to browse, and also some drop downs with various config setups.
Click Next or Finish or whatever and custom C# code I have written gets executed depending on the choices chosen by the user.
When looking at the Visual Studio Installer Project, I can add a dialog, but they are all predefined for me. I was hoping for something like when you create a Windows Forms Application.
Is this not possible? Is the windows installer project just that inflexible? What are my other options in Visual Studio (note I don't want to use another program that may be out there)?
The Installer class gives you a way to take get full control of what happens during installation for a VS installation project. However, you would have to use a modal dialog to collect the information you're describing, so the user experiecne would not be as smooth as an integrated wizard page.
I strongly suggest you to take a look into WIX.
It is more complex than VS install projects but it is much more flexible also