Jump to content

Recommended Posts

Posted
I have tried to create several project types from visual studio and publish it using ftp. None has worked for me. Using both 3.5 and 4.6 .NET Framework. Right now I have left a Default.aspx file with very simple example code and it does not work either.
I do not know much about mono, I do not know if there is something special to make it work.
The test file that you had placed to test that it worked, I deleted it, I would like if you can put it back to verify the differences.
The code in the Default.aspx file is this:
<!-- directives -->
<% @Page Language="C#" %>

<!-- code section -->
<script runat="server">

   private void convertoupper(object sender, EventArgs e)
   {
      string str = mytext.Value;
      changed_text.InnerHtml = str.ToUpper();
   }
</script>

<!-- Layout -->
<html>
   <head> 
      <title> Change to Upper Case </title> 
   </head>
   
   <body>
      <h3> Conversion to Upper Case </h3>
      
      <form runat="server">
         <input runat="server" id="mytext" type="text" />
         <input runat="server" id="button1" type="submit" value="Enter..." OnServerClick="convertoupper"/>
         
         <hr />
         <h3> Results: </h3>
         <span runat="server" id="changed_text" />
      </form>
      
   </body>
   
</html>

Any idea? Thanks.

Posted

@OP you can use the dos2unix program (on Linux, maybe cygwin) or some option in sublime text3 to convert to utf8.

  • 2 weeks later...
Posted (edited)
I'm sorry but the file is now encoded in utf8 but it still does not work. Obviously I'm doing something wrong, but I do not think it's the file.
You guys could restore the test.aspx file so we check that everything is working fine?
Thanks

 

error.png

 

the same file works hosted in "somee" .... http://niandubay.somee.com/

Edited by niandu
Posted

No, asp.net access had been automatically removed from your account for inactivity. Java and asp.net use a lot of system resources, and the more people who have them enabled causes the server to perform worse even if their site doesn't get any traffic at all.

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...