Reputation: 971
I have a asp.net web application. I need to upload the published files to AWS and get accessing it through a browser. I have downloaded S3 browser and and created my account using the access key and secret access key. Then i uploaded the published files to the desired bucket. But when i accessed Default.aspx, browser showed error :
This page contains the following errors:
error on line 1 at column 2: StartTag: invalid element name Below is a rendering of the page up to the first error.
I just checked uploading a sample html page to that path and i could access it successfully. Is there any thing that I need to do on EC2 to get my website up??
Upvotes: 3
Views: 330
Reputation: 6517
It appears as if the browser tries to display what it thinks is an XML file, since it gives an error on the second character of the first line. So I think the file is not parsed, but simply returned as is immediately. Check if your IIS server is configured correctly and that it actually parses your ASP tags before returning the page.
You might have a configuration issue in IIS. Try re-registering ASP.Net with IIS on your server using the following from the command-line:
aspnet_regiis.exe -i
The exe file is located under the appropriate framework version on the server in the following directory:
C:\WINDOWS\Microsoft.NET\Framework
Also make sure the version of aspnet_regiis
you use is the same as your application's app pool framework version in IIS.
Upvotes: 1