473,698 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with custom web server control

I need help diagnosing an error that occurs on the web server where my
web site is hosted, but
it does not occur when I run it under VS2005. I have an errors.aspx
page that captures unhandled application errors. The error I get from
Server.GetLastE rror() is:
"The server cannot fulfill your request."

Scenario: I developed a composite web server control in C# . It is on
a web page in an ASP project I developed with VB as the language. The
web server control has a Close button that I have wired to
the onclick event to raise the "CloseClick " event in the web page,
which pops a messagebox asking user if they want to save changes. This
works on a local machine under VS2005, but on the server that is
hosting the application, when I click the Close button I get the above
mentioned error. I am using one of those virtual hosting companies.
This is a personal project; I do not have servers to test things on,
just my local pc.

I am not sure if it is my code, the configuration on the webserver, or
how to diagnose the problem. I extracted the pertinent parts of the
code for the Close button -there are several controls and other
buttons, but the close button is the only control that causes raises
an event on an .aspx page.
>From the C# class library which I compile to a .dll and add to my web
project.

public class ListSelector : CompositeContro l, IPostBackDataHa ndler
{
public ListSelector()
{
btnClose.Click += new EventHandler(bt nClose_Click);
}

public event EventHandler CloseClick;

btnClose.ID = "btnClose";
btnClose.Enable ViewState = false;
btnClose.Text = this.CloseButto nCaption;

this.Controls.A dd(btnClose);

this.btnClose.A ttributes.Add(" onclick", "return true;");

protected override void Render(HtmlText Writer output)
{
this.btnClose.A ttributes.Add(" onclick", "return true;");
base.Render(out put);
}

protected void btnClose_Click( object sender, EventArgs e)
{
if (this.CloseClic k != null) this.CloseClick (this, new
EventArgs());
}
In the .aspx page the following event captures the button's click
event. This is raised when run
from VS2005, but not on the web server.

Protected Sub ListSelector1_C loseClick(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ListSelector1.C loseClick
Try
If MsgBox("Save changes?", MsgBoxStyle.Yes No, "Moxie
Quotes") = MsgBoxResult.Ye s Then
'several lines of code here
Catch ex As Exception
MsgBox("Unable to save
parameters",Msg BoxStyle.Inform ation)
End Try
End Sub

Bill

Jun 9 '07 #1
1 1766

<bi*********@ya hoo.comwrote in message
news:11******** *************@a 26g2000pre.goog legroups.com...
>I need help diagnosing an error that occurs on the web server where my
web site is hosted, but
it does not occur when I run it under VS2005.
I think you need to publish it to your local Web server and see if the
problem follows.

It talks about a misconfiguratio n of a Web server when a *request cannot be
fulfilled*.

http://www.microsoft.com/technet/arc....mspx?mfr=true

The Web site Publishing feature in VS 2005 that's compiling the code can
hide a problem when it's deployed to a Web server.

I had a situation were an Oracle dll I was using on the workstation was not
the same version that was out on the Web server. So, when the application
started, it was giving some off the wall error condition. I had a feeling it
was the dll, but I couldn't say for sure.

It became clear that it was a dll problem when the solution was not
published using VS 2005, and it was put out there on the Web server to be
compiled and executed at the server.
Jun 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2268
by: Eric | last post by:
I have built a composite user web control that I want to create dynamically. The form will contain a variable number of these controls and as well some of the contents of the user web control itself are dynamically created controls. I create as follows: wcGroupControl oGroupControl = new wcGroupControl(); I then tried calling methods of the control passing dynamic controls as parameters that need to be added to the web controls on the...
1
1863
by: Wannabe_Geek | last post by:
Hi Iam new to MS .Net technology just getting along with it....I created a custom control ,which takes in a query and displays the data in a tabular format....something similar to a datagrid. Since its a custom Control I drag and drop and use it in my Pages. I overload the render method of my Custom Control and I pass the data that is to be displayed. Now there is a requisite I have to add a Control ( Say for ex a Dropdown List box)...
1
1973
by: Lamont Adams | last post by:
Hi all, I've created numerous custom controls of varying complexity, but I've been on this problem for a day and a half, and I can't figure this mystery out. I hope one of you kind folks can point out the really obvious and stupid thing I'm overlooking here. :) I have a custom control that provides a tasklist similar to what you get in certain parts of Office. On the client it consists of a bunch of nested, named and id'ed divs with...
4
1786
by: DKode | last post by:
I have developed a custom server control that displays a login page that authenticates against AD. The server control works fine, but now I am trying to figure out the best way to output custom html. The HTML output for the server control changes for each application I include the server control in. At first I thought about making an html file and just including it, but this won't work because with the custom html I output two textboxes...
2
3553
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the custom membership provider fine and removes the security question/answer fields as designated in the custom provider. The problem is that when I try to create a new user in the create user wizard by entering the info and pressing the 'create...
1
2346
by: rushikesh.joshi | last post by:
Hi All, I want some charting functionality in my ASP.NET application. I want to show a multiple bar on my web page. It's based on down time of different servers. like server1: down betn 4 AM to 5 AM and 6 PM to 7 PM server2: down betn 7 AM to 7:30 AM server3: down betn 3 AM to 5 AM and 2 Pm to 3 PM
11
3280
by: Nick Gilbert | last post by:
Hi, How can I create a custom control which will wrap its content in a header and footer? eg: Is it possible to create a .NET user control which can surround other controls? eg: <my:RoundedCornerBox id=foo runat=server>
2
4375
by: shapper | last post by:
Hello, I created an Asp.Net 2.0 which contains a custom control. I compiled the project and now I am using it in a web site. The custom control contains a Panel, a Label and an Image. Here is how the custom control code starts:
3
1421
by: Tomasz J | last post by:
Hello Developers, I have a control derived from System.Web.UI.WebControls.WebControl. Control has this property: public string Value { set { _value = value; } get { return _value; }
4
2482
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried unsuccessfully in creating the whole pane as a user control and have succeeded in adding the pane and then dynamically adding the content which is a user control to the pane, dynamically within the page. However I would like to have a single pane...
0
8675
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9160
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7729
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2002
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.