Can someone guess what the problem could be here:
After testing my site thoroughly on my IIS localhost I uploaded to the server of the new host, and two days later he still doesn't display anything that is not html, and none of my database driven ASP pages either, although he supports asp and my database.
The asp pages show up like a txt page would - code only!
Luckily I was smart enough to keep my old account paid up to overlap with the new one, and I quickly set the DNS to point back to it.
I won't change it until all runs well on the new one, but I would really like to know how that can happen (displaying code only).
This a shared account? or dedicated?
If its dedicated need to make sure you have the correct options turned on in IIS.
If its shared try contacting them and make sure they setup your virtual host to allow script executions.
By default when you setup a new virtual host. Its not going to display anything other than static content. Best way to get this resolved is to contact your provider(if its a shared account)
Just a virtual server, not dedicated.
I still don't understand why it should display my ASP pages as source code like a txt page!
And no db-fed content, although I placed the DB in my root folder as instructed.
It looks like the settings on your new server will not allow for script execution hence the pages display as text. As Cope has pointed out.
Contact your host and get the settings checked.
█ █ HOSTCAPACITY||www.hostcapacity.com|| SALES: cs @ hostcapacity.com ||MSN: msn @ hostcapacity.com
█ █ Shared Hosting || Multi Domain Hosting || Private Label Reseller Hosting
█ █ Pay Pal Accepted || 99% Uptime || Hosting Since 2002
█ █ Support and Customer Service that really care about our clients || It's the Service that counts.
Displaying ASP pages as text simply means that you HTTP Server is not executing pages with .asp extension. Either the ASP is not enabled or it can't understand your extension.. that is what I can make out
The page is displaying .asp code simply because your web folder or your IIS server is not executing the .asp web pages. Therefore, it treats the page just like a normal .html web page.
There are 2 ways that may solve the dll execution problem.
1) Simply stop and restart the IIS server
2) Shut down your Norton anti virus program. Norton system program is treating IISWebUser as a web users. The antivirus program will block and prevent any web users from executing your program in your computer. Close the antivirus program and try again.
Originally posted by Alsenor Cristiano, you misunderstood I think.
On my localhost it works fine, but on my web host it doesn't.
BTW, if it treats it like html, why would it display the code?
Because it doesn't understand your ASP script within the HTML page. This might be an obvious question, but do your pages end in .asp? (I'm wondering if your localhost is set up to parse .html files as .asp?) If not, that may be the problem.
If a server is not set up to properly parse (or execute) ASP code, it will show that code as if it were simple text on the .html page. If your pages end in .asp (ie: index.asp), then your host does not have you set up correctly to execute ASP on your site. Contact them!