What to do when Visual Studio templates are missing • Sep 21st, 2010 • • I recently stumbled upon a problem where some Visual Studio templates wasn't available when I choose Add new item in Visual Studio. I needed to generate some LINQ to SQL classes, but the Data alternative wasn't there. After some searching, here's what solved the problem: For Visual Studio 2010, find the VS command prompt (in the start menu), right click it and choose 'Run as administrator'. Execute this command: devenv.exe /vsinstalltemplates You won't be noticed if anything succeeds or fails, but you should now have the appropriate Visual Studio templates available in the Add new item menu. For Visual Studio 2008, I solved the problem by re-installing. Also, you can have a look in the C: Program Files (x86) Microsoft Visual Studio 10.0 Common7 IDE ItemTemplates folder to see what's missing. You can even copy zip files from other Visual Studio installations to the folders here and execute the above command for Visual Studio 2010, and get it working. Also - there's a difference when adding files in Solution Explorer, compared to through the File menu. Here are some blog posts and stack overflow posts that helped me: • • • Comments. ![]() ![]() I had replied to one of the posts on an online forum sites which had a simple question. However, looking at the upvote count by different users shows that there’re many who had similar question. Thus, I decided to create a blog post on the same, Question: W hy Asp.Net Web Service Application template is missing in Visual Studio 2010? Solution: ASP.NET Web Service Application project template is not available for.Net framework 4.0, however, available for.Net Framework 3.5. If it’s a new development targeting.Net framework 4.0, you can chose WCF Service over ASMX web service as ASMX web service is legacy. Please note that you'd need to enable AspNetCompatibilityMode to access HttpContext objects. If you still want to use classic ASMX web service, choose ASP.NET Empty Web application and then you can add ASMX webservice files to the project. ![]() Hope this helps to save some time! Regards, Amit Bhatia. ![]() ![]() Jun 15, 2010 Missing asp.net web application template in Visual Studio. Missing asp.net web application template in. Web application template in Visual Studio 2010.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |