Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

Please check my code

here is my code:

<html>

<body bgcolor="yellow">

<center>

<h2>First ASPX Coding by Sagnik Ganguly</h2>

<p><%Response.Write(Now())%></p>

</center>

</body>

</html>

Posted

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?

Posted

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.

Posted

But, I'm getting the following error when opening the .aspx file in browser:

Server Error in '/' Application

Document 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

Posted

Please fix my problem...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...