When I am trying to run the classic asp application over iis7.5 I am getting error "The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly."
Classic ASP is not enabled by default in IIS 7 and 7.5. It is easy to enable, see http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
Related
When i had the website on IIS 6.0, the classic ASP was called correctly from HTML and the email functionality in .asp file used to work. But i changed the IIS to 7.0 from 6.0 and i get this error when .asp is called. I think this has to do with Web.config file for the code to work.
Below is the code in HTML page that calls Classic Asp Page and the website is in asp.net using c#.
<form action="sendmail_feedback.asp" method="post" name="feedback" id="feedback" onsubmit="validate()">
What do you guys think i should add in web.config for the above piece of code to work.
Thank you in advance!
As Preston Guillot wrote, I fixed this by installing classic ASP in the Server manager:
add role/feature
->Web Server(IIS)
->Web Server
->Application Development
->ASP (classic unadorned ASP, not ASP.NET)
I know a similar question was raised on this in 2009, but I am really baffled by this.
I have a Windows XP development machine which is used for maintenance on a classic ASP web application. IIS 5.1 is the web server.
The problem: some sites serve up classic ASP with no problem, other sites give the "The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. " error in a ASP.Net looking way. Suggesting that asp.dll isn't being used to serve up the pages!? The list of which dll to use with which file extension is the same for both sites. Any new site created appears to have the same issue with serving cASP.
If IIS was consistently failing to server cASP on all sites I would be looking at common configuration, but as it's working on a some and not others I am utterly baffled.
Any help would be appreciated!
It looks like my server has ASP disabled because when trying to view an ASP file its source code is shown in the browser. After doing some research I've heard I can enable ASP on my server using IIS - is this correct? I've set up my website in IIS as far as I could; it's not asked me for FTP details or anything so I don't know how it's going to 'install ASP'... I've enabled ASP via the Control Panel so it appears within IIS, but don't know where to go next. Am I headed in the right direction?, could anyone give me some advice as I'm not sure if I'm barking up the right tree. Many thanks in advance.
I just tried this on my Windows 7 Professional box. Once I added the feature using "Add Windows Features", and refreshed IIS Manager, Classic ASP just showed up in the handler mappings.
Make sure Enable Parent Path = true in behavior Section of ASP in IIS.
Go into your programs > windows features. Find IIS, and go to www services. You should see ASP there. You may have to enable it in IIS as well - you haven't mentioned what version of IIS you're using (or OS), so I'll leave that up to you.
I generated a new web site in IIS. Under the new web site, there are some asp .net 2.0 applications. Tomcat is also running on the same server and they are working correctly.
But when I try to open an asp .net application, I am taking page can not be found error message. Then I changed the configuration settings of asp .net version from 2.0 to 1.1 then it is not giving page can not be found message but it gives an error message about web config. What can I do?
You haven't given many details. This could be a couple of things:
you have used an incorrect URL
you have used an incorrect protocol (i.e. http instead of https)
you are specifying a directory but you have no default document set up (i.e. you are going to http://mywebsite/myvirtualdir/, but you have no default.aspx)
you haven't installed ASP.NET so there are no handlers for aspx pages
until you give more details then no-one can say for sure what your problem is.
Good Morning,
I was having serious problems regarding this website.
What happens is everyytime I try to open a .shtml page in the site it always has an error "The Page Cannot Be Found" but this is highly unlikely since I already all have the resources in my local pc and already did a virtual directory for the entire site. Can you please tell me what's the problem? i've checked all the codes and they're constructed just fine.
If you're attempting to view the page in Internet Explorer then I recommend turning off friendly HTTP error messages in the advanced settings. Disabling the setting may result in more verbose error messages, especially if it's an HTTP/500.
This is not actually an ASP problem. .shtml files are handled by the server-side include ISAPI application extension.
In Web service Extensions folder under the server icon in IIS manager, ensure that Server Sice Includes is set to "Allowed".