Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4108020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:35:39+00:00 2026-05-20T21:35:39+00:00

Wen i run the local debug for my web service it shows up just

  • 0

Wen i run the local debug for my web service it shows up just fine. but when I put it up to my server I get a strange error like an XML Markup error.

 XML Parsing Error: mismatched tag. Expected: </p>.
Location: http://-----/2/api/api.asmx
Line Number 61, Column 17:              </ul>

Below is my asmx file. I have a Twitter and OAuth class. But I think the issue is when the website is generated it creates an error.

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Data.SqlClient;
using WebAPI;

namespace API
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://-----/2/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class api : System.Web.Services.WebService
    {
        WebAPI.OAuth oauth;
        WebAPI.Twitter twitter;

        public api()
        {
            oauth = new OAuth();        // Initialize OAuth api
                // Initialize Twittr api
                                        // <@TODO: Add facebook initialize>
                                        // <@TODO: Add linkedIn initialize>
                                        // <@TODO: Add myspace initialize>                                  

        }


        [WebMethod]
        public string post(string ID, string api, string postadata)
        {
            // Validate ID
            /*
             * Call Validate then go to below. (should have flags for what is allowed)
            */

            if (api.ToLower() == "twitter")
            {
                twitter = new Twitter(postadata);
                twitter.DoRequest();
                return twitter.GetResponse();
            }

            if (api.ToLower() == "facebook")
            {
                return "Success";
            }

            return "Invalid API type!";



        }
    }
}

Oh and my Webserver is a windows web server with all the .NET’s available currently using .NET 3.5 (2.0 Integrated). Let me know if there is anything else you need me to post. like the Web.config etc.

Thank you in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:35:40+00:00Added an answer on May 20, 2026 at 9:35 pm

    So I am pretty sure I had an issue with my Web.Config. I ended up making a new .NET service project and porting the code over. and it works fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As in wen you run any output in a frame, every time you run
I made a java application.and bundled all classes in jar file..wen i run the
Is there a way to begin a storyboard wen an ICommand is executed WITH
I want to animate an absolute-positioned image with right:xxxPX, let's say. Wen the animation
What's the easiest way in VB.NET to parse this XML? Here's an example of
i have integrated Fbconnect in LoginViewController.I want to logout the session from another view
I have to add a Search Box with a DropDown Button for searching the
If i apply tel scheme in view 2. After the call ends the app
I have a form. I applied tabs to it. I have next and previous
I generate a report in doc format using Jasper, Jasper uses JRRTFExporter to generate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.