473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

VS2005 Website works locally but not when deployed

3
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
======================
MyProject

Folder App_Code
CaptionHandler.cs
CaptionHandler.aspx.cs
Folder App_Data
CaptionHandler.aspx
CaptionHandler.aspx.cs
Default.aspx
Default.aspx.cs
Web.Config



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;

send(null);

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["…"];

context.Response.Write(sVerb);
context.Response.Write(sCaption);
}
}
public bool IsReusable
{
get { return true; }
}
#endregion
}
}


web.config
======================

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

Fingers crossed ....
Feb 13 '08 #1
2 1655
dogged
3
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
dogged
3
This was the problem - silly me I thought .NET framework came with everything nowadays.
Feb 15 '08 #3

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

Similar topics

5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
4
by: musosdev | last post by:
Hi peeps I've just moved my dev system to Win2k3 / VS2005 (from Win2k/VS2k3) and I'm having a problem. I've setup a new website in IIS, enabled .net, fpse, etc. From VS2005, if I choose...
0
by: Krish | last post by:
Hi , web app developed locally worked fine locally (using VS 2005), but when deployed win 2003 server (suing VS 2005 publish web site) getting following error. Pl. help. I have marked virtual dir...
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
3
by: Paul Lennon | last post by:
Hi, I hope I have selected the right group for this question, I am looking for assistance with using VS2005 to create a simple website on my ISP. Using VS2005 I have created a Website project...
0
by: Paul | last post by:
Hi all, I'm trying to deploy a small website that has a couple of custom controls. This works fine locally, but falls over with an "Unknown server tag" error when trying to parse the custom...
9
by: schmeckel | last post by:
I am trying to use some very basic AJAX functionality (update panel for partial page update) on my website. When I run my webpage in VS 2005, the partial page update works fine. However, when I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.