No accessible overloaded

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeffrey Howard

    #1

    No accessible overloaded

    We got back "No accessible overloaded. "Streamwriter.w riteline is most
    specific for these arguments:

    Overrides Public Sub Writeline(ByVal buffer as Char() ).
    Overrides Public Sub Writeline(ByVal value as char)

    This occurred when we were doing a routine that had to write to a number of
    files. We've not seen this before and there have been no recent code
    changes. Ideas? Thank you.

  • Jon Skeet [C# MVP]

    #2
    Re: No accessible overloaded

    Jeffrey Howard <JeffreyHoward@ discussions.mic rosoft.com> wrote:[color=blue]
    > We got back "No accessible overloaded. "Streamwriter.w riteline is most
    > specific for these arguments:
    >
    > Overrides Public Sub Writeline(ByVal buffer as Char() ).
    > Overrides Public Sub Writeline(ByVal value as char)
    >
    > This occurred when we were doing a routine that had to write to a number of
    > files. We've not seen this before and there have been no recent code
    > changes. Ideas? Thank you.[/color]

    Could you post a short but complete program which demonstrates the
    problem?

    See http://www.pobox.com/~skeet/csharp/complete.html for details of
    what I mean by that.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • Jeffrey Howard

      #3
      Re: No accessible overloaded

      Dim objStreamWriter As StreamWriter
      objStreamWriter = File.AppendText (strOutName)
      objStreamWriter .WriteLine(strC hargeFlag)
      objStreamWriter .WriteLine(strU seShortCode)
      objStreamWriter .WriteLine(strS enderMobileTx)
      objStreamWriter .WriteLine(StrM essage)
      objStreamWriter .Close()



      "Jon Skeet [C# MVP]" wrote:
      [color=blue]
      > Jeffrey Howard <JeffreyHoward@ discussions.mic rosoft.com> wrote:[color=green]
      > > We got back "No accessible overloaded. "Streamwriter.w riteline is most
      > > specific for these arguments:
      > >
      > > Overrides Public Sub Writeline(ByVal buffer as Char() ).
      > > Overrides Public Sub Writeline(ByVal value as char)
      > >
      > > This occurred when we were doing a routine that had to write to a number of
      > > files. We've not seen this before and there have been no recent code
      > > changes. Ideas? Thank you.[/color]
      >
      > Could you post a short but complete program which demonstrates the
      > problem?
      >
      > See http://www.pobox.com/~skeet/csharp/complete.html for details of
      > what I mean by that.
      >
      > --
      > Jon Skeet - <skeet@pobox.co m>
      > http://www.pobox.com/~skeet
      > If replying to the group, please do not mail me too
      >[/color]

      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: No accessible overloaded

        Jeffrey Howard <JeffreyHoward@ discussions.mic rosoft.com> wrote:[color=blue]
        > Dim objStreamWriter As StreamWriter
        > objStreamWriter = File.AppendText (strOutName)
        > objStreamWriter .WriteLine(strC hargeFlag)
        > objStreamWriter .WriteLine(strU seShortCode)
        > objStreamWriter .WriteLine(strS enderMobileTx)
        > objStreamWriter .WriteLine(StrM essage)
        > objStreamWriter .Close()[/color]

        That's not complete. Please see
        Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.


        --
        Jon Skeet - <skeet@pobox.co m>
        Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

        If replying to the group, please do not mail me too

        Comment

        • Jon Skeet [C# MVP]

          #5
          Re: No accessible overloaded

          Jeffrey Howard <JeffreyHoward@ discussions.mic rosoft.com> wrote:[color=blue]
          > The actual program is hundreds of lines of code. The data for the variables
          > are supplied elsewhere. Has this problem been reported before? We did a KB
          > search prior to our posting and did not find this problem. Short of
          > providing a program hundreds of lines long, which will not be possible
          > because of non disclosure requirements, are their specific areas of
          > streamwriter use you'd suggest we look at.[/color]

          You don't have to provide the whole *real* program - just a small
          program which demonstrates the same issue. I suggest you either start
          from an empty project and add bits until it breaks in the same way, or
          take a copy of your real project and remove parts of that until it's
          short and complete but still breaks.

          There should be no need to have any business logic in there - only the
          bit that breaks.

          --
          Jon Skeet - <skeet@pobox.co m>
          Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

          If replying to the group, please do not mail me too

          Comment

          Working...