Visual studio 2003 web projects - asp.net

I have a requirement to work on a VS2003 web project.
I have VS2008,vs2010,vs2003 installed in my system
Other System details are
Windows Xp professional version 2 service pack 3. IIS 5.1
When i am trying to create a VS 2003 web project giving the localhost as path
i am getting the following error.
visual studio noted that specified web server is not running under asp .net 1.1 version.You will be unable to run asp .net web applications or services
I have used aspnet_regiis commands as well as a tool(ASPNETVersionSwitcher.exe ) to swith versions and in IIS also default web site ASP.NET version chosen as ASP.NET 1.14322.
I am still getting the error.
same error I get ,if I point a virtual directory in the existing 1.1 .NET web application and trying to open it.
Please advise, I have to work on this project as soon as possible.

Make sure all IIS Applications are using the same version of the framework. It is possible to have both 1.x and 2. I typically, uninstall using aspnet_regiis /ua which uninstalls all ASP.NET versions, then use aspnet_regiis to install ASP.NET as needed.
Make sure the "Virutual Directory" ASP.NET properties are correct for the version of Visual Studio you are using. Obviously, you cannnot use VS2k3 to connect to a ASP.NET 2.0 Virtual Directory.
Following is a dump of my installed ASP.NET versions.
C:\Program Files\Microsoft Visual Studio 9.0\VC>aspnet_regiis -lv
1.1.4322.0 Valid (Root) C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\asp
net_isapi.dll
2.0.50727.0 Valid C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\as
pnet_isapi.dll
4.0.30319.0 Valid C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\as
pnet_isapi.dll
C:\Program Files\Microsoft Visual Studio 9.0\VC>aspnet_regiis -lk
W3SVC/ 1.1.4322.2443
W3SVC/1/ROOT/ 2.0.50727.0
W3SVC/1/ROOT/Reports/ 2.0.50727.0
W3SVC/1/ROOT/ReportServer/ 2.0.50727.0
W3SVC/1/ROOT/ExceptionService/ 2.0.50727.0
W3SVC/1/ROOT/verification/ 2.0.50727.0

I've seen people create a virtual machine (pc) using Windows XP as the guest OS. They would then install Visual Studio 2003 on the virtual machine and do their development there.
From what I gather those people ran into a similar issue like yours.
Another solution that I have heard was that Visual Studio 2003 needs to be installed first, before Visual Studio 2005, 2008, or 2010 are installed. I've heard that works, but only from a clean OS install (you can't uninstall all the versions and start over.)

Related

Can't open Publish dialog in Visual Studio 2015 (ASP.NET 5 web application)

We have an ASP.NET web application already deployed to Azure. I'm trying to create a new development virtual machine (using VirtualBox). Everything seems to work fine. I can run the project locally, but when I click on Publish, I just get a comment in the Output window: "The build has been canceled".
The same project using the same version of Visual Studio 2015 Update 1 can be deployed without any problem from the other development PCs (they are NOT virtual machines, don't know if it matter or not).
I use the latest version of all extensions installed. I have 'repaired' my Visual Studio Installation, just in case.
Any suggestions?
Note : I just tried to publish a new, empty ASP.NET 5 Web Application. I got the same "The build has been canceled" message.
The problem seems to be VirtualBox (or Visual Studio 2015 in VirtualBox). I can't publish any website from any VirtualBox VM but I can publish all of them from the PC where the VM is running.

Unable to see biztalk project template in Visual Studio 2013 Ultimate

I have installed BizTalk 2013 R2 on Windows Server 2012 R2 and Visual Studio 2013 Ultimate is also installed on the same machine.
I cannot see BizTalk Project template while creating a new project in Visual Studio.
When I ran the BizTalk setup again, Developer Tools box was not selected. When I select the box it gives following message
Features you selected requires the following components to be installed:
WCF HTTP ACTIVATION 4.5, IIS ASP NET 4.5
When I check in the Server Manager, both of the above are already installed.
Kindly help me resolve this issue.
Have you registered ASP.NET 4.5 on the machine?
Try running this command:
aspnet_regiis -i
You can read more about the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) here:
http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.100%29.aspx
The easiest way to do this would be to run the Visual Studio Command Prompt.
Also make sure to run as an administrator.
To restore the default project templates
In the command prompt, navigate to the location of devenv.exe. This file is located in \Common7\IDE.
Type "devenv /installvstemplates" and press Enter.
NoteNote:
If you are using an Express Edition of Visual Studio, type "Express /installvstemplates" where is either VB, VJS, or VCS for Visual Basic, Visual J#, and Visual C#, respectively.
If this procedure does not restore the default templates, reinstall Visual Studio.
U can follow this link also:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/f1cd2e14-1d7e-4b84-8bc2-871d67e2a942/devenvexe-installvstemplates-not-install-propertly

Build ASP.NET 4.5 without Visual Studio on Build Server

Its been a while since I setup a Build Server so maybe I've forgotten something or maybe .NET 4.5 is different from whatever version I did this with last time, but here is my problem.
I'm trying to setup a build server to monitor a source control repository. Whenever something changes, I want the server to pull the changes and build the project. If there are no errors, I want to deploy the site to a web site running on the build server.
In the past when I did this, I thought that I was able to do this having only .NET installed, but when I try to build this project I get an error that "C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" is missing, and if I go and look I can see that it is missing. In fact there are no Visual Studio 11 targets files.
After a lot of thought and head scratching, I went out and got the "Windows 8/.NET 4.5 SDK" thinking that the .NET 4.5 SDK might install the targets files that I needed, but it did not unless I installed it wrong somehow.
So, what do I need to put on the Build Server in order to get the project to build. I would prefer not to have to install the full Visual Studio 2012.
To run on on your CI server without Visual Studio, you only need to copy a few folders from a development machine to the same location on the CI server. There is no need to install the SDK.
VS 2015:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications
VS 2013:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications
VS 2012:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications
VS 2010:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications
.NET 4.6:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6
.NET 4.5.2:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2
.NET 4.5.1:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1
.NET 4.5:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5
.NET 4.0.1:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0.1
.NET 4.0:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
Or, as Matt suggested, you could copy them into a subdirectory of your project and alter the <MSBuildExtensionsPath32> location in your MSBuild (typically .csproj or .vbproj) file.
Once you have done this, your project will compile.
You should also set the VisualStudioVersion environment variable explicitly to the Visual Studio version (10.0 for VS2010, 11.0 for VS2012, 12.0 for VS2013, 14.0 for VS2015) you are using just to be sure it is set right in your configuration.
My problem was related to installing the Windows Software Development Kit (SDK) for Windows 8 on a Windows 2008 Box. If you read further on the page, you will get to a heading labeled ".NET Framework 4.5 SDK Tools on Windows Vista and Windows Server 2008." This tells you to:
Run the Windows SDK for Windows 8 installer on a supported operating system (for example, Windows 7, or Windows 8).
Choose the following option on the Specify Location screen: Download the Windows SDK for installation on a separate computer.
Press the Next button.
Answer the questions on the Join the Customer Experience Improvement Program (CEIP) screen.
On the next screen, choose the .NET Framework 4.5 Software Development Kit feature. Unselect all other features that can be unselected.
Choose the Download button.
Go to the download location (specified in step 2) and find the following .NET Framework 4.5 SDK tool installer files:
sdk_tools4.msi,
sdk_tools4.cab
You can copy these files to a Windows Vista or Windows 2008 Server computer within your organization. These files need to be copied to same directory on the Windows Vista or Windows 2008 Server computer.
Note: Do not redistribute these files outside your organization or as part of any other installer.
On the Windows Vista or Windows 2008 Server computer, review the license terms here .
Check whether .NET Framework 4.5 is already installed on the computer. Otherwise, download and install .NET Framework 4.5 from www.microsoft.com .
Open a command prompt with administrator privileges.
Go to the directory where .NET Framework 4.5 SDK Tools installer files were copied.
Install .NET Framework 4.5 SDK tools by using the command line:
Msiexec /i sdk_tools4.msi VSEXTUI=1
From msdn:
The Windows SDK no longer ships with a complete command-line build environment. You must install a compiler and build environment separately. If you require a complete development environment that includes compilers and a build environment, you can download Visual Studio 2012 Express, which includes the appropriate components of the Windows SDK.
In order to fix this, I had to copy the folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5 from my development machine (which has Visual Studio 2012 by the way) onto the build agents. After this operation, Team City did not report any more errors and mscorlib.dll was not output to the bin folder.
Microsoft Build Tools 2013 will help in this case, as its download page describes:
If you don't have Visual Studio installed on your computer, you can
use Build Tools 2013 to build managed applications. The Visual Basic
and C# compilers are also included in this download. (In earlier
versions, these tools were included in the stand-alone .NET
Framework.)
My dept. likes taking a minimalistic approach to what's installed on our Win 7 build machines. However, we don't like just copying and pasting files/folders because of potential registry key issues. Instead of installing VS 2013, I installed the following much smaller and free components. Now the dev team can build VS 2013 web apps successfully.
.Net Framework v4.5.1, required to install the tools - http://www.microsoft.com/en-us/download/details.aspx?id=40779
MS Build Tools 2013, we needed the C# compiler - http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx
MS VS 2013 Isolated Shell, we needed the web app targets - http://www.microsoft.com/en-us/download/details.aspx?id=40764.
I solve this problem with Visual Studio Agents.
You can try install Visual Studio Agents 2012.
http://www.microsoft.com/en-us/download/details.aspx?id=38186

Correct installation order to a clean asp.net development enviroment

I want to setup a Win7 virtual machine to develop using Visual Studio 2008 and ASP.Net 3.5.
I don't know what the best order to install what I need. I will need to install:
a) Visual Studio 2008
b) IIS
c) Service Packs for Visual Studio and/or .Net Framework
My last try was bad, I cannot do my old ASP.Net 3.5 web app to work on Win7 (works fine on Win2003).
Another questions are, if I choose to use Visual Studio 2010 (to develop ASP.Net 3.5), it's recommended? And the installation order will change?
Thanks for all
Your best bet is to actually use the Microsoft Web Platform Installer. This tool will walk you through installing ALL of the components you need to host a web application. Pick your platform (PHP, ASP.NET, etc), an optional application (DasBlog, etc), and even choose to download Visual Studio 2008 Web Developer + SQL Express. It will install everything for you seamlessly. I've used it and I highly recommend it for a "clean" install.
I'd install IIS first, then Visual Studio 2008. The framework will come with VS.NET 2008. If all goes wrong learn to use aspnet_regiis.exe

asp.net mvc 1.0 "project type is not supported" on Visual Studio 2008

I've installed (in this order):
64bit Windows7,
64bit Visual Studio 2008,
Microsoft Free Web Platform Installer (WEB PI)
- installed iis7
- bunch of samples
- ...
asp.net mvc 1.0
Visual Studio 2008 sp1
When opening an existing solution with mvc web application in it, i get this error:
"The project type is not supported by this installation" on Visual Studio 2008
I've noticed that almost all project templates are stored under "Program Files (x86)" not under "Program Files"...
I've also repaired vs2008, asp.net mvc 1.0 and nothing worked...
Just some things to try:
Have you updated Visual Studio 2008 to SP1 (google for download - its a bigge)?
Have you removed all previous traces of ASP.Net MVC Beta and RC installs?
Does the project contain MSTest tests and the version you are using does not support MSTest?
How did you install IIS7 (or rather 7.5 on Windows 7)? Did you do this via Add Remove Windows Features, did you enable ASP.Net when you drill into Internet Information Server ?
Can you create a new ASP.Net MVC application does this show in Add New Projects? And copy the Web.config over to the existing one? It may be possible it was created with a previous version and the assembly identies are no longer than same.
When you install Visual Studio 2008 did you untick the Web application bit in the Customize/Advance by any chance (cant recall exact wording) but IIRC it appears as sibling on the branch where Visual C# option is.

Resources