The operation could not completed - c#

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

Related

Creating an ASP.NET Core project

I want to create an Asp.net Core project with Visual Studio 2017 Community but the Solutions explorer says that I have (0 projects).
I tried selecting an empty project, web application, web application (Model-View-Controller) but the Solution explorer still displays (0 projects).
When I go-to Debug I see the "Attach to Process" option. There is no option to start of course since I have no projects.
What could be the issue?
Have you installed everything correctly? To verify this, open a normal cmd and just type 'dotnet'
Only if the command runs, printing out information about how to use dotnet, you're good to go.
Have you installed the correct .NET SDK? What version of it? Make sure the version is compatible with the version of visual studio you have installed.
Follow this link for step by step setup instructions:
https://www.c-sharpcorner.com/article/getting-started-with-net-core-on-visual-studio-2017/
This could be the same problem, but I had the same issue during College once but this time I had the support for the web components, so I went back to the installation and repaired it. It downloaded the missing files and it worked again and it took a while.
Let me know if that works or not.

Creating new project (.net Core Web) Visual Studio 2017 Error: Unterminated string. Path TemplateInfo[40].Tags.auth

Since yesterday I am getting a weird error when I try to create a new .Net Core Web project. The error I am getting:
It seems this is only the case for .Net Core projects (Console application .Net core also doesn't work but a regular .Net web project does work...
I looked online but it seems there is no documentation about this error whatsoever.
Some things I tried already:
Repairing Visual Studio 2017
Checked the log by running Devenv /log (Warning :
Performance warning: String load failed. Pkg:{D15F5C78-D04F-45FD-AEA2-D7982D8FA429} (VisualBasicProjectSystemPackage) LANG:0409 ID:2
)
UPDATE
I think I know what caused the problem. Prior to the problem I deleted my old user account (migrated the account so everything copied to a new user account), my guess is that Visual Studio also installs templates on my user account and with the removal of my old user account I also deleted some templates. The question however is, why is the .Net Core template the only one not working then?
Anyone know what causes this problem and how to fix it?
Removing Visual Studio and reinstalling it seems to fix the issue. Before reinstalling, make screenshots of all your settings and (manually) downloaded components.
Same problem here, I tried to repair (multiple times) the installation but the problem wasn't solved.
In my case I didn't change user accounts.. I just uninstalled VS 2013 Ultimate, Unistalled VS 2015 (with some difficulty) and then installed VS2017..

Always missing 'System.Data.Entity.Design'

Recently while working on a webp project within Visual Studio 2013, I updated a website that was using Entity Framework Database First, and wanted/needed to update to EF 6. Upon doing so I also needed to update the EF EDMX designer in order to support EF 6. The upgrade went perfectly fine within the web app I was working on.
I later opened a previous web project, one which does not make any use of EF, and was greeted with the application error message "Could not load file or assembly 'System.Data.Entity.Design'." I thought it was odd, that I was getting this error in a project that has 0 references or utilization of EF in anyway. Thinking it was something weird in VS I closed it and attempted to reopen the project and run it, but again the same error. So I then added System.Data.Entity.Design to the references list and I STILL couldn't run it, so I changed the properties to "Copy Local: True" and it finally worked.
I have been encountering this issue in all web projects I open and create, unless I already fixed the issue with the Copy local change. I figured that something with the update must not have occurred correctly and therefore not installed the EF DLLs to the GAC so I tried using gacutil to make the install using the command gacutil.exe /i System.Data.Entity.Design.dll but was presented with error message below.
Does anyone have any suggestions on how to resolve this issue? While it's not project breaking, it is rather frustrating whenever opening or creating projects to add an unnecessary DLL to the project simply to get it to run and debug.

Missing Entity Data Model in VS 2012

I cannot find the Entity Data Model under the 'Data' tab when adding a new item.
I have looked at several questions and answers, information on this and none of the solutions have worked.
I have repaired, uninstalled and reinstalled, installed the EF Tools package manually and tried uninstalling all VS related programs. I have also tried creating several new projects, Class Libraries, Web Projects under different .NET frameworks and it isn't there.
Main project: Visual Studio 2012, Class Library Project .NET 4.0
I updated Visual Studio 2012 using this link:
http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update. After this update, the "Entity Data Model" option was added to the data tab.
The new Entity Data Model in VS 2012 by default uses T4 templates (.tt) files instead of former custom tool for code generation. The generated context is also based newer DbContext API instead of ObjectContext API used by Visual Studio 2010 (that is the reason why it doesn't have the method - the equivalent method in DbContext API is Set<T>). Both T4 and DbContext API are currently recommended approach for using EF.
I don't have VS 2012 on my current machine but what you can try is to delete both .tt and turn on the old generation as described in .Desinger.cs.
Edit: You may try to Re-install VS2012 and/or repair it. That should fix this issue. In addition, look at the release version of your VS2012.
Another suggested solution to re-install and reason why this happens - Unable to add Entity data model to a Visual Studio project
The accepted answer from here solved the problem in my case:
http://www.datazx.cn/Fv7p5a/xw-US/oaax2pu/2q7xs6/d8x6rssc-b4mt-fsix-bc6c-ct8mf8d6fsbc23rsdfd.html
I finally figured it out. I ran EFTools.msi from a C:\ProgramData\Package Cache\ subfolder, which only allowed me to 'uninstall' or 'repair'. I tried repair, but I get the same problem, so I did 'uninstall', then ran it again and it allowed 'install'. After this install, I can now add Entity Data Models.
Also, the accepted answer in the "Missing Entity Framework Template in Visual Studio 2012 Express for Web" threat on forums.asp.net suggests that repairing Entity Framework Designer for Visual Studio 2012 enu via 'Start -> Control Panel -> Programs and Features' might work as well (I can post only two links with my current 1 point StackOverflow reputation, so I won't provide the exact source).
Another possible solution:
My Problem was: Visual Studio is installed on Drive D:\, whereas the Entity Framework Installer placed the Package in c:...\VisualStudio 10.0\Common7....\ItemTemplates folder. --> Copied the AdoNetEntityDataModelCSharp.zip to drive d: and ran devenv /installvstemplates. This fixxed it for me. Edit: Also had to copy Various DLLs from IDE folder, PrivateAssemblies and PublicAssemblies. then run devenv /ResetSkipPkgs
http://social.msdn.microsoft.com/Forums/en-US/c059069b-eae4-48b4-a06e-ffd5f186077b/adonet-data-entity-model-template-missing-in-vs-2010-ultimate?forum=adodotnetentityframework
I also installed VS in a non-default path (different disk partition), so it indeed may be one of the potential causes of the problem.
You can right-click the designer surface and choose the model browser; Here is the only way to activate the Model browser in solution explorer.
The Model browser is included in VS 2012 recommended settings during installation.

Strange problem installing a setup that I have just created

I have both VS 2005 and 2008 installed.
Just today I created a setup project in 2005 and I got this error when I tried to installed it.
"The folder path 'http://sharingcentre.info' contains an invalid character."
So I decided to create a simple project and added a new setup in 2005 and got the same problem.
I then converted the project to 2008 and added another new setup. The same problem happened again.
However, a previous setup project I created before work ok. I can install my application. Its only from today I cannot install any of my new setup projects. Using either 2005 and 2008.
Has anyone else had this same problem.
Searching google doesn't give me any real responses, I give the error message is too vague.
many thanks for any suggestions,
I removed the link that was in the setup property. That solved the problem.

Categories

Resources