Groups > Asp .Net > Getting started with ASP.NET > Re: form all but dissappears when run on server




form all but dissappears when run on server

form all but dissappears when run on server
Thu, 3 Apr 2008 14:33:43 +0000
Hey its my first time deploying an asp .net application. My form works fine
locally but dissappears when i run it on the internet. There should be a header,
a table with 15 rows and a couple of buttons at the bottom. All im left with is
this http://www.firstireland.ie/V2/nursing.aspx

 

Heres my config file, I might be missing something here, im not sure..

 

<!-- 

Note: As an alternative to hand editing this file you can use the 

web admin tool to configure settings for your application. Use

the Website->Asp.Net Configuration option in Visual Studio.

A full list of settings and comments can be found in 

machine.config.comments usually located in 

\Windows\Microsoft.Net\Framework\v2.x\Config 

-->

<configuration>

<appSettings/>

<connectionStrings/>

<system.web>

<!-- 

Set compilation debug="true" to insert debugging 

symbols into the compiled page. Because this 

affects performance, set this value to true only 

during development.

Visual Basic options:

Set strict="true" to disallow all data type conversions 

where data loss can occur. 

Set explicit="true" to force declaration of all variables.

-->

<compilation debug="true" strict="false"
explicit="true"/>

<pages>

<namespaces>

<clear/>

<add namespace="System"/>

<add namespace="System.Collections"/>

<add namespace="System.Collections.Specialized"/>

<add namespace="System.Configuration"/>

<add namespace="System.Text"/>

<add namespace="System.Text.RegularExpressions"/>

<add namespace="System.Web"/>

<add namespace="System.Web.Caching"/>

<add namespace="System.Web.SessionState"/>

<add namespace="System.Web.Security"/>

<add namespace="System.Web.Profile"/>

<add namespace="System.Web.UI"/>

<add namespace="System.Web.UI.WebControls"/>

<add namespace="System.Web.UI.WebControls.WebParts"/>

<add namespace="System.Web.UI.HtmlControls"/>

<add namespace="System.Net.Mail"/>

</namespaces>

</pages>

<!--

The <authentication> section enables configuration 

of the security authentication mode used by 

ASP.NET to identify an incoming user. 

-->

<authentication mode="Windows"/>

<!--

The <customErrors> section enables configuration 

of what to do if/when an unhandled error occurs 

during the execution of a request. Specifically, 

it enables developers to configure html error pages 

to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm"
/>

</customErrors>

-->

</system.web>

</configuration>

 

My aspx file

<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="~/nursing.aspx.vb"  Inherits="_nursing" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Nursing Insurance Form</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         
        <table border ="1"  rules ="none" frame
="box" bordercolor ="black" cellpadding ="5"
style="z-index: 102; left: 3px; position: absolute; top: 42px">
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label1" runat="server" 
Text="Contact Name:"></asp:Label>
                </td>
                <td style="width: 100px">
                   <asp:TextBox ID="TextBox1"
runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label2" runat="server" 
Text="Address:"></asp:Label>
                
                </td>
                <td style="width: 100px">
                 <asp:TextBox ID="TextBox2" textmode
="multiline" rows ="4" runat="server"
></asp:TextBox>
               
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label3" runat="server" 
Text="Renewal Date:"></asp:Label>
                </td>
                <td style="width: 100px">
                
                <asp:TextBox ID="TextBox3" runat="server"
></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                
                 <asp:Label ID="Label4" runat="server" 
Text="Current Insurer:"></asp:Label>
                
                 
                </td>
                <td style="width: 100px">
                 <asp:TextBox ID="TextBox4"
runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label5" runat="server" 
Text="Building Sums Insured:"></asp:Label>
                </td>
                <td style="width: 100px">
                <asp:TextBox ID="TextBox5" runat="server"
></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label6" runat="server" 
Text="Contents Sums Insured:"></asp:Label>
                </td>
                <td style="width: 100px">
                <asp:TextBox ID="TextBox6" runat="server"
></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
               <asp:Label ID="Label7" runat="server" 
Text="Residents Effect Cover (25k free):"></asp:Label>
                </td>
                <td style="width: 100px">
                 <asp:TextBox ID="TextBox7"
runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                  <asp:Label ID="Label8" runat="server" 
Text="Stock Sum Insured:"></asp:Label>
                </td>
                <td style="width: 100px">
                 <asp:TextBox ID="TextBox8"
runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                  <asp:Label ID="Label9" runat="server" 
Text="Business Interuption - sum insured (gross profit
basis):"></asp:Label>
                </td>
                <td style="width: 100px">
                  <asp:TextBox ID="TextBox9"
runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                 <asp:Label ID="Label10" runat="server" 
Text="No of Beds:"></asp:Label>
                </td>
                <td style="width: 100px">
                  <asp:TextBox ID="TextBox10"
runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label11" runat="server" 
Text="Any Previous Claims in the last 5 years:"></asp:Label>
                </td>
                <td style="width: 100px">
                <asp:CheckBox ID="CheckBoxClaims"
runat="server"  />
                 
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                 <asp:Label ID="Label12" runat="server" 
Text="If yes please provide details:"></asp:Label>
                </td>
                <td style="width: 100px">
                <asp:TextBox ID="TextBox11" textmode
="multiline" rows ="4" runat="server"
></asp:TextBox>
                
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                <asp:Label ID="Label13" runat="server" 
Text="Year property was built:"></asp:Label>
                 
                </td>
                <td style="width: 100px">
                <asp:TextBox ID="TextBox12"
runat="server" ></asp:TextBox>
                
                </td>
            </tr>
            <tr>
                <td style="width: 360px; height: 41px;">
                <asp:Label ID="Label14" runat="server" 
Text="Last years premium:"></asp:Label>
                </td>
                <td style="width: 100px; height: 41px;">
                <asp:TextBox ID="TextBox13"
runat="server" ></asp:TextBox>
                 
                </td>
            </tr>
            <tr>
                <td style="width: 360px">
                 <asp:Label ID="Label15" runat="server" 
Text="Is it in area that suffers from flood?"></asp:Label>
                </td>
                <td style="width: 100px">
                 <asp:CheckBox ID="CheckBoxFlood"
runat="server" 
            />
                </td>
            </tr>
        </table>
          
        <asp:Button ID="ButtonSubmit" runat="server"
Style="z-index: 100; left: 475px; position: absolute;
            top: 730px" Text="Submit" Width="80px"
/>
        <asp:Button ID="ButtonClear" runat="server"
Style="z-index: 100; left: 375px; position: absolute;
            top: 730px" Text="Clear" Width="80px"
/>
        <asp:Label ID="LabelHeader" runat="server"
Style="z-index: 103; left: 213px; position: absolute;
            top: 12px" Text="Nursing Insurance Form"
Font-Size="Larger" ForeColor="Red"></asp:Label>
    
    </div>
    </form>
</body>
</html>


 AND my aspx.vb code
Post Reply
Re: form all but dissappears when run on server
Thu, 3 Apr 2008 14:40:51 +0000
It's not your code.  It looks like the site isn't configured for ASP.NET.  The
source shows it serves the text in your ASPX file.  See www.iis.net for help
configuring IIS, same login as here.

Jeff
Post Reply
Re: form all but dissappears when run on server
Thu, 3 Apr 2008 14:41:44 +0000
The aspx pages are actually being downloaded instead of processed and returned
as html. I'm not sure exactly what this means, but something fundamental is
missing from your server, be it in IIS, the .Net framework or something else.
Post Reply
Re: form all but dissappears when run on server
Thu, 3 Apr 2008 14:50:41 +0000
It seems your Web Server has no .NET Framework running.

Take a look at the source code of your page (right click the page and choose
source code)

There are tags like this:

<td style="width: 360px">
                <asp:Label ID="Label1" runat="server" 
Text="Contact Name:"></asp:Label>
                </td>

that is not correct becouse the .NET runtime shoud render a tag like
<asp:Label to a HTML tag

 Good Luck
Post Reply
Re: form all but dissappears when run on server
Thu, 3 Apr 2008 15:21:08 +0000
thanks for the heads up reguarding the server. Ive uploaded it to another
server, hopefully this one serves .net pages. 

Im getting an error message now instead

 
Server Error in '/' Application. 

Runtime Error


Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application error
from being viewed remotely (for security reasons). It could, however, be viewed
by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on
remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".



<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error
page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.



<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

 

I ammended the config file like it says and uploaded it but i still get the same
error message??

 

I found this on another forum but im not sure if its the right answer

********************************************************************************
********************************************************************************
***********  I also had this problem and contacted Live Support in the end. I
thought I'd answer this here since it hasn't been closed. This was the answer I
got from support:

ASP.NET 2.0 is available for free on all Standard accounts. 1.1 is installed by
default on all domains. To switch to 2.0 on any domain, customers would need to
submit a support ticket.

After this my ASP.Net 2.0 applications worked fine.
********************************************************************************
********************************************************************************
*********** Whats a support ticket??
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact