469,646 Members | 1,567 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

VS2005 Website works locally but not when deployed

Website works locally but not when deployed

Can someone please help with what I hope is a common problem (I’m new to .net).

I have a simple website generated by Visual studio 2005 .NET

It has a custom handler because I need to poll my website and update the browser page every few seconds.

I have developed the project locally and everything is working FINE!

However … when I publish to my Website instead of getting my fresh data into the browser (IE) I get the handler HTML data ie the .aspx page HTML!

Do I need to do something with IIS? ( a grey area for me). If so I would be concerned if all users would need to make changes…

After 3 days hair pulling any ideas would be extremely welcome…

Visual studio 2005 Project

Folder App_Code
Folder App_Data

XMLHTTP requesting

var http = getHTTPObject();

var URL = "CaptionHandler.aspx?rat=bad&dog=good”;

http.open("GET", URL, true);

wait (http.readyState == 4) etc

var string = http.responseText;


CaptionHandler.aspx is shell page
CaptionHandler.cs is :

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Runtime.InteropServices;
using System.Text;

/// <summary>
/// Summary description for CaptionHandler
/// </summary>
namespace MyHandler
public class CaptionHandler : IHttpHandler
public CaptionHandler(){}

#region IHttpHandler Members

public void ProcessRequest(HttpContext context)
context.Response.ContentType = "text/plain";

string sVerb = context.Request.QueryString["…"];
string sCaption = context.Request.QueryString["…"];

public bool IsReusable
get { return true; }


<add verb="*" path="CaptionHandler.aspx" type="MyHandler.CaptionHandler" />

Fingers crossed ....
Feb 13 '08 #1
2 1468
I think I may be finally discovering the problem here.

My Web hosting company (which advertised ASP support) now reckons I need to add NET framework support to my account and that my website has to run in the root directory. A pain since I already have a website running there.

Does anyone know what other features I need to get to run my simple website! I guess I need ASPNET 2.0 support but do I need to insist on AJAX extensions?

Anyone recommend a good hosting site that has all the necessary features?

Many thanks
Feb 14 '08 #2
This was the problem - silly me I thought .NET framework came with everything nowadays.
Feb 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by NoNickname | last post: by
4 posts views Thread by musosdev | last post: by
reply views Thread by Krish | last post: by
3 posts views Thread by Paul Lennon | last post: by
reply views Thread by Paul | last post: by
9 posts views Thread by schmeckel | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.