473,545 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005 Website works locally but not when deployed

3 New Member
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&d og=good”;

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

wait (http.readyStat e == 4) etc

var string = http.responseTe xt;

send(null);

CaptionHandler. aspx is shell page
CaptionHandler. cs is :
=============== ====

using System;
using System.Data;
using System.Configur ation;
using System.Web;
using System.Web.Secu rity;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.W ebControls.WebP arts;
using System.Web.UI.H tmlControls;
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.Respons e.ContentType = "text/plain";

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

context.Respons e.Write(sVerb);
context.Respons e.Write(sCaptio n);
}
}
public bool IsReusable
{
get { return true; }
}
#endregion
}
}


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

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

Fingers crossed ....
Feb 13 '08 #1
2 1670
dogged
3 New Member
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 New Member
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
2571
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 solution: 1) web service website. 2) SOAP Extension Class Lib that compiles to a dll 3) WinForm application with a proxy to test the web service.
10
2511
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. Anyway, I decided to have a go at loading them as web projects from our Win2k3 server. It gets so far and then says "The web server does not appear to...
6
3615
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 list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web...
4
2371
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 Open Website, I can type in the location of my server by entering http://10.0.0.253:4040. That works fine, and VS loads the project.
0
929
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 to asp.net 2.0, still didnt help. Parser Error Description: An error occurred during the parsing of a resource required to service this request....
7
2733
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 below). Please help me get through this!!! I'm having some serious problems attaching a .mdf file and accessing it. I have a WroxUntied.mdf that I...
3
2370
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 using the file system. I am not trying to do any server side programming, for now simple HTML is sufficient. My site seems to be working fine...
0
1214
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 control reference in the live/deployed site. All of the binaries are in the "bin" directory. I have the tag prefix registered in web.config.
9
1989
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 upload the page to my website and try running it, the page updates as a full page update rather than a partial page update. I believe the web.config...
0
7502
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7434
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7692
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7946
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5360
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
744
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.