Compile error!

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

    #1

    Compile error!

    Everytime I compile my project I'll get a compile error saying:
    C:\vss\DPC2\Ban verket\Data\DPC 2\DPCII Client\DPCAppli cation.cs(2): The type
    or namespace name 'ClientCore' does not exist in the class or namespace
    'Banverket.Data .DPCII' (are you missing an assembly reference?)

    Now you all think that, all he have to do is to put a refernce to ClientCore
    in the project right :) But the refernce is there, this is some other weird
    error.
    The only thing I can make to get my project compiling is to, close down VS
    ..NET, remove the ClientCore.dll file, start VS.NET again (which sometimes
    takes forever, because i'm working towards a SS-database), compile again,
    still not compiling, close VS.Net again and repeat the procedure once more,
    then it compiles.

    Do anybody reconize this problem ? Is there any solution for it ?


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Compile error!

    Mattias,

    Can you give a little more information about your projects and how they
    are set up and possibly the projects themselves?

    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Mattias Thuresson" <mth@home.se> wrote in message
    news:u2o1qfucDH A.3308@tk2msftn gp13.phx.gbl...[color=blue]
    > Everytime I compile my project I'll get a compile error saying:
    > C:\vss\DPC2\Ban verket\Data\DPC 2\DPCII Client\DPCAppli cation.cs(2): The[/color]
    type[color=blue]
    > or namespace name 'ClientCore' does not exist in the class or namespace
    > 'Banverket.Data .DPCII' (are you missing an assembly reference?)
    >
    > Now you all think that, all he have to do is to put a refernce to[/color]
    ClientCore[color=blue]
    > in the project right :) But the refernce is there, this is some other[/color]
    weird[color=blue]
    > error.
    > The only thing I can make to get my project compiling is to, close down VS
    > .NET, remove the ClientCore.dll file, start VS.NET again (which sometimes
    > takes forever, because i'm working towards a SS-database), compile again,
    > still not compiling, close VS.Net again and repeat the procedure once[/color]
    more,[color=blue]
    > then it compiles.
    >
    > Do anybody reconize this problem ? Is there any solution for it ?
    >
    >[/color]


    Comment

    • Morten Wennevik

      #3
      Re: Compile error!

      You also need to add
      using Banverket; and/or using Banverket.Data; and/or using
      Banverket.Data. DPCII;
      --
      Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

      Comment

      • Mattias Thuresson

        #4
        Re: Compile error!

        My solution contains 15 projects.
        It seems that VS.NET locks the file ClientCore.dll from being deleted,
        because you can't delete the file when the IDE is opened.
        The .dll file is about 124 kB.
        Is there anything more specfic you wnat to now about the projects ?


        "Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com> skrev
        i meddelandet news:#qx0BrucDH A.1744@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Mattias,
        >
        > Can you give a little more information about your projects and how[/color]
        they[color=blue]
        > are set up and possibly the projects themselves?
        >
        > --
        > - Nicholas Paldino [.NET/C# MVP]
        > - nicholas.paldin o@exisconsultin g.com
        >
        > "Mattias Thuresson" <mth@home.se> wrote in message
        > news:u2o1qfucDH A.3308@tk2msftn gp13.phx.gbl...[color=green]
        > > Everytime I compile my project I'll get a compile error saying:
        > > C:\vss\DPC2\Ban verket\Data\DPC 2\DPCII Client\DPCAppli cation.cs(2): The[/color]
        > type[color=green]
        > > or namespace name 'ClientCore' does not exist in the class or namespace
        > > 'Banverket.Data .DPCII' (are you missing an assembly reference?)
        > >
        > > Now you all think that, all he have to do is to put a refernce to[/color]
        > ClientCore[color=green]
        > > in the project right :) But the refernce is there, this is some other[/color]
        > weird[color=green]
        > > error.
        > > The only thing I can make to get my project compiling is to, close down[/color][/color]
        VS[color=blue][color=green]
        > > .NET, remove the ClientCore.dll file, start VS.NET again (which[/color][/color]
        sometimes[color=blue][color=green]
        > > takes forever, because i'm working towards a SS-database), compile[/color][/color]
        again,[color=blue][color=green]
        > > still not compiling, close VS.Net again and repeat the procedure once[/color]
        > more,[color=green]
        > > then it compiles.
        > >
        > > Do anybody reconize this problem ? Is there any solution for it ?
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Mattias Thuresson

          #5
          Re: Compile error!

          I have done that, the project should work, and is working if you do that
          procedure that i wrote about in my first post.


          "Morten Wennevik" <mortenwennevik @hotmail.com> skrev i meddelandet
          news:opruy984we ge0n9a@localhos t...[color=blue]
          > You also need to add
          > using Banverket; and/or using Banverket.Data; and/or using
          > Banverket.Data. DPCII;
          > --
          > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/[/color]


          Comment

          • Stu Smith

            #6
            Re: Compile error!

            Did you make a reference to the DLL, or to the project which builds the DLL?


            "Mattias Thuresson" <mth@home.se> wrote in message
            news:u2o1qfucDH A.3308@tk2msftn gp13.phx.gbl...[color=blue]
            > Everytime I compile my project I'll get a compile error saying:
            > C:\vss\DPC2\Ban verket\Data\DPC 2\DPCII Client\DPCAppli cation.cs(2): The[/color]
            type[color=blue]
            > or namespace name 'ClientCore' does not exist in the class or namespace
            > 'Banverket.Data .DPCII' (are you missing an assembly reference?)
            >
            > Now you all think that, all he have to do is to put a refernce to[/color]
            ClientCore[color=blue]
            > in the project right :) But the refernce is there, this is some other[/color]
            weird[color=blue]
            > error.
            > The only thing I can make to get my project compiling is to, close down VS
            > .NET, remove the ClientCore.dll file, start VS.NET again (which sometimes
            > takes forever, because i'm working towards a SS-database), compile again,
            > still not compiling, close VS.Net again and repeat the procedure once[/color]
            more,[color=blue]
            > then it compiles.
            >
            > Do anybody reconize this problem ? Is there any solution for it ?
            >
            >[/color]


            Comment

            Working...