+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Cannot Build Project

Cannot Build Project

7 posts, 0 answered
  1. aung maw
    aung maw avatar
    14 posts
    Registered:
    07 Apr 2006
    17 Feb 2009
    Link to this post
    Hi, I have installed sitefinity on Windows server 2003 with IIS 6.0 on a development server.  The application runs file.  From the client machine I opened the website through a filesystem which is hosted on the network.  Then when I build the project I got the error below and build process fails.

    Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. G:\web.config 152 

    Any suggestion will be greatly appreciated.
    Thanks,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Feb 2009
    Link to this post
    Hi aung maw,

    It is a permissions error. Check whether The ASPNET account of the IIS6 server has full permissions over the website site folders, especially over the /bin. Make sure that you are running the application in Full trust level.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. aung maw
    aung maw avatar
    14 posts
    Registered:
    07 Apr 2006
    20 Feb 2009
    Link to this post

    Hi, thanks for your reply.  I have given full permissions on the folders on IIS server and added the code below into web.config file.  But, still getting the same message.  I'm not sure if my configuration is correct.  Pls help. Thanks

    <

    system.web>

     

    <

    securityPolicy>

     

    <

    trustLevel name="Full" policyFile="internal"/>

     

     

    </

    securityPolicy>

     

    <

    trust level="Full" originUrl=""/>

     

  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Feb 2009
    Link to this post
    Hello Aung,

    Where are the project files located? Are they stored in a remote machine, or you open them from the local host? It is highly likely to get this error, if the files are being stored on a different machine.

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. aung maw
    aung maw avatar
    14 posts
    Registered:
    07 Apr 2006
    23 Feb 2009
    Link to this post
    They are hosted on a remote machine.  If I open on the server 'Localhost' then it is fine.  But I would like to do development from my client.  Thanks, AM.
  6. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    26 Feb 2009
    Link to this post
    Hello aung maw,

    Please take a look at the following link which provides a solution to the problem you have:

    http://judismith.wordpress.com/2006/06/18/systemwebaspnethostingpermission-failed-error-net-20/

    Let us know if there is anything else that we can do for you.

    Sincerely yours,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Ibrahim Al-Omari
    Ibrahim Al-Omari avatar
    7 posts
    Registered:
    05 Sep 2012
Register for webinar
7 posts, 0 answered