Where has StateMachine gone in Visual Studio 2012 - workflow-foundation-4

I'm working through the MSDN Windows Workflow Tutorial's and want to create a StateMachine Workflow.
The tutorial says:
"Drag a StateMachine activity from the State Machine section of the
Toolbox and drop it onto the Drop activity here label on the workflow
design surface."
but this option does not exist in the toolbox of my Visual Studio 2012 Professional (all the others are there).
Where is it?

As #Jota kindly pointed out - StateMachine was only added in .NET 4.0.3. When I upgraded the project to 4.5 (from 4.0) the StateMachine option appeared in my toolbox.
Thank you Jota.

Related

VS 2015 Preview missing "ASP.NET 5 Web Application" project type?

In Visual Studio 2015 Preview, I see the following vNext templates in the "New Project" window:
I am under the impression that I should also see an entry for "ASP.NET 5 Empty Web Application" or something similar, but I see no such thing. Those two entries are the only "vNext" designated entries that I have installed.
Is there an additional binary I need to install in order to enable this type of project to appear? Or do I need to examine my VS 2015 Preview installation?
Note: I do have an entry for "ASP.NET Web Application", which takes me through the setup with the unified architecture but does not appear to include a project.json file or things that I'm associating with ASP.NET 5 development.
Update: Per this article regarding 2013 I also tried to run devenv.exe /installvstemplates, but that didn't work either. To clarify, I don't see any new web template, which the screenshot below illustrates as well:
I was having the same problem, except that unlike the accepted answer suggests, the ASP.NET Web Application was not on the list of templates at all.
I was able to get it to show up after following the instructions from this article.
From Visual Studio 2015: Tools -> Extensions and Updates
Select Online then click Visual Studio Gallery
Search for ASP.NET Project Templates and download the first result.
Go through installation process, relaunch Visual Studio, and Web Application should now be an option!
Alternately, you can download the templates directly here.
I believe this download actually is meant to install some other templates that I wasn't interested in, but installing them must have also installed the base template in the process. Either way, it worked for me.
Visual Studio Ultimate 2015 Preview contains everything you need to create an ASP.NET 5 (vNext) web application. One additional generic option should be available that's not depicted in your question:
It's not entirely clear at this point, but choosing the generic web application option will present a few ASP.NET 5 (vNext) options that you're seeking in the following dialog:
In Visual Studio 2015 Preview Microsoft has renamed ASP.NET vNext to ASP.NET 5
If you open http://www.asp.net/vnext, in every article vNext is metioned as ASP.NET 5
In following Sam's Suggestion, I noticed that there were Updates Pending. One of these updates included the missing ASP.NET 5 templates.
Tools > Extensions & Updates > Updates > Visual Studio Gallery
Once updated & Installed, the Web Application was then available as described in the tutorial.
The new update released this week has renamed ASP.NET 5 into a new framework which they are now calling ASP.NET Core. More information can be found in this article https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/
VS 2015 Preview is going under ASP.net Core web application. If you cant see that one under templates you may go to this site and download .NET Core 1.0 for Visual Studio then install.
In my case the problem was in the Microsoft .NET Core 1.0.1 VS 2015 Tooling Preview 2 corrupted installation.
It was performed:
install the ASP.NET Project Templates following answer from this post - NO RESULT
reinstalling Microsoft Web Developer Tools from the identical SO post - NO RESULT
fresh install the IDE using TotalUninstaller tool - NO RESULT
repair the Microsoft .NET Core 1.0.1 (see the sketch below) - SOLVED
Only repair .NET Core 1.0.1 finally solved the problem!
For that you have to download the .net core cross platform development, below steps you will refer
open VISUAL Studio installer
click the option in the list click modify
below image you can refer it
once complete installation,now you have the option for asp.net core web application

ASP.NET Web Application template missing in Visual Studio 2012

has anyone else dealt with this? My ultimate goal is to create a new empty web api project. I've been following tutorials and I've encountered the following issue:
My issue is that when I try to create a ASP.NET Web Application project in Visual Studio Pro 2012 I do not see that template as an option. I go to Installed --> Templates --> Visual C# --> Web
All I see is ASP.NET Empty Web Application. So I selected that and then expected the ASP.Net project window to pop up so that I could select "Web Api". However, that dialog never opened.
Does anyone know how/where I can get the ASP.NET Web Application template?
I came across your question as I had the same problem. When I first installed Visual Studio I didn't tick the box to install the Web Components. Here is how I solved the issue:
Close all your instances of Visual Studio.
Run the Visual Studio Installer (I found mine in the Downloads folder still and was named "vs_professional.exe").
For VS 2013 a grey window appears similar to when first installing VS.
When prompted select "Modify" from the list of options.
Tick the list item which I think was named "Web Development" or something similar.
Click update.
Once the installer has finished running launch Visual Studio.
When selecting New Project in Visual Studio I can now see the required templates.
Try to select Framework 4.5.
The Framework 4.0 don't have :)
Jorge Rocha
If you have ASP.NET MVC 4 Web Application as an option under Web when you select it as a new project the project window pops up and you will be able to select Web API.
kale909's solution worked for me. I just added pics here to make it more clear:
then here:

Custom Activities missing from Toolbox after upgrade from VS 2010 to VS 2012

I have a large solution with a number of projects in it.
I recently upgraded to VS 2012 and changed the Target Framework of all the projects to .NET Framework 4.5.
I now cannot see any of my Custom Activities in the Toolbox.
My Custom Activities are in the same Project as the Flowchart activity I am building so should show up automatically.
If I use Choose Items I can load the Custom Activities into a Toolbar folder by pointing at the .dll. I don't want to do that because it ties me to the debug or release dll.
I've tried a few things from the web but not found a solution.
Any idea what I should do?
Make sure the custom activities project target platform is AnyCPU. If it is set to x64, VS will not be able to load it as VS is still x86.
I passed my code to Microsoft who tell me that this is a bug in VS 2012 and that it is solved in VS 2013

System.Data.SQLite Visual Studio 2012 .NET 4.5 Won't Show in Data Source

I'm developing on a Winodws 7 x86 machine in Visual Studio 2012 using .NET 4.5. I installed the x86/x64 System.Data.SQLite official Nuget package for my project. But I still don't see it as an option in the Data Source\Data Provider selections in the "Choose data source" dialog. I saw this answer here and it looks like this is all I should have to do (SQLite 1.0.82.0 (latest) in Visual Studio 2012 not showing in Designer Data Source). Am I missing something?
Thanks!
This package worked for me.
Apparently
"This setup package is capable of installing the design-time
components for Visual Studio 2012."
means
"This setup package is required for installing the design-time
components for Visual Studio 2012."
I just wanted to add this as a followup because I was having issues seeing the designer in VS2012 as well and it may help others in the future.
After multiple attempts at installing the designer and not seeing it show up, I ran
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe /setup
This will force VS to rebuild its registry based on all of the installed packages. This will take a couple of minutes. Afterwards, I was able to start up VS 2012 and see the entry.
I am curious whether the installer executes this command at all or if it just triggers it but does not wait for it to finish. At which point the end user opens VS 2012 before the command has time to finish.

Visual Studio 2008 SP1 crash when opening MVC View

I have Visual Studio 2008 SP1 and ASP.NET MVC RC installed on a XP SP2 machine with .NET Framework 3.5 SP1. (That's a lot of SP's in one sentence!)
I've a ASP.NET MVC project that I can edit just fine with Visual Web Developer Express.
But opening a View page in Visual Studio 2008 SP1 makes Visual Studio to crash and vanish without even giving an error message.
Now, some bloggers have proposed that either Visual Studio Power Tools of TFS Power Tools could be causing this. However, I have neither installed.
Visual Studio can be started with /SafeMode option which solves the issue. But I'd like to know if there's more elegant solution available?
Pom
Microsoft have now released a hotfix to resolve this issue.
See https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16827&wa=wsignin1.0
Phil Haack elaborates here - http://haacked.com/archive/2009/03/06/hotfix-for-installing-aspnetmvc.aspx
What solved it for me was clearing the Native Image Cache.
go to %windir%\assembly and delete the folders that start with NativeImages. I Have two... NativeImages_v2.0.50727_32 and NativeImages_v2.0.50727_64 because I'm running 64-bit Vista.
I had this same problem a few days back, and I removed all examples of Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll. I found the solution on google, and like you I'm not running PowerTools. I guess you're seeing
.NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A035E00) (80131506)?
I renamed all examples of that DLL and rebooted, and now I can work again, don't know what I'll do when I have to unit test SilverLight again though.
Answering to myself here:
I eventually removed Visual Studio add-in called Ora. That seemed to stop MVC View related Visual Studio crashes.

Resources