Windows 8 application deployment - visual-studio

I developed a Windows 8 C# application using Visual Studio Express 2012 RC. I can run it on my pc. However, I want to create an executable so that my friends can also try the application. When I click the .exe file under bin/Release folder it says:
This application can only run in the context of an app container.
How can i create an app container manually or using Visual Studio 2012?

See here.
You need a developer license to develop and test Metro style apps
prior to certifying and deploying through the store. Visual Studio
2012 will automatically request a developer license when it is run for
the first time. To get a developer license without Visual Studio run
the show-WindowsDeveloperLicenseRegistration function in powershell:
C:\Windows\system32>powershell
Windows PowerShell Copyright (C) 2012
Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> Show-WindowsDeveloperLicenseRegistration
For
information on developer licenses see: Get a developer license (Metro
style apps) To deploy the app, build a package in Visual Studio from
the Store.Build Pacakage menu. Build it for local use. Copy the
resulting package to the target machine and run the included
Add-AppDevPackage.ps1 file. See also Sharing an app package locally.
--Rob

Related

Cannot install Visual Studio 2013 update 5 (RTM); Tools for Apache Cordova

I am trying to install VS2013 update 5 but it will not install as it says it is blocked and I must "uninstall the older version of Visual Studio Tools for Apache Cordova (Multi Device Hybrid Apps) through Control Panel...".
I have uninstalled this as requested (though the new version - 14.0.50619.1 - that installs with VS2015 is still installed) but it still will not let me install and keeps repeating the message.
From Help/About...
Microsoft Visual Studio Premium 2013 Version 12.0.31101.00 Update 4
Microsoft .NET Framework Version 4.6.00081
Installed Version: Premium
LightSwitch for Visual Studio 2013 06191-004-0454001-02564 Microsoft
LightSwitch for Visual Studio 2013
Team Explorer for Visual Studio 2013 06191-004-0454001-02564
Microsoft Team Explorer for Visual Studio 2013
Visual Basic 2013 06191-004-0454001-02564 Microsoft Visual Basic
2013
Visual C# 2013 06191-004-0454001-02564 Microsoft Visual C# 2013
Visual C++ 2013 06191-004-0454001-02564 Microsoft Visual C++ 2013
Visual F# 2013 06191-004-0454001-02564 Microsoft Visual F# 2013
Visual Studio 2013 Code Analysis Spell Checker
06191-004-0454001-02564 Microsoft® Visual Studio® 2013 Code Analysis
Spell Checker
Portions of International CorrectSpell™ spelling correction system ©
1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third
Edition Copyright © 1992 Houghton Mifflin Company. Electronic version
licensed from Lernout & Hauspie Speech Products N.V. All rights
reserved.
Windows Phone SDK 8.0 - ENU 06191-004-0454001-02564 Windows Phone
SDK 8.0 - ENU
.NET Reflector Visual Studio Extension 8.5.0.179 Integrates .NET
Reflector into Visual Studio to allow you to seamlessly debug into
third-party code and assemblies, even if you don't have the source
code for them.
Visit www.reflector.net for more information.
Copyright (c) 2009-2012 Red Gate Software Inc.
Application Insights Tools for Visual Studio Package 1.0 Application
Insights Tools for Visual Studio
ASP.NET and Web Tools 12.4.60425.0 Microsoft Web Developer Tools
contains the following components: Support for creating and opening
ASP.NET web projects Browser Link: A communication channel between
Visual Studio and browsers Editor extensions for HTML, CSS, and
JavaScript Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Web Apps Web
publishing: Extensions for publishing ASP.NET web projects to hosting
providers, on-premises servers, or Microsoft Azure
ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0 For additional
information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.21010.0 For additional
information, visit http://www.asp.net/
Common Azure Tools 1.5 Provides common services for use by Azure
Mobile Services and Microsoft Azure Tools.
Devart dotConnect for Oracle 8.4.447.0 Devart dotConnect for Oracle
Copyright 2002 - 2015 Devart. All rights reserved. Web:
www.devart.com/dotconnect/oracle Support: support#devart.com
Devart Entity Developer 5.7.644.0 Devart Entity Developer Copyright
© 2008-2015 Devart. All rights reserved. Web:
www.devart.com/entitydeveloper Support: support#devart.com
File Nesting 2.1.2 Automatically nest files based on file name and
enables developers to nest and unnest any file manually
Microsoft Advertising SDK for Windows Phone Microsoft Advertising
SDK for Windows Phone Build
Microsoft Azure HDInsight HQL Service 2.0.2200.0 Language service
for Hive query
Microsoft Azure HDInsight Tools for Visual Studio 2.0.2200.0 An
integrated development environment for HDInsight application
development.
Microsoft Azure Mobile Services Tools 1.3 Microsoft Azure Mobile
Services Tools
Microsoft Azure Tools 2.6 Microsoft Azure Tools for Microsoft Visual
Studio 2013 - v2.6.30508.1601
Microsoft Azure Tools 2.4 Microsoft Azure Tools for Microsoft Visual
Studio 2013 - v2.4.20730.1601
Microsoft Azure Tools 2.7 Microsoft Azure Tools for Microsoft Visual
Studio 2013 - v2.7.30713.1601
Microsoft Azure Tools 2.5 Microsoft Azure Tools for Microsoft Visual
Studio 2013 - v2.5.21104.1601
Multilingual App Toolkit 3.1.1250.0 Multilingual App Toolkit helps
you localize your Windows Store app by providing file management,
pseudo and machine translation, translation editor, and build
integration. http://go.microsoft.com/fwlink?linkid=245767
NuGet Package Manager 2.8.50926.663 NuGet Package Manager in Visual
Studio. For more information about NuGet, visit
http://docs.nuget.org/.
Office Developer Tools for Visual Studio 2013 ENU 12.0.31105
Microsoft Office Developer Tools for Visual Studio 2013 ENU
Open Command Line 1.6 Opens a command line at the root of the
project. Support for all consoles such as CMD, PowerShell, Bash etc.
Oracle Developer Tools for Visual Studio 12.1.0.2.0 Oracle Developer
Tools for Visual Studio Copyright (c) 2005, 2014
PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio
extension to visualize aggregated summaries from the PreEmptive
Analytics product.
SQL Server Analysis Services Microsoft SQL Server Analysis Services
Designer Version 12.0.2000.8
SQL Server Data Tools 12.0.50512.0 Microsoft SQL Server Data Tools
SQL Server Integration Services Microsoft SQL Server Integration
Services Designer Version 12.0.2344.23
SQL Server Reporting Services Microsoft SQL Server Reporting
Services Designers Version 12.0.2344.23
Web Essentials 2013 2.6.0.0 Adds many useful features to Visual
Studio for web developers.
Windows Phone 8.1 SDK Integration 1.0 This package integrates the
tools for the Windows Phone 8.1 SDK into the menus and controls of
Visual Studio.
Workflow Manager Tools 1.0 1.0 This package contains the necessary
Visual Studio integration components for Workflow Manager.
Has anybody else seen this and is there a workaround?
Thanks
Can you try this -
Open RegEdit, find this key:
HKCU\Software\Microsoft\VisualStudio\12.0\JavaScriptLanguageService
Delete the MDD-specific value: “ReferenceGroups_MDD”.
Do not delete the “ReferenceGroups” value, or you may mess up your JSLS intelli-sense for non-MDD scenarios.
Deleting that ReferenceGroups_MDD value under the JSLS key should unblock the installation of any installers that are blocking because they (incorrectly) think that you still have the VS2013 Tools for Apache Cordova installed.
Note: If you upgrade to Update5, you will lose the ability to work with MDD projects until we release the next version of our tools that work on top of update5. We are in process of validating our next release for Update5 and will release it soon.
I am sorry that the uninstall of our tools (for Apache Cordova) is not working for you.
The command to uninstall a previous version of the tools has 2 different GUIDS in it.
"%ProgramData%\Package Cache\{f2f851cc-42a1-41f2-a2cd-a0e4627a60cb}\vs2013mda_0.1.exe" /uninstall /passive /force/burn.ignoredependencies={53d408db-eb91-43fb-9d8f-167681c19763};vsupdate_KB2829760
The first is the GUID of the Cordova package that you have installed on your machine that you want to uninstall. You can find the correct GUID to use by searching under %ProgramData%\Package Cache for vs2013mda_0.1.exe and find the GUID of the folder where it resides. Substitute the GUID you find on your machine for the first GUID in the command line script.
The second GUID in the command is the GUID of the package that is blocking the uninstall. There are a number of packages that will block the uninstall, and we have included a command for all of them but perhaps not with the right combination of MDD GUID that you have on your machine.
Here is a guide to which GUID you should use in the 2nd part of the command:
If you have VS 2013 Update 4 installed on your machine:
{53d408db-eb91-43fb-9d8f-167681c19763}
If you have VS 2013 Update 5 CTP1 installed on your machine:
{ee836379-0143-481a-97c9-d577d049e22a}
If you have VS 2013 Update 5 CTP2 installed on your machine:
{cf552a8c-484b-4e33-afe7-c81dfadb0cfc}
If none of these work for you still, you can find the correct GUID to use by looking in the uninstall log for the MDD tools. When you attempt to uninstall MDD tools via Add Remove Programs, it will create a log file in %Temp% called dd_mda_tools_YYYYMMDDNNNN.log. In that uninstall log there will be a line that looks something like this:
Detected related bundle: {53d408db-eb91-43fb-9d8f-167681c19763}, type: Dependent.
Chances are the GUID for the related bundle in your file will be different from the ones we have covered in the pre-constructed commands. You can substitute the dependent GUID that you find in your uninstall log for the GUID in the 2nd part of the command.
Let me know if this works or not.

No template for Windows Phone 8.1 in Visual Studio Express 2013 with Update 2 RC

I have been developing WP (Windows Phone) 8.0 apps using Visual Studio Express for Windows Phone. To start developing for WP 8.1, I downloaded VS 2013 including update 2 RC from Windows Phone Developer site which is supposed to use to develop WP 8.1 apps.
I've tried twice, but there is no option to create WP 8.1 app even after a successful installation. What I get is only this:
i.e. no option to create Windows Phone 8.1 apps. If it matters, I'm interested in WP 8.1 Visual C# template specifically.
As I've mentioned, since I develop Windows Phone 8.0 apps, therefore Visual Studio Express (2012) for Windows Phone is already installed.
I've already gone through:
WP8 Development on Visual Studio Express 2013
Why is there no Windows Phone version of Visual Studio Express 2013?
Visual Studio 2013 and Windows Phone
How to get started with windows phone SDK 8.1?
WP8 Development on Visual Studio Express 2013
but none address the solution.
Being a windows app developer even I was baffled with the shift in Windows Phone location. You can find it in
Visual C# --> Store Apps --> Windows Phone apps.
Do sign in, in Visual Studio through Microsoft Account then go to ur notification and update ur VS and you will get this screen. Its usually caused due to some updates working only when VS can access developer's account and also I am using VS 2013 pro.
Have you installed Windows phone emulator SDK with the updated emulators?
I finally got the solution.
I downloaded both Visual Studio 2013, and update 2 RC using the /layout switch at command prompt. From MSDN:
After you download the update executable from the MSDN website to a
location on your file system, run the following command at a command
prompt: /layout.
This command downloads all the
packages for the installation. By using the /layout switch, you can
download all the installation packages, not just the ones that apply
to the download machine. This approach gives you all the files that
you need to run this update anywhere and may be useful if you want to
install components that weren't installed originally.
To do this, download the Visual Studio 2013, and Visual Studio 2013 Update 2 RC files (about 2-3 MBs each). Then, create a shortcut of these files on desktop, and then open properties of shortcut. In target field after ", add a space followed with /layout as shown below:
This will download all installation files to your disk and when you install the VS (the exe at specified download folder), it won't ask it to fetch from internet, rather will do it from offline files and phone SDK 8.1 will be installed too.
Please be warned that, this will take a lot of time. To save time, I suggest following what is in Update section.
Update
While searching on internet, I found these two links on Microsoft website:
Microsoft Visual Studio Express 2013 for Windows
Desktop
Microsoft Visual Studio Express 2013 for Windows with Update
2
In download section, these two sites show that, the offline download option is now available (as evident from the ISOs shown). Though, I don't know if that would help as I haven't tested this option. Just that this option will be much more quicker than using /layout switch.

Visual Studio 2013 wont run as administrator

I'm trying to get Visual Studio 2013 running as an administrator, but I'm constantly getting errors. I've searched and tried solutions for other versions of VS, but those fixes didn't apply, so hopefully someone here can help.
When I try to run VS2013 as an admin, I an error saying that the application cannot start.
I saw a few articles talking about copying and registering dte*.olb files, but they were for previous versions of VS. I copied one of the files over and registered it and I can now get past the original error, but I can't compile any application - including any default template workspaces. Before I went too crazy and potentially made things worse, I wanted to ask here.
If I don't get the "application cannot start" message, I get this message when I try to compile anything:
---------------------------
Microsoft Visual Studio
---------------------------
Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
---------------------------
OK
---------------------------
The problem is that that error code doesn't tell me what library wont load.
The output window says:
Error occurred while restoring NuGet packages: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
1>------ Build started: Project: WcfService1, Configuration: Debug Any CPU ------
1> WcfService1 -> C:\Users\David\Documents\Visual Studio 2013\Projects\WcfService1\WcfService1\bin\WcfService1.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
I tried uninstalling and reinstalling NuGet with no change in the behavior.
And if I go to the project properties, I can't see the Web, Package/Publish Web, or Code Analysis Tabs.
Does anyone have any idea how to fix this?
This is on Windows 8.1 Pro. My exact VS configuration is below.
Microsoft Visual Studio Professional 2013
Version 12.0.30110.00 Update 1
Microsoft .NET Framework
Version 4.5.51641
Installed Version: Professional
LightSwitch for Visual Studio 2013 06177-004-0444002-02105
Microsoft LightSwitch for Visual Studio 2013
Microsoft Office Developer Tools - Update 1 for Visual Studio 2013 ENU 06177-004-0444002-02105
Microsoft Office Developer Tools - Update 1 for Visual Studio 2013 ENU
Team Explorer for Visual Studio 2013 06177-004-0444002-02105
Microsoft Team Explorer for Visual Studio 2013
Visual Basic 2013 06177-004-0444002-02105
Microsoft Visual Basic 2013
Visual C# 2013 06177-004-0444002-02105
Microsoft Visual C# 2013
Visual C++ 2013 06177-004-0444002-02105
Microsoft Visual C++ 2013
Visual F# 2013 06177-004-0444002-02105
Microsoft Visual F# 2013
Visual Studio 2013 Code Analysis Spell Checker 06177-004-0444002-02105
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Windows Phone SDK 8.0 - ENU 06177-004-0444002-02105
Windows Phone SDK 8.0 - ENU
ASP.NET and Web Tools 2013.1.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure
ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.0.11213.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.0
Provides common services for use by Azure Mobile Services and Windows Azure Tools.
JetBrains ReSharper 8.1 Full Edition build 8.1.23.546 on 2013-12-12T07:30:52
JetBrains ReSharper 8.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2014 JetBrains, Inc.
Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone
Build
NuGet Package Manager 2.8.50126.477
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 12.0.30919.1
Microsoft SQL Server Data Tools
Visual Studio Spell Checker VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type.
Windows Azure Mobile Services Tools 1.0
Windows Azure Mobile Services Tools
Windows Azure Remote Debugging 1.0
Windows Azure Remote Debugging Community Technology Preview
Windows Azure Tools 2.2
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601
Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
And I'll go with the saddest answer of all time: Have you tried a full uninstall, reboot and re-install of Visual Studio?
This will also help if the issue is as a result of an add-in or similar.
I had a lot of issues with a clean install of VS2013 on win7 (projects not loading, crashes etc). A re-install sadly was the only thing that helped. This is poor advice I know but still sometimes one of the best fixes to some VS ills.
[EDIT]
I am no fan of fixing up failed installs unless it breaks the same every time.
Refer Connect Article (For VS2012 but same issue).
This Stack Overflow question may help with the crashes. The question is for VS2008 but it looks identical. Try and reset your fonts as suggested. (I think running Devenv /ResetSettings at a minimum is not a bad idea)
I do recommend to disable Resharper. From time to time I meet a VS solution which I can't open in VS2013 with enabled ReSharper.
Tools->Options->Resharper->Suspend Now
It will be difficult to help without some information such as
- Event log for the error
- Further details of the error message ("Application cannot start" is a bit vague)
Have you rebooted since installing ?
Have you updated via windows update yet ?
Did you install it to its usual path or somewhere else ?
Did you install it as admin or under a user account ?
If its work pc is it installed locally or under a roaming profile ?
No problems on my surface pro or desktop running it as admin or standard user
but it is installed locally and was installed under my developer account but works under all accounts (test ,dev,admin, user etc)
Based on the information provided, I believe there is an issue with Microsoft Office Developer Tools specifically Outlook related.
Fix 1:
Checking your Office directory for msoutl.olb. If it is there, try running 'regtlib msoutl.olb'. You should have regtlib on your machine is part of your Visual Studio install, I believe. Anyway, reregistering the typelib will rewrite all of the necessary keys to the registry. You will need administrative privileges for this operation.
Fix 2:
Try running a program that came with Outlook - C:\Program Files\Common Files\System\MSMAPI\1033\Scanpst.exe
For more information please see this site - Click Here
Fix 3:
Try uninstalling Office Developer Tools and see if the problem persists.
Fix 4:
The other possibility is that msoutl.olb itself is corrupt, in which case reinstalling Outlook should fix the problem.
This could be windows 8 acting up. Saying that, insure that your OS is updated, new patches to fix broken stuff should be regular, i suspect a lot of broken things.
Insure that you have the correct .net framework installed and re-install it if necessary. I am not too familiar with Windows 8, i had 3 months of an unpleasant experience with it, but try to see if you can change the compatibility mode by right clicking on the .exe file.
i doubt my response would be any better than others but i felt like contributing and since no one mentioned either checking the .net framework or the compatability..
best of luck!
also i did a small bit of research into TYPE_E_cantloadlibrary and found this link, maybe you should check it out
http://social.msdn.microsoft.com/Forums/en-US/ac50fa41-8d47-4fa9-81a3-914f262676af/0x80029c4a-typeecantloadlibrary?forum=vsto
Try this:
right click devenv.exe
troubleshoot compatibility
Troubleshoot program
This program requires addition permission
Next
Test the program
Next
Yes, save these settings for this program.
This will make VS run as administrator from now on.
I ran into the exact same problem. My issue was that the 'Start Page' was fowled up.
I've edited the following:
> Tools > Options > Startup
Choose 'Show empty environment' in the 'At startup' pulldown
This fixed all my problems and can run as Administrator again.

Enabling windows azure tools to get Windows Azure project

I am trying to create a webproject which can be deployed on azure. I have VS 2010 trial version (pro) installed on windows 7. When i click cloud (under VC#) i am prompted to install Windows azure tools. I do this. I get the tools installed message. I restart VS 2010. But i fail to find windows azure web project template, which should have been installed. It just shows me the same sequence of screens (install tools etc). I am executing VS 2010 under administrator role.
Steps described # http://msdn.microsoft.com/en-us/library/windowsazure/ff687127.aspx
Questions
Is Windows azure template projects not allowed in Trial edition of VS 2010 pro?
Can such a project be made using VS 2010 express?
Thank you
Sameer
I'm not sure about trial versions, as I've never tried installing with a trial edition. However: I've run other software packages with trial versions of Visual Studio, without issue.
The SDK will work with Visual Studio 2010 Pro and above, as well as Visual Web Developer 2010 Express (downloadable here).
For installing the tools properly, I'd suggest going here and installing via Web Platform Installer. It will make sure you have all needed dependencies.

Asp.net 4.0 has not been registered

When I try to open my Visual Studio project I get the following error:
Asp.Net has not been registered on the webserver you need to manually configure your webserver for Asp.net 4.0.
Update:
Nevermind I fixed it:
I just repaired .Net Framework 4.0 and the issue was resolved.
I also fixed this issue by running
aspnet_regiis -i
using the visual studio command line tools as an administrator
This solved the problem
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
Be sure to run the command prompt as administrator
For those getting this error in after installing .NET Framework 4.6 - Read and install one of these hotfixes to resolve the issue.
To resolve 'ASP.NET 4.0 has not been registered. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly' error when opening a solution we can:
1 Ensure the IIS feature is turned on with ASP.NET. Go to Control Panel\All Control Panel Items\Programs and Features then click 'Turn Windows Featrues on. Then in the IIS --> WWW servers --> App Dev Features ensure that ASP.NET is checked.
2 And run the following cmd line to install
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
Hope this helps
The aspnet_regiis approach described above doesn't appear to work on Windows 8.1:
C:\Windows\system32>aspnet_regiis -i
Microsoft (R) ASP.NET RegIIS version 4.0.30319.33440
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.33440).
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.33440).
As indicated in the message, I went to:
Start
Turn Windows features on or off
.NET Framework 4.5 Advanced Services
and checked ASP.NET 4.5.
This seems to have resolved the problem.
Open:
Start Menu
-> Programs
-> Microsoft Visual Studio 2010
-> Visual Studio Tools
-> Visual Studio Command Prompt (2010)
Run in command prompt:
aspnet_regiis -i
Make sure it is run at administrator, check that the title starts with Administrator:
http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx - See this on registering IIS for ASP.NET 4.0
Asp.net 4.0 has not been registered
Visual Studio 2013
Download Visual Studio 2013 Update 4
For more information on the Visual Studio 2013 Update 4, please refer to: Visual Studio 2013 Update 4 KB Article
Visual Studio 2012
An update to address this issue for Microsoft Visual Studio 2012 has been published: KB3002339
To install this update directly from the Microsoft Download Center, here
Visual Studio 2010 SP1
An update to address this issue for Microsoft Visual Studio 2010 SP1 has been published: KB3002340
This update is available from Windows Update
To install this update directly from the Microsoft Download Center, here
http://download.microsoft.com/download/6/7/E/67E041A1-00DA-4948-90BE-75A0146C08F5/VS10SP1-KB3002340-x86.exe
Go to Visual Studio 2010 Command prompt and set the Directives as :
C:\Windows\Microsoft.NET\Framework\v4.0.30319>
then install IIS by following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
now iis will working..
its better if your restart the computer
I had the same issue but solved it......
Microsoft has a fix for something close to this that actually worked to solve this issue. you can visit this page http://blogs.msdn.com/b/webdev/archive/2014/11/11/dialog-box-may-be-displayed-to-users-when-opening-projects-in-microsoft-visual-studio-after-installation-of-microsoft-net-framework-4-6.aspx
The issue occurs after you installed framework 4.5 and/or framework 4.6.
The Visual Studio 2012 Update 5 doesn't fix the issue, I tried that first.
The msdn blog has this to say:
"After the installation of the Microsoft .NET Framework 4.6, users may experience the following dialog box displayed in Microsoft Visual Studio when either creating new Web Site or Windows Azure project or when opening existing projects....."
According to the Blog the dialog is benign. just click OK, nothing is effected by the dialog...
The comments in the blog suggests that VS 2015 has the same problem, maybe even worse.
If ASP.NET 4.0 is not registered with IIS
*****Use this step if u cant access using run command*****
Go to
C Drive
-->>windows
-->>Microsoft.Net
-->>Framework
-->>v4.0.30319 (Choose whatever framework to register with IIS me selecting Framework 4)
-->>aspnet_regiis (Double-click or right click & choose run as administrator)
I had this problem on Windows 8.1 which wouldn't support the aspnet_regiis -i approach.
Instead you need to go to Control Panel, locate the "Turn Windows features on or off" option and drill down as follows:
Internet Information Services
-> World Wide Web Services
-> Application Development Features
and check the "ASP.NET 4.5" option. In checking this box, other options such as ".NET Extensibility 4.5" and the ISAPI options will be checked automatically.
Apply the changes by clicking OK. Restart your website in IIS and your site should now be accessible.
I repaired it using the Microsoft .NET Framework Repair Tool. After reloading my project a couple of times after that the problem went away.

Resources