Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (2.x): Installation > Compilation Error

Compilation Error

  • Rune Skretting avatar

    Posted on May 17, 2006 (permalink)

    Hi,

    I am using the SiteFinity 2.6 trial version, and I am trying to create a new project using the Project Manager. When I click the button 'New Project' I get a compilation error:

    "
    Compiler Error Message: CS0234: The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)"
    Source File: c:\Program Files\telerik\Sitefinity2.6\ProjectManager\Controls\Wizard\Panes\ProjectPane.ascx.cs   Line: 7


    I am testing this on a XP SP2 machine. I have given the ASP.NET Machine Account full permissions to the local ASPNET user to the Projects folder.

    Do you know what can be wrong?

    Regards,
    Rune

    Reply

  • Vlad Vlad admin's avatar

    Posted on May 17, 2006 (permalink)

    Hi Rune,

    There are 2 possible reasons for this error:
    1. Missing assembly reference in the web.config (Sitefinity2.6\ProjectManager\Web.config):
      <system.web>
          ...
          <compilation defaultLanguage="c#" debug="true">
          ...
          <assemblies>
            <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
          </assemblies>

    2. The above System.DirectoryServices assembly is not in the GAC.

    Please check this out and let us know how it goes.

    Kind regards,
    Vlad
    the telerik team

    Reply

  • Rune Skretting avatar

    Posted on May 17, 2006 (permalink)

    Thanks Vlad for a quick response :-)

    I'm now testing Sitefinity 2.6 on another machine. The former machine was a XP machine, and now I'm testing on a Windows 2003 Server machine. These tests are done on virtual machines, and I had to make room for this server by deleting the XP, so I cannot test anymore on that one :-(

    OK. What I've done is exactly the same as last time: Installed the OS, installed Visual Studio 2005 Pro, and at last the SiteFinity_2_6.exe package.
    When I click the button 'New Project' I get the same compilation error.

    So, I then check your tips:
    As for number 1, that setting is already in the web.config
    Number 2: GAC = Global Assembly Cache (?). Sorry, but I don't know where to look and eventually how to add the assembly. I'll try googling in the meantime...

    Thanks,
    Rune

    Reply

  • Rune Skretting avatar

    Posted on May 17, 2006 (permalink)

    Eh, I forgot to mention in my last post that I'd also installed the r.a.d. controls suite, and I did not install the .NET1 version of the suite.

    I reinstalled the whole suite (.NET1 and .NET2) ,and then the Sitefinity package. Now I do not get any error messages.


    Regards,
    Rune

    Reply

  • Vassil Daskalov Vassil Daskalov admin's avatar

    Posted on May 19, 2006 (permalink)


    Hi Rune,

    The reason why you get this compilation error should not be connected with the RadControls suite. There is no need to install the controls separately from Sitefinity due to the fact that they are shipped with our CMS product.

    The Global Assembly Cache or GAC is the main depository for shared assemblies. There all the assemblies are available for use by multiple applications on the computer. Every .NET application has one GAC installation most probably located in: C:\Windows\Assembly. You can check there if the System.DirectoryServices dll is there or not. If not, please add it by dragging and dropping it there.

    Let us know if you have any problems with this.

    Best wishes,
    Vassil Daskalov
    the telerik team

    Reply

  • Rune Skretting avatar

    Posted on May 20, 2006 (permalink)

    Thank you for you help :-)

    It was the RadControls Suite that messed things up. I had the suite preinstalled before I installed Sitefinity 2.6.
    I uninstalled RadControls Suite and Sitefinity, and then reinstalled Sitefinity only.

    It works perfectly now.

    Regards,
    Rune

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (2.x): Installation > Compilation Error