resourcesys
asked on
ASP website not running on Windows 2016
Hi all,
I have a new server with windows 2016, and I need to copy across an small number of ASP websites.
So, starting with a single website, I installed all the necessary files and ran the site. When loading a page that connects to an SQL server database, an error occurs and I get a link to a website assuming that ASP is not activated.
To verify that it is, I have loaded a test .asp page and it does load correctly.
I think the issue is related to MDAC, I have tried to install version 2.8 but I can't tell if it actually did install or not. I can't confirm this is the issue but do believe it is database related.
Has anyone else encountered a similar issue, and resolved it?
Any help is appreciated.
resourcesys.
I have a new server with windows 2016, and I need to copy across an small number of ASP websites.
So, starting with a single website, I installed all the necessary files and ran the site. When loading a page that connects to an SQL server database, an error occurs and I get a link to a website assuming that ASP is not activated.
To verify that it is, I have loaded a test .asp page and it does load correctly.
I think the issue is related to MDAC, I have tried to install version 2.8 but I can't tell if it actually did install or not. I can't confirm this is the issue but do believe it is database related.
Has anyone else encountered a similar issue, and resolved it?
Any help is appreciated.
resourcesys.
It will help to get the exact error. It does seem like you have asp, but to get the exact error try this at the top of your page
and at the bottom of the asp page
This will give you the exact error if you are getting a "500" code.
Try and first run a simple data connection without using any dll's too to eliminate that feature.
Err.Clear
On Error Resume Next
and at the bottom of the asp page
if Err.Number <> 0 Then
Response.Write ("ERROR: "&Err.Number&": "&Err.Description)
end if
This will give you the exact error if you are getting a "500" code.
Try and first run a simple data connection without using any dll's too to eliminate that feature.
Have you actualy installed the ASP properly?
try follow the steps here:
Classic ASP Not Installed by Default on IIS 7.0 and above
https://docs.microsoft.com/en-us/iis/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
ASP <asp>
https://docs.microsoft.com/en-us/iis/configuration/system.webServer/asp/
Also to display error on the browser:
Classic ASP Script Error Messages No Longer Shown in Web Browser by Default
https://docs.microsoft.com/en-us/iis/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-script-error-messages-no-longer-shown-in-web-browser-by-default
try follow the steps here:
Classic ASP Not Installed by Default on IIS 7.0 and above
https://docs.microsoft.com/en-us/iis/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
ASP <asp>
https://docs.microsoft.com/en-us/iis/configuration/system.webServer/asp/
Also to display error on the browser:
Classic ASP Script Error Messages No Longer Shown in Web Browser by Default
https://docs.microsoft.com/en-us/iis/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-script-error-messages-no-longer-shown-in-web-browser-by-default
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or, if you're attempting to connect a a remote database instance (remote == different machine), then your remote access credentials require review.
Make your question a bit clearer, as to if this is a database connection error or some other error.