ASP file not running - iis

Hey I just wrote a Hello World code for ASP. But it is not compiling using IIS . When I try to access it using localhost/path_to_folder/xyz.asp
It shows the entire code as it is ..
Can anyone tell me whats the problem?)

Do this Step by Step:
Go to control panel
Windows features on/off
Tick this features:
3.a) Internet Information Service>Web management tools>IIS6 Management Compatibility
3.b) Internet Information Service>Web management tools>IIS Management Console
3.c) Internet Information Service>Worldwide web services>Application dev. features>ASP
3.d) Internet Information Service>Worldwide web services>Application dev. features>ISAPI Extentions
These settings are necessary. If still doesnt work, Let me know for further settings.

Classic ASP support isn't installed by default on recent versions of IIS so you'll need to install it via the "Turn Windows features on and off" Control Panel, or with the Web Platform Installer.

Are you accessing via the web server built into Visual Studio? If so, it won't work. That server doesn't support .asp, only .as?x files.

Related

HTTP Error 404.17 - Not Found (.Net 4)

I've just got a new server setup on Windows 2008 Web edition. I'm trying to set the first asp.net 4 application up on it but am having nothing but problems.
The latest is that I'm getting the 404.17 error, which says "the requested content appears to be script and will not be served by the static file handler.".
I've done a lot of research on google but most suggestions seem to be to run aspnet_regiis -i to install asp.net 4. I've done this several times both on the Framework and Framework64 folders, but with no success.
I tried changing from the default application pool to a .net4 application pool, which appeared to work at first and I instead got a server error to do with permissions. I fixed that, and immediately the 404.17 error returned.
Other suggestions I've read say to go into the "turn windows features on and off" and make sure .net 4 is selected there under IIS. However on this server clicking "turn windows features on and off" takes me to the standard windows 2008 server manager. I click "add features" there, and only ".NET Framework 3.0 Features (Installed)" is listed and selected. .NET 4 isn't shown there, yet it is selectable through the application pools.
What else can I try to get the website running as I'm at a complete loss now. Its annoying because my old server was easy to manage - I did it all through the server itself without a control panel (Windows 2003), now on my new server I have to manage most of it through Plesk because there is no dns.
Any help would be much appreciated.
I too had the same problem but solved it with simple solution. My program was in framework 4.0 but in application pool was mapped to framework 2.0.
Just changed the frame work in application pool to 4.0.
It worked.
I've finally figured out the problem, and it was to do with Plesk itself.
After delving through some of the thousands of links throughout the plesk control panel I found a page for "Website Scripting and Security". Under there it was set to .NET 2.0. However, even though I'd installed .NET 4 on the server, Plesk didn't know about it. Although the application pool I'd set the website to run under through IIS was .NET 4, it still wouldn't work for some reason.
I then found another page under "tools and settings" for server components, and on that page is a refresh button. Hit that and it suddenly realised that .NET 4 was installed, went back to the website scripting and security page, selected .NET 4, and hey presto, I got a server error (never have I been so glad to see a server error).
I then just had to give the application pool identity read access to the web folder, and the website worked.
I wish I'd paid an extra £15 per month for Windows 2008 Standard edition now so I could manage it all manually without Plesk.
Ensure that you are running this application under a Virtual Directory, also ensure that your IIS has ASP, ASP.Net, ISAPI Extensions And Filters, Static Content installed.
Change the .net framework from 'plesk' panel:
go to Domains
select then domain
Go to 'Domain and Websites & Domains'
Hide Advanced Operations
Go to 'Asp.net Settings'
Go to 'Change Version'
select 4.0
If you don't have the 4.0 option then you must install the framework on your server first.

Debugging Azure: Error attaching the debugger to the IIS worker process

I have a web application asp.net to deploy to Windows Azure. I try to run it on local first. But when debugging, I catch this error from VS2010:
"There was an error attaching the debugger to the IIS worker process
for URL 'http://127.255.0.0:82/' for role instance
'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0'.
Unable to start debugging on the web server ......."
I've search so hard to find the solution for this problem but there's nothing seems work for me. I'm a newbie in Windows Azure, it's really a big trouble with me.
I had similar problem with Windows 8, debuging a cloud application with Visual Studio 2012 RTM and Azure SDK 1.71, when trying to launch the application into the compute emulator. It was a very simple app, but I used Azure diagnostics. At the end these are two things I have changed that have work for me, both turning on Windows 8 features (so go to Win8 and open 'Turn Windows Features On/Off'.
Activate the checkboxes for:
Internet Information Services Hostable Web Core
Internet Information Services > World Wide Web Services > Application Development Features > ASP.NET 4.5
Internet Information Services > World Wide Web Services > Health and Diagnostics > Tracing
Internet Information Services > Web Management Tools > IIS Management Scripts and Tools
That worked for me, it makes sense, as I'm using Visual Studio 2012 and trying to get some trace information using diagnostics in Azure.
I hope this will work for you or give some tip about the problem. In the case of being useful information, remember to vote as response or as value tip.
Thanks,
Mike
This usually happens when there's a problem with the project to be deployed to the emulator (WindowsAzureProject2 in your case).
Try the following:
Check %UserProfile%\AppData\Local\dftmp\IISConfiguratorLogs\IISConfigurator.log file for the error messages. See more details in this answer.
Make sure your project can be started without the emulator. It's a web project, so just try to start it as a regular web project. Or publish it to the separate folder and try to create a website in IIS of it.
Check your *.csdef and *.cscfg files to make sure all the configuration is correct.
Make sure that the build output of your project is not empty. You can do this by going to IIS, find the site with the name similar to deployment16(6).WindowsAzureProject2.WebApplication3_IN_0, right click --> Explore.... Make sure that this folder is not empty and contains all the files required to start a web project successfully.
BTW, there's a similar question: Debugger can't connect when starting local azure project
Follow step 11 from http://www.microsoft.com/en-us/download/details.aspx?id=35448. Worked for me on Windows 8 with Oct 2012 SDk
I just have today the same problem trying to Debug locally with Azure Storage Emulator in Windows 7. So in the Azure project properties, in Web tab, I checked the radio button 'Use IIS Express' and it debugged without problem. I hope this helps someone.
I encountered this exact same problem when I upgraded an existing Azure solution to the Azure SDK 2.1. After some hunting around I uncovered that the upgrade had automatically set the "Local Development Server" setting to "Use IIS Web Server".
Changing the "Local Development Server" setting to "Use IIS Express" fixed the problem immediately.
To access this setting right-click the Azure cloud project file in your solution, select the "Properties" option, tab down to "Web" and you'll see the following setup.
Also, make sure you run Visual Studio as administrator
Please check the version of emulator you have installed. If your code is created in older sdk and you have a new emulator installed it will give you this error.
Check the version of Azure APIs in your project, go to Project > references and right click on Azure dlls to check the version, same sdk version must be installed on the system, higher are optional as azure 2.x are not backward compatible.

HTTP Error 404.3-Not Found in IIS 7.5

I'm using IIS 7.5 on Windows Server 2008 R2 x64 Enterprise Edition. In the project we have developed with ASP.NET 4.0 we used WCF Service. But it doesn't run over domain when the software is running from local computer. Otherwise, I am getting the following error:
HTTP Error 404.3-Not Found
The page you are requesting cannot be served because of the extension
configuration. If the page is script, add a handler. If the file should
be downloaded, add a MIME map.
You should install IIS sub components from
Control Panel -> Programs and Features -> Turn Windows features on or off
Internet Information Services has subsection World Wide Web Services / Application Development Features
There you must check ASP.NET (.NET Extensibility, ISAPI Extensions, ISAPI Filters will be selected automatically). Double check that specific versions are checked. Under Windows Server 2012 R2, these options are split into 4 & 4.5.
Run from cmd:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
Finally check in IIS manager, that your application uses application pool with .NET framework version v4.0.
Also, look at this answer.
In my case, along with Mekanik's suggestions, I was receiving this error in Windows Server 2012 and I had to tick "HTTP Activation" in "Add Role Services".
In windows server 2012, even after installing asp.net you might run into this issue.
Check for "Http activation" feature. This feature is present under Web services as well.
Make sure you add the above and everything should be awesome for you !!!
I was having trouble accessing wcf service hosted locally in IIS. Running aspnet_regiis.exe -i wasn't working.
However, I fortunately came across the following:
Rahul's blog
which informs that servicemodelreg also needs to be run:
Run Visual Studio 2008 Command Prompt as “Administrator”.
Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation.
Run this command servicemodelreg –i.

What is the default location of inetmgr.exe of IIS in Windows 7, as none of my Windows searches are working; Any Alternative to access it?

Hi I want to acces, open "inetmgr.exe" on my Windows 7 machine. But none of the searches are working. ( Start Menu --> Search Program and Files NOR Search in My Computer).
I somehow want to access inetmgr.exe of IIS(InternetInformation Services).
So can anyone kindly let me know the
default location of inetmgr.exe or any
DOS command to access it. I even
tried typing "inetmgr.exe" in command
prompt. But not working. So PLz
somehow I need to access inetmgr.exe.
Thanks in advance.
It should be available in following location:
C:\Windows\System32\inetsrv\InetMgr.exe
But when you goto start menu and type inetmgr.exe it should be visible in the list. If not then something wrong with your installation or that file has been deleted.
At first check IIS is installed or not.
For XP
Open Control Panel
Add-Remove Windows Components.
For Windows 7 / Windows Server 2012
Open Control Panel
Programs and Features
Turn Windows features on or off.
I had the same issue. Go into Control Panel -> Programs-> Turn Windows features on or off.
Click on features for Internet Information Services. Specifically, Web Management Tools and Wold Wide Web Services.
For Web Management Tools
->IIS 6 Management Compatibility
->IIS Metabase and IIS 6 configuration compatibility. (or any other features you think you may need)
I had the same problem on Windows Server 2016 with it not wanting to search. IIS Manager (with our normal websites) was showing in the Start menu but IIS 6 Manager was not (where the SMTP Virtual Server settings are located).
Luckily you can launch it from within Server Manager:
Yes, I installed IIS and still couldn't find InetMgr.exe until I went back to
Turn Windows features on or off
and then checked
Internet Information Services
Web Management Tools
IIS Management Console

Configuring IIS on Windows Vista Home Edition

My friend accidentally bought a laptop with Windows Vista Home Basic Edition. He figured out how to install IIS on it, but it doesn't seem to have either the management console or the admin tools. Is there any way for him to configure a site or import an IIS 6 config file?
EDIT: "Windows Vista Home Edition" --> "Windows Vista Home Basic Edition".
Not entirely certain here, but start the IIS console on another machine and tell it to connect to the laptop? The normal management console snap-ins all support remote operation.
Yu need to go back into Windows Component Setup and choose to install the Managemnet console(s).
Control Panel>Programs->Turn Windows Feature on and off.
You will see Internet Information Services in there, go under there and you will find the management console(s).
And yes, they are available to be installed on Vista Home. Once installed you can setup by opening Control Panel->Adminstrative Tools and you will see the IIS manager in there.
Per Microsoft Technet, IIS Management Console is unavailable on Windows Vista Home Basic and Starter Editions though it is available on Home Premium and above. And I can confirm it doesn't appear in the list of options when I install IIS.
Okay, not being on Vista I don't know for sure, but on XP the application which controls IIS is %SystemRoot%\system32\inetsrv\iis.msc. Perhaps hunting around for iis.msc would be a first step.
You should be able to do an upgrade to home premium. I'm pretty sure it's available at quite a low cost. My Home Basic laptop came with a CD that had all the necessary stuff for upgrading to a different version of Windows (I upgraded to Linux). If you really want IIS to do development work, you should really upgrade. Or if you just want .Net, you can install VS.Net Express and use the development server.

Resources