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 7088895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:51:24+00:00 2026-05-28T07:51:24+00:00

So this code runs in an asp.net app on Linux. The code calls one

  • 0

So this code runs in an asp.net app on Linux. The code calls one of my services. (WCF doesn’t work on mono currently, that is why I’m using asmx). This code works AS INTENDED when running from Windows (while debugging). As soon as I deploy to Linux, it stops working. I’m definitely baffled. I’ve tested the service thoroughly and the service is fine.

Here is the code producing an error: (NewVisitor is a void function taking 3 strings in)

//This does not work.
try
 {
     var client = new Service1SoapClient();
     var results = client.NewVisitor(Request.UserHostAddress, Request.UrlReferrer == null ? String.Empty : Request.UrlReferrer.ToString(), Request.UserAgent);
     Logger.Debug("Result of client: " + results);
 }

Here is the error generated: Object reference not set to an instance of an object

Here is the code that works perfectly:

 //This works (from the service)
 [WebMethod(CacheDuration = _cacheTime, Description = "Returns a List of Dates", MessageName = "GetDates")]
 public List<MySqlDateTime> GetDates()
 {
     return db.GetDates();
 }

 //Here is the code for the method above
 var client = new Service1Soap12Client();
 var dbDates = client.GetDates();

I’d love to figure out why it is saying that the object is not set.

Methods tried:

  1. new soap client.
  2. new soap client with binding and endpoint address specified
  3. Used channel factory to create and open the channel.

If more info is needed I can give more. I’m out of ideas.

  • 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-28T07:51:25+00:00Added an answer on May 28, 2026 at 7:51 am

    It looks like a bug in mono. You should file a bug with a reproducible test case so it can be fixed (and possibly find a workaround you can use).

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

Sidebar

Related Questions

We are currently enhancing an ASP.NET app that performs quotes on a number of
I've written a asp.net app and one of my postback routines simply saves user
I'm using this code in ASP.NET MVC 2 preview 1: public ActionResult List(long id,
My ASP.NET web app runs fine under IIS 7.5. But I want to make
I have some code in an asp.net app that needsto get the ipv4 address
I have branched some code on my dev machine for an ASP.NET Webforms app.
This code runs on my local RoR/Windows 7 (64-bit): sql = ActiveRecord::Base.connection() last_pk =
I have a python script the runs this code: strpath = sudo svnadmin create
This code in a GUI application compiles and runs: procedure TForm1.Button1Click(Sender: TObject); begin Self
This code produces a FileNotFoundException, but ultimately runs without issue: void ReadXml() { XmlSerializer

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.