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

  • SEARCH
  • Home
  • 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 1060269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:18:05+00:00 2026-05-16T18:18:05+00:00

I have the following web service method (.ASMX file): [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat =

  • 0

I have the following web service method (.ASMX file):

[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public GetTruckBasicReturnedObject GetPollBasic(ulong truckId)
{
    return new GetTruckBasicReturnedObject();
}

Any time I uncomment this method, when I try to get to the service test page, I get my site’s default error page.
Just below that I have another service method, with the same attributes that works just fine.
I triple checked to see all my classes are declared, and anyhow I don’t get any compilation error.
Class GetTruckBasicReturnedObject has an empty constructor.
We recently migrated from .NET 3.5 to .NET 4.0 but as I said, there is another very similar web method, on the same class, that works fine.

The other method that works:

[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public SignInReturnedObject SignIn(string userName, string password)
{
  cLogin login = new cLogin(LocalizationSettings.CurrentDataCenter);
  UInt64 uiUserId;

  //Session is created in the below method!
  RegistrationCodes rc = login.LoginUser(userName, password, (ulong)Channels.TolunaChannel, out uiUserId);
  return new SignInReturnedObject(convertFromRegistrationCodesToRegistrationErrorTypes(rc));
}

The Class:

using System;
using dPolls.Objects;


namespace API
{

public class GetTruckBasicReturnedObject
{

    public TruckBasic truckBasic { get; set; }        //public for debugging reasons

    public ErrorTypes Error { get; set;}            //public for debugging reasons


    public GetTruckBasicReturnedObject()
    {
    }


    public GetTruckBasicReturnedObject(User user, ulong pollId)
    {
        Error = ErrorTypes.None;
        try
        {
            truckBasic = new TruckBasic(user, pollId);
        }
        catch(Exception exception)
        {
            Log.WriteError("Unable to retrieve truck. Exception-{0}",exception);
            Error = ErrorTypes.General;
        }
    }
}

}

What could it be? (Is there any information missing in my question? If so, what is it?)
Thanks a lot.

  • 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-16T18:18:06+00:00Added an answer on May 16, 2026 at 6:18 pm

    It seems the problem was the name of the page I requested the web service from. it was “default”, which caused ISAPI to kick into very unwanted action. Renaming the page solved the problem.

    Thanks again to all replayers.

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

Sidebar

Related Questions

I have a basic web service that returns the following object as JSON: public
I have the following web service: [ScriptService] public class Handler : WebService { [WebMethod]
I have the following JSON coming back from a web service which I am
Suppose I have an asmx web service at the following address: http://localhost/BudgetWeb/Service.asmx This web
I have an ASP.NET web service (.asmx). My service is defined like the following:
I have an web service named AEWService.asmx with the following code: using System; using
I have a web service (ASMX) and in it, a web method that does
I have the following .NET web service with the following signature (IServices.cs): [OperationContract] [WebInvoke(Method
I have following webservice: [webmethod] public string MakeReservation(?? PassengersInfo)//what data type use for PassengerInfo
Background: I'm invoking a web service method which returns a JSON string. This string

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.