473,387 Members | 1,517 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,387 software developers and data experts.

Error when subscribing to webservice from asp.net

132 100+
Hi there.
I have written an asp.net / c# web application that subscribes to a web service and all works fine.
If I then enclose the page functionality of the web page within AJAX tab and accordion controls, I am then receiving an error of the type:
-----------------------------------------------------------------------------
Server Error in '/ClientApp' Application.
--------------------------------------------------------------------------------
The request failed with HTTP status 404: Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with HTTP status 404: Not Found.
--------------------------------------------------------------------------------------------

Is there anything additional I need to do in order to make the same functionality work from within AJAX controls please?

Thank you.

M :)
Jan 12 '09 #1
18 2609
Curtis Rutland
3,256 Expert 2GB
I think that you need to add this decoration to the webservice:
Expand|Select|Wrap|Line Numbers
  1. [System.Web.Script.Services.ScriptService]
When I create a new web service I see this:
Expand|Select|Wrap|Line Numbers
  1. .
  2. .
  3. .
  4. [WebService(Namespace = "http://tempuri.org/")]
  5. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  6. // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
  7. [System.Web.Script.Services.ScriptService]
  8. public class WebService : System.Web.Services.WebService {
  9. .
  10. .
  11. .
So if you have control over your service, you should do that. Of course, I think that this requires Framework 3.5.
Jan 12 '09 #2
Frinavale
9,735 Expert Mod 8TB
It would help if you showed us how you were calling the web service.
Are you calling it client side or server side?
Jan 12 '09 #3
E11esar
132 100+
Thank you for the help.

I have the webservice using the attribute and an example of the web service is as follows (cut down for readability):

Expand|Select|Wrap|Line Numbers
  1. using System.Configuration;
  2. using System.Data;
  3. using System.Web.Services;
  4. using System.Data.OracleClient;
  5. [WebService(Namespace = "http://localhost/AddSearch/")]
  6. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  7. // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
  8. [System.Web.Script.Services.ScriptService]
  9. public class Service : WebService
  10. {
  11.     public Service () {
  12.         //Uncomment the following line if using designed components 
  13.         //InitializeComponent(); 
  14.     }
  15. //LLPG Extract Address
  16.     [WebMethod(Description = "Return address details based on eleven parameters (int, string x 10)")]
  17.     public DataSet LLPG_EXTRACT_ADDRESS(string p1Uprn, int p2Usrn, string p3Saon, string p4Paon, string p5StreetDescriptor, string p6LocalityName, string p7PostTown, string p8CountyName, string p9PostCode, string p10LastUpdateFrom, string p11LastUpdateTo)
  18.     {
  19.         OracleConnection conn = GetConn();
  20.         conn.Open();
  21.         OracleCommand sComm = new OracleCommand("LLPG_EXTRACT_ADDRESS", conn);
  22.         sComm.CommandType = CommandType.StoredProcedure;
  23.         sComm.Parameters.Add("p_uprn", OracleType.Char).Value = p1Uprn;
  24.         sComm.Parameters.Add("p_usrn", OracleType.Number).Value = p2Usrn;
  25.         sComm.Parameters.Add("p_saon", OracleType.Char).Value = p3Saon;
  26.         sComm.Parameters.Add("p_paon", OracleType.Char).Value = p4Paon;
  27.         sComm.Parameters.Add("p_street_desc", OracleType.Char).Value = p5StreetDescriptor;
  28.         sComm.Parameters.Add("p_locality_name", OracleType.Char).Value = p6LocalityName;
  29.         sComm.Parameters.Add("p_posttown", OracleType.Char).Value = p7PostTown;
  30.         sComm.Parameters.Add("p_county_name", OracleType.Char).Value = p8CountyName;
  31.         sComm.Parameters.Add("p_postcode", OracleType.Char).Value = p9PostCode;
  32.         sComm.Parameters.Add("p_last_upd_from", OracleType.Char).Value = p10LastUpdateFrom;
  33.         sComm.Parameters.Add("p_last_upd_to", OracleType.Char).Value = p11LastUpdateTo;
  34.         sComm.Parameters.Add("p_result", OracleType.Cursor).Direction = ParameterDirection.Output;
  35.         OracleDataAdapter dataAdapter = new OracleDataAdapter(sComm);
  36.         DataSet addDataSet = new DataSet();
  37.         dataAdapter.Fill(addDataSet);
  38.         return addDataSet;
  39.     }
  40.  
The code that calls this web service, from the web application is as follows:

Expand|Select|Wrap|Line Numbers
  1.  
  2. protected void btnExtract_Click(object sender, EventArgs e)
  3.     {
  4.         TextBox p1 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtUPRN");
  5.         TextBox p2 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtUSRN");
  6.         TextBox p3 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtSAON");
  7.         TextBox p4 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtPAON");
  8.         TextBox p5 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtStreetDescriptor");
  9.         TextBox p6 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtLocalityName");
  10.         TextBox p7 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtPostTown");
  11.         TextBox p8 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtCountyName");
  12.         TextBox p9 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtPostCode2");
  13.         TextBox p10 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtLastUpdateFrom");
  14.         TextBox p11 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtLastUpdateTo");
  15.         //TextBox p12 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtCrossReference");
  16.         //TextBox p13 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtOldCrossReference");
  17.         //TextBox p14 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtSource");
  18.         DropDownList list = (DropDownList)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("lbExtractType");
  19.         string extractType = list.SelectedItem.Value;
  20.         GridView gridView1 = (GridView)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane2").FindControl("GridView1");
  21.         switch (extractType)
  22.         {
  23.             case ("LLPG_EXTRACT_ADDRESS"):
  24.                 gridView1.DataSource = myService.LLPG_EXTRACT_ADDRESS(p1.Text.ToUpper(), Convert.ToInt32(p2.Text), p3.Text.ToUpper(), p4.Text.ToUpper(), p5.Text.ToUpper(), p6.Text.ToUpper(), p7.Text.ToUpper(), p8.Text.ToUpper(), p9.Text.ToUpper(), p10.Text.ToUpper(), p11.Text.ToUpper());
  25.                 break;
  26.             case ("LLPG_EXTRACT_LPI"):
  27.                 gridView1.DataSource = myService.LLPG_EXTRACT_BLPU(p1.Text.ToUpper(), Convert.ToInt32(p2.Text), p3.Text.ToUpper(), p4.Text.ToUpper(), p5.Text.ToUpper(), p6.Text.ToUpper(), p7.Text.ToUpper(), p8.Text.ToUpper(), p9.Text.ToUpper(), p10.Text.ToUpper(), p11.Text.ToUpper());
  28.                 break;
  29.             case ("LLPG_EXTRACT_BLPU"):
  30.                 gridView1.DataSource = myService.LLPG_EXTRACT_LPG(p1.Text.ToUpper(), Convert.ToInt32(p2.Text), p3.Text.ToUpper(), p4.Text.ToUpper(), p5.Text.ToUpper(), p6.Text.ToUpper(), p7.Text.ToUpper(), p8.Text.ToUpper(), p9.Text.ToUpper(), p10.Text.ToUpper(), p11.Text.ToUpper());
  31.                 break;
  32.             case ("LLPG_EXTRACT_NSG"):
  33.                 gridView1.DataSource = myService.LLPG_EXTRACT_LPI(p1.Text.ToUpper(), Convert.ToInt32(p2.Text), p3.Text.ToUpper(), p4.Text.ToUpper(), p5.Text.ToUpper(), p6.Text.ToUpper(), p7.Text.ToUpper(), p8.Text.ToUpper(), p9.Text.ToUpper(), p10.Text.ToUpper(), p11.Text.ToUpper());
  34.                 break;
  35.             case ("LLPG_EXTRACT_STREET"):
  36.                 gridView1.DataSource = myService.LLPG_EXTRACT_NSG(p1.Text.ToUpper(), Convert.ToInt32(p2.Text), p3.Text.ToUpper(), p4.Text.ToUpper(), p5.Text.ToUpper(), p6.Text.ToUpper(), p7.Text.ToUpper(), p8.Text.ToUpper(), p9.Text.ToUpper(), p10.Text.ToUpper(), p11.Text.ToUpper());
  37.                 break;
  38.             case ("LLPG_EXTRACT_LPG"):
  39.                 gridView1.DataSource = myService.LLPG_EXTRACT_STREET(p1.Text.ToUpper(), Convert.ToInt32(p2.Text), p3.Text.ToUpper(), p4.Text.ToUpper(), p5.Text.ToUpper(), p6.Text.ToUpper(), p7.Text.ToUpper(), p8.Text.ToUpper(), p9.Text.ToUpper(), p10.Text.ToUpper(), p11.Text.ToUpper());
  40.                 break;
  41.         }
  42.         gridView1.DataBind();
  43.     }
  44.  
  45.  
I have had to use the FindControl()'s due to the AJAX tab and accordion controls.

Hopefully this will make some obvious sense..?

I have published both the webservice and associated test web site (client), placed them in IIS and tried running from there and also ensured the web reference for the client is correct.

Still I get the 404 error message.

Thank you.

M :)
Jan 12 '09 #4
Frinavale
9,735 Expert Mod 8TB
@E11esar
The error is not obvious looking over your code.
This is going to sound like dumb question but here it goes: did you update the web service reference in your ASP.NET application to make sure that it references the web service once it's been published to IIS?
Jan 12 '09 #5
E11esar
132 100+
Hi there.

Yes I have checked that one and the web reference is okay.

It is a strange one as everything works okay outside of AJAX.

Thank you.

Mark :)
Jan 12 '09 #6
Frinavale
9,735 Expert Mod 8TB
I cannot reproduce your error.
Here's what I've tried so far...

I created a Web Service:

Expand|Select|Wrap|Line Numbers
  1. Imports System.Web.Services
  2. Imports System.Web.Services.Protocols
  3. Imports System.ComponentModel
  4.  
  5. ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
  6. ' <System.Web.Script.Services.ScriptService()> _
  7. <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
  8. <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
  9. <ToolboxItem(False)> _
  10. Public Class Service1
  11.     Inherits System.Web.Services.WebService
  12.  
  13.     <WebMethod()> _
  14.     Public Function Greeting(ByVal person As String) As String
  15.         Return "Hello " + person + "!"
  16.     End Function
  17.  
  18. End Class
And then created an ASPX page that contains a Tab control.

I placed a TextBox (to grab the name), a button (to execute the Web Service), and a label (to display the message retrieved from the Web Service) in the first Tab in the Tab Control.
Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="ScratchPad.Test" %>
  2. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
  3. <%@ Register Assembly="ScratchPad" Namespace="ScratchPad" TagPrefix="cc1" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7. <title>Untitled Page</title>
  8. </head>
  9. <body>
  10.   <form id="form1" runat="server" defaultbutton="Button2">
  11.  
  12.     <asp:ScriptManager ID="scManager" runat="server"></asp:ScriptManager>
  13.     <cc2:TabContainer ID="TabContainer1" runat="server" >
  14.     <cc2:TabPanel ID="fistTab" HeaderText="Page1" runat="server">
  15.     <ContentTemplate>
  16.         <asp:panel ID="GreetingSection" runat="server">
  17.             <asp:TextBox ID="personsName" runat="server"></asp:TextBox>
  18.             <asp:Button ID="showGreeting" runat="server" text="Greet"/><br />
  19.             <asp:Label ID="greeting" runat="server"></asp:Label>
  20.         </asp:panel>
  21.     </ContentTemplate>
  22.   </cc2:TabPanel>
  23.   <cc2:TabPanel ID="secondTab" HeaderText="Page2" runat="server">
  24.     <ContentTemplate>
  25.       page 2
  26.     </ContentTemplate>
  27.   </cc2:TabPanel>
  28. </cc2:TabContainer>
  29. </form>
  30. </body>
  31. </html>  
  32.  
Here is the code for when user clicks the button. I am successfully able to call my Web Service, retrieve the greeting and display it in the label:

Expand|Select|Wrap|Line Numbers
  1. Private Sub showGreeting_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles showGreeting.Click
  2.         Dim proxy As New localhost.Service1
  3.         greeting.Text = proxy.Greeting(personsName.Text)
  4. End Sub
  5.  
Jan 12 '09 #7
E11esar
132 100+
Hi there and thank you for trying that. I have even tried decorating my Web Methods with an additional [ScriptMethod] but that also has not helped.

Certainly a strange one.

Thank you.

M :)
Jan 12 '09 #8
Frinavale
9,735 Expert Mod 8TB
Why are you having problems directly referring to your web controls (eg TextBoxes)?
Jan 12 '09 #9
E11esar
132 100+
Again I don't know why. If I don't use the FindControl() then I receive context error messages saying the respective TextBox cannot be seen/found.

I have had this in the past and it seems to be a 50-50 situation with this happening.

Thank you.

Mark
Jan 12 '09 #10
Frinavale
9,735 Expert Mod 8TB
What is the name of the file that has the TextBoxes and other controls you're using?

What is the name of the file that has the code that calls the web service application?

What is the name of the file that has your Tab and Accordion controls?
Jan 12 '09 #11
E11esar
132 100+
@Frinavale
Default.aspx
Default.aspx.cs
Default.aspx again

There is only one web form and that is Default.aspx.

Thank you.

Mark :)
Jan 12 '09 #12
E11esar
132 100+
Also it may be worth noting that the aspx page is within a Master page.

Thank you.

M :o)
Jan 12 '09 #13
Frinavale
9,735 Expert Mod 8TB
I don't know why you have to use the FindControl() method.
Your controls should belong to the Default.aspx page and the Ajax tools should have no effect on that.

The following code:
Expand|Select|Wrap|Line Numbers
  1. TextBox p1 = (TextBox)Master.FindControl("ContentPlaceHolder1").FindControl("TabContainer1").FindControl("TabPanel2").FindControl("Accordion1").FindControl("AccordionPane1").FindControl("txtUPRN");
Makes me think that you are calling your Web Service from your MasterPage, not from your Default.aspx code.

I'm starting to think that your 404 error is not the result of calling a web service but has something to do with why you need to use the FindControl() method like you are. You should not have to do this.

I'm going to add an accordion to the code I posted above to see if that makes a difference in another attempt to reproduce the problem you're encountering.
Jan 12 '09 #14
Frinavale
9,735 Expert Mod 8TB
Ok I've added an Accordion control to the Tab control.
The Accordion control has a Textbox, Button, Label in one of it's panes. The button click event calls the Web Service to retrieve a greeting for the name of the person entered in the TextBox and displays the message in the label.

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="ScratchPad.Test" %>
  2.  
  3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
  4. <%@ Register Assembly="ScratchPad" Namespace="ScratchPad" TagPrefix="cc1" %>
  5.  
  6.  
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8.  
  9. <html xmlns="http://www.w3.org/1999/xhtml" >
  10. <head runat="server">
  11.     <title>Untitled Page</title>
  12. </head>
  13. <body>
  14.     <form id="form1" runat="server" defaultbutton="Button2">
  15.     <asp:ScriptManager ID="scManager" runat="server"></asp:ScriptManager>
  16.  
  17.     <cc2:TabContainer ID="TabContainer1" runat="server" >
  18.         <cc2:TabPanel ID="fistTab" HeaderText="Page1" runat="server">
  19.             <ContentTemplate>
  20.  
  21.                    <asp:panel ID="GreetingSection" runat="server">
  22.                       <asp:TextBox ID="personsName" runat="server"></asp:TextBox>
  23.                       <asp:Button ID="showGreeting" runat="server" text="Greet"/><br />
  24.                       <asp:Label ID="greeting" runat="server"></asp:Label>
  25.                    </asp:panel>     
  26.  
  27.  
  28.             </ContentTemplate>
  29.         </cc2:TabPanel>
  30.         <cc2:TabPanel ID="secondTab" HeaderText="Page2" runat="server">
  31.             <ContentTemplate>
  32.                     <cc2:Accordion ID="Accordion1" runat="server">
  33.                        <Panes>
  34.                            <cc2:AccordionPane ID="AccordionPane1" runat="server">
  35.                             <Header>Pane 1</Header>
  36.                             <Content>
  37.                                  <asp:panel ID="GreetingSection2" runat="server">
  38.                                           <asp:TextBox ID="personsName2" runat="server"></asp:TextBox>
  39.                                           <asp:Button ID="showGreeting2" runat="server" text="Greet"/><br />
  40.                                           <asp:Label ID="greeting2" runat="server"></asp:Label>
  41.                                  </asp:panel>   
  42.                             </Content>
  43.                            </cc2:AccordionPane>
  44.                            <cc2:AccordionPane ID="AccordionPane2" runat="server">
  45.                             <Header>Pane 2</Header>
  46.                             <Content>Content for Accordion 2</Content>
  47.                            </cc2:AccordionPane>
  48.                        </Panes>
  49.                      </cc2:Accordion>
  50.             </ContentTemplate>
  51.         </cc2:TabPanel>
  52.     </cc2:TabContainer>
  53.  
  54.    </form>
  55.  
  56. </body>
  57. </html>
  58.  
I was able to access my controls perfectly fine in the Button Click event code:

Expand|Select|Wrap|Line Numbers
  1.     Private Sub showGreeting_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles showGreeting.Click
  2.         Dim proxy As New localhost.Service1
  3.         greeting.Text = proxy.Greeting(personsName.Text)
  4.     End Sub
  5.  
  6.     Private Sub showGreeting2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles showGreeting2.Click
  7.         Dim proxy As New localhost.Service1
  8.         greeting2.Text = proxy.Greeting(personsName2.Text)
  9.     End Sub
The only thing that I noticed is that I had to submit the request twice before the Accordion control would display the message. I don't know why but it did display the message quickly before it reverted back to not showing it....?

But that's not the problem you're facing.
I don't have a clue why you can't access your controls normally.

If you find the cause to this I think you'll find the cause to your 404 error.
Jan 12 '09 #15
E11esar
132 100+
Hi again and thank you for all your help here.

I must admit it all looks so confusing in what I am doing and I must have made some sort of error when creating this project.

Within the Master.master page is no c# code save for the default code created by visual studio. In the html view of the master file is just a header and logo, so nothing much there.

All the functionality is within the Default.aspx and Default.aspx.cs files.

Maybe my VS2008 installation is corrupt..? This is a company laptop so I can only "assume" all was loaded okay.

What I'll do is to copy in your project files into this version of VS2008 and see if I encounter any problems.

Thank you.

Mark :)
Jan 12 '09 #16
Frinavale
9,735 Expert Mod 8TB
@E11esar
Sounds good.
I would recommend creating a new test project and first trying with just the tab control...then try the Accordion example (because this one wasn't working 100% to my liking).

Let me know what you find.

-Frinny
Jan 12 '09 #17
E11esar
132 100+
I tried to copy in the source code and straight away the WebService has fallen over with the following error:

Expand|Select|Wrap|Line Numbers
  1. Error 1 Could not create type 'Service'. C:\00 Development\Test Case\WebServiceTest\Service.asmx 1 
  2.  
As an aside, with my own project, if I view the project in Design view then I can only see the controls for Tab-1 and not for those in Tab-2, maybe that is pointing at a possible problem and hence the requirement for me to use the FindControl() methods..?

Thank you.

M :)
Jan 13 '09 #18
Frinavale
9,735 Expert Mod 8TB
@E11esar
Where is that error occurring? On the web service instance or in the aspx page code?

@E11esar
I never work in Design View so I had to check this out for myself. Apparently I can only see the controls for Tab1 as well. I don't think this is your problem.

What type of project did you create? A web site or a web application?

I created a MasterPage and copied my aspx code into it a Content Page that uses the MasterPage. I had no problems accessing controls in this aspx page either.
Jan 13 '09 #19

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

Similar topics

8
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
2
by: David R | last post by:
I've been following the "ASP.NET Custom Error Pages" article (http://www.aspnetresources.com/articles/CustomErrorPages.aspx), but when I implement either subscribing to base.Error or overriding...
0
by: Jon Pope | last post by:
I'm using VS2005. Within a C# project, I'm attempting to add a web reference that points to a webservice that I'm hosting on my local development machine. I'm able to add the reference, and see...
11
by: MikeT | last post by:
This may sound very elementary, but can you trap when your object is set to null within the object? I have created a class that registers an event from an object passed in the constructor. When...
0
by: JeremyPollack | last post by:
Here's the situation : I have the same ASP.NET 2.0 web application running on both Machine A and Machine B. On both machines, I have Integrated Windows Authentication turned on, and Anonymous...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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...

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.