Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everybody,

I am new to asp.net,i did a website using VS2008 and it was working fine in the localhost.we bought the hosting space.i tried posting asp.net content using filezilla and posted.but it was showing only text.please anyone give the solution or tips for hosting the site.
Posted
Comments
Parwej Ahamad 30-Sep-11 1:46am    
Showing Text means what? Are you able to connect your DB? Is CSS is applying? All page is accessible?
Member 7976636 30-Sep-11 3:44am    
text means its showing the coding part and i ran it in local iis.its running correctly

hitech_s 30-Sep-11 3:04am    
in your website have you use any chart controls or you are storing any images like things and give your site address we will see and tell you
Member 7976636 30-Sep-11 3:46am    
i didnt use any chart controls.http://www.cegonsoftfaq.com.
P.Salini 30-Sep-11 4:38am    
Before publishing files you just set startup project and startup file

I have viewed the site given by you
Set startup project and startup file and then publish those file.
then upload it.

see this link you will understand
http://support.microsoft.com/kb/185380[^]
 
Share this answer
 
Comments
P.Salini 30-Sep-11 4:47am    
If any one is giving down vote then please give reason so that i can improve myself.
Member 7976636 30-Sep-11 5:01am    
can u give me the solution for hosting the site using iis6.0?because iam running the site nicely as i told earlier from that iis in my system.but if i host the same file in the server using filezilla.its showing the error as "Page not found" etc.
Member 7976636 1-Oct-11 1:13am    
hi,
how to find my hosting server is supporting the .aspx files or not?yesterday u had given a idea to post the default.aspx file to check.
P.Salini 30-Sep-11 5:16am    
I saw your site and now it is giving page not found.
so may be you are not placing the files in correct folder.check it once as said by originalgriff.
Member 7976636 1-Oct-11 1:33am    
hi, how to find my hosting server is supporting the .aspx files or not?yesterday u had given a idea to post the default.aspx file to check.
First do a simple check:
Create (use notepad if you have to) two small files: default.aspx and default.aspx.cs:

ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!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>Coming soon...</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       Coming Soon!
    </div>
    </form>
</body>
</html>

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}

Now, copy these over to your web host root folder having deleted everything in it.
In your browser, address your site. You should have a very basic page saying "Coming soon".
If you don't, then you haven't placed it in the right place, and need to move it.
When you get that working, replace them with just the same name files from your working local solution. Continue to add your files until your site is up and running.

Eventually, you will probably want to publish your site instead (which precompiles it and so forth) but I would start with just getting something simple working first.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900