how to solve this issue "Visual studio .Net cannot create or open the application VS2003"? - iis-7.5

I tried to open my old projects developed by VS2003 but I am not able to open in Visual studio 2003.
Whenever I tried to create a new project or open my existing project in VS 2003 it will populate a error dialogue box .
Its Showing error like "Visual studio .Net cannot create or open the application. The likeliest problem is that required components are not installed on the local web server. Run visual studio .net setup and add the web development component"
I noticed one thing that when I tried to create a new project It will automatically point to the location
http://localhost/newproject
I dont know why it is?
For opening existing project in my application Do I need to configure my application into IIS or in inetpub->wwwwroot folder? If so How can I configure my application into IIS? Please tell me the steps.
Anybody Please help me on this I have to solve this by today! Thanks !

open inetmgr (start - on search program and files type "inetmgr"
expand your server - sites - default web site - right click - add application
Enter Alias at your case : newproject
Application pool select ASP.NET 1.1 (must install first)
Physical path, choose your web folder.
turn off skype or Change skype port.
another suggestions, look CZFox's answer here

Related

Visual Studio 2022 - File Add New Item CSS, HTML, JS missing

I have 2019 Web Project I'm trying to open in Visual Studio 2022 and it's missing a lot of common file types, HTML, CSS, JS and Text to name a few. If I open the project by going to File -> Open -> Folder the expected file types are available but the Azure Dev Ops integration doesn't work.
Any pointers on how to get this working. Someone recommended building the New Item file templates but that seems like a chore for such a simple set of file types.
Update: If I change the Solution Explorer view to Folder View then I can add the files I expect, but with Folder View I can't check-in or publish. I will need to toggle between Solution View & Folder View complete those actions. To clarify further, how/what populates the Solution Explorer(Solution View) -> Add New Item menu?
In Visual Studio 2022, the .NET Framework project and item templates are now optional components. At the time of installing VS 2022, you need to manually check this option on the ASP.NET and web development section. If somehow this got missed during the installation, you can enable it by following the below steps:-
Open Visual Studio Installer
Click on Modify
Expand Asp.Net and web development
Check .Net Framework project and item templates
Screenshot:-
The above steps will bring back the missing HTML, CSS, JS, and other templates
One of the workaround you can follow to resolve the above issue,
We are trying the same with console application and trying to add html and can able to get it as well using VS-2022 with version 17.2.6.
Make sure that you have open the correct project in your environment.
HERE ARE THE SCREENSHOT FOR REFERENCE:-
Alternatively if you want to add an item template to the Add New Item dialog box in visual studio please refer this MICROSOFT DOCUMENTATION| How to Create item templates
For more information please refer the below links:-
SIMILAR SO THREAD|Can't find ADO.net Entity Data Model template in VS2017 .
This is a pain. It happened to me with the last upgrade. To fix it, open the installer, select "Web and Cloud", then "ASP.NET and web development." Check all the boxes through Intellicode, and then check ".Net Framework project and item templates".

VS 2017 - The Web Application Project [MyProject] is configured to use IIS. You do not have permission to access the IIS configuration FILE

My web application was working fine for months till today, don't know what has changed suddenly the project in my solution file says that it is "unavailable" when I open the solution. When I right-click on the web project and reload the project, I get the following error:.
The Web Application Project myproject.myapp.mywebproject is configured
to use IIS. You do not have permission to access the IIS configuration
file. Opening and creating web sites on IIS requires running visual
studio under Administrator account.
Note - All these months i was running visual studio normally(not under administrator account) and the application was working fine.
By seeing the above error i tried running my visual studio under administrator account and the project got loaded but the Source Control File Status beside all the files disappeared, i no longer see any blue lock icon beside any of the files and even when i edit any file also there is no status beside the file in my project and also when i right click on any of the file i don't see the view history option.
My project which was running successfully till now not loading the project. any suggestions on this ?
Browse to C:\Windows\System32\inetsrv and then double-click the “config” directory to get this warning dialog:
Click on the Continue button.
Do the same for the C:\Windows\System32\inetsrv\config\export directory and also the other directories in C:\Windows\System32\inetsrv.
Now you will be able to open the Visual Studio Web Application Project without a problem.
Just run Visual Studio as an Administrator and the problem will be solved.
from the Start menu or when Visual Studio is open on the taskbar, right-click the VS icon.
in the context menu, right-click the visual studio icon again.
left click on properties.
advanced choice.
choose Run as administrator.

Publishing Applications With Visual Studio

I would like to be able to publish an application and have it so that someone could navigate to a website and download a setup executable. Then when they run that executable it would download and install all the associated applications that work with my application.
Is it possible to have visual studio publish it to do this?
Or do I have to program an custom setup application.
It seems that there are options for this in the publish section of the project properties.
But I can't seem to find out exactly what everything does.
There is an updates button in the publish tab that I would like someone to explain how that works as well.
It looks like ClickOnce will work for you.
ClickOnce is a Microsoft technology that enables the user to install
and run a Windows-based smart client application by clicking a link in
a web page.
http://msdn.microsoft.com/en-us/library/31kztyey.aspx
You can try Windows Installer XML (WiX) Toolset
http://wixtoolset.org/documentation/manual/v3/votive/authoring_first_votive_project.html

Loading a Windows Azure Project from Gallery into Visual Studio 2012

I have a Windows Azure web site. I started this web site as a New -> Compute -> Web Site -> From Gallery. Once here, I chose the Orchard CMS. I have the site successfully running in Windows Azure. My challenge is, I want to do some customizations to it.
How do I get this code into my local Visual Studio 2012 instance so that I can:
Make customizations to the site with Visual Studio 2012.
Check it into source control so other on my team can work on it
I saw the following post: http://www.davidhayden.me/blog/installing-orchard-cms-as-an-azure-web-site. However, this only talks about opening the site in WebMatrix. I want to skip WebMatrix and go straight to Visual Studio if possible.
Download WebMatrix and click the Visual Studio button in the ribbon. It must create a solution file for you to then access your website via Visual Studio. I don't have an Azure website at the moment to try it with.
You may need to tweak the registry to get the VS 2012 to open properly:
Type regedit and select the HKEY_CLASSES_ROOT.
Locate VisualStudio.DTE and change the CurVer to
VisualStudio.DTE.11.0
Finally change the CLSID to {059618E6-4639-4D1A-A248-1384E368D5C3}
You do not need to use WebMatrix at all; another option is to just download the files from FTP and then create a VS solution and add the files you downloaded.
From Visual Studio you can easily deploy the solution to TFS and to your azure website.
As a side note, as of today (January 28th, 2014) the registry edit proposed by SilverNinja is no longer needed, I was able to open VS 2013 Professional from Webmatrix without editing the registry.

Creating IIS Express Virtual Directories with VS2012 / Web Site (not WAP)

I'm inheriting a web site project that was built with a virtual directory for user controls (still wondering why someone did that). Of course, the src tags bombs when I load it into visual studio 2012 because those files are not actually there.
So, with vs2012 and iis express (build in browser) how can I easily create a virtual directory and have it resolve in my visual studio development experience.
Thanks! -Peter
turns out there is under the website menu an option that says "Create Virtual Directory". I'm hoping that is exactly what I want.

Resources