dll problem

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

    #1

    dll problem

    My C# solution contains multiple projects. It references the business logic
    solution which also contains multiple projects.

    I have two strange (and probably related) problems.

    1) The first application is throwing an error saying the referenced project
    doesn't contain (a newly added) method. However, it does. When I debug it,
    I examine the referenced dll and it clearly does contain the method.

    2) When stepping through the debug process for another error, the debugger
    is stepping through //marked out code as if it wasn't marked out.

    Any suggestions as to what would be causing this strange behaviour.

    Thanks,
    Rick


  • Rob Teixeira [MVP]

    #2
    Re: dll problem

    When one project references another project, the referneced project gets
    built first, then the output DLL is copied (by default) to the bin directory
    of the second project.
    Sounds to me like they aren't in sink.
    Delete the bin folders and re-add the reference just to be on the safe side.
    The weird debugger stepping issues usally happen if the PDB file isn't in
    sync with the DLL or EXE.

    -Rob [MVP]

    "RickN" <rick@abasoftwa re.com> wrote in message
    news:#QWY6dLVDH A.2248@TK2MSFTN GP10.phx.gbl...[color=blue]
    > My C# solution contains multiple projects. It references the business[/color]
    logic[color=blue]
    > solution which also contains multiple projects.
    >
    > I have two strange (and probably related) problems.
    >
    > 1) The first application is throwing an error saying the referenced[/color]
    project[color=blue]
    > doesn't contain (a newly added) method. However, it does. When I debug[/color]
    it,[color=blue]
    > I examine the referenced dll and it clearly does contain the method.
    >
    > 2) When stepping through the debug process for another error, the debugger
    > is stepping through //marked out code as if it wasn't marked out.
    >
    > Any suggestions as to what would be causing this strange behaviour.
    >
    > Thanks,
    > Rick
    >
    >[/color]


    Comment

    • RickN

      #3
      Re: dll problem

      Thanks, I'll try that.
      In the process, I noticed that some of the other project references were to
      the \referencing solution\projec t\obj\debug folder while others were to the
      \referencing solution\projec t\bin\debug folder. What's the difference and
      when browsing to add a reference, where should the reference be pointing.

      Thanks,
      Rick
      "Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
      news:%23k1263LV DHA.2212@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > When one project references another project, the referneced project gets
      > built first, then the output DLL is copied (by default) to the bin[/color]
      directory[color=blue]
      > of the second project.
      > Sounds to me like they aren't in sink.
      > Delete the bin folders and re-add the reference just to be on the safe[/color]
      side.[color=blue]
      > The weird debugger stepping issues usally happen if the PDB file isn't in
      > sync with the DLL or EXE.
      >
      > -Rob [MVP]
      >
      > "RickN" <rick@abasoftwa re.com> wrote in message
      > news:#QWY6dLVDH A.2248@TK2MSFTN GP10.phx.gbl...[color=green]
      > > My C# solution contains multiple projects. It references the business[/color]
      > logic[color=green]
      > > solution which also contains multiple projects.
      > >
      > > I have two strange (and probably related) problems.
      > >
      > > 1) The first application is throwing an error saying the referenced[/color]
      > project[color=green]
      > > doesn't contain (a newly added) method. However, it does. When I debug[/color]
      > it,[color=green]
      > > I examine the referenced dll and it clearly does contain the method.
      > >
      > > 2) When stepping through the debug process for another error, the[/color][/color]
      debugger[color=blue][color=green]
      > > is stepping through //marked out code as if it wasn't marked out.
      > >
      > > Any suggestions as to what would be causing this strange behaviour.
      > >
      > > Thanks,
      > > Rick
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...