sagnik Posted September 10, 2014 Posted September 10, 2014 I've a problem on .aspx pages. When I'm opening the .aspx pages in browser then, I'm getting a "500 Internal Server Error". I've changed the permition of the .aspx page to "0755". What I'll do to fix the problem? Please help me.
wolstech Posted September 10, 2014 Posted September 10, 2014 The code is bad. I saw in another topic of yours a specific error, which said you gave something a bad value. Also, code must be compiled for .net 3.5, as we don't support .net 4+... Be aware that as far as i know, few (or quite possibly nobody) here knows how to develop in asp.net, so you won't get much (if any) help. Most of us are PHP guys.
sagnik Posted September 10, 2014 Author Posted September 10, 2014 Please check my codehere is my code:<html><body bgcolor="yellow"><center><h2>First ASPX Coding by Sagnik Ganguly</h2><p><%Response.Write(Now())%></p></center></body></html>
wolstech Posted September 10, 2014 Posted September 10, 2014 I can't say if that's right or not, I don't know asp.net. I don't see anything obviously wrong though, and the HTML looks fine.
sagnik Posted September 10, 2014 Author Posted September 10, 2014 Recently, I've checked other pages like: .php, .cgi, .py, pl all pages goes a "500 Internal Server Error". How I can fix the problem?
yashrs Posted September 10, 2014 Posted September 10, 2014 Instead of this-<%Response.Write(Now())%>Use this:-<%= DateTime.Now.ToString() %> Also, please do check that the functions or anything you are using is for ASP.NET 3.5. We don't support any other version.
sagnik Posted September 10, 2014 Author Posted September 10, 2014 Ok, Thank you sir. Sir, I've done the changes it works. But now I'm getting ASP.NET Error. Please check the file. Here is the url of the file: http://www.sgjava.tk/test_coding/first_coding.aspx
yashrs Posted September 10, 2014 Posted September 10, 2014 Works:-<html> <body bgcolor="yellow"> <center> <h2>First ASPX Coding by Sagnik Ganguly</h2> <p><%= DateTime.Now.ToString() %></p> </center> </body> </html> Link:- http://yashrs.heliohost.org/aspx/sagnik.aspx
sagnik Posted September 10, 2014 Author Posted September 10, 2014 But, I'm getting the following error when opening the .aspx file in browser:Server Error in '/' ApplicationDocument element did not appear. Line 1, position 1.Description:HTTP 500. Error processing request. Stack Trace:System.Xml.XmlException: Document element did not appear. Line 1, position 1. at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 at System.Configuration.Configuration.connector (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x00000] in <filename unknown>:0 Version information: Mono Runtime Version:2.6.7 (tarball Thu Oct 18 23:33:40 PDT 2012); ASP.NET Version:2.0.50727.1433
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now