Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian Smedley 97 posts 192 karma points
    Oct 17, 2011 @ 17:18
    Ian Smedley
    0

    Bug Loading Config File when using UNC Share

    Hi,

    I've found a bug loading the CMS Import node (first page of the wizard) when the website is on a UNC share, it seems the path to the config file gets mixed up:

    System.IO.DirectoryNotFoundException: Could not find a part of the path '\\test01\websites\testsite\content\test01\websites\testsite\content\umbraco\plugins\CMSImport\config\CMSImport.Config'.

     

    Where \\test01\websites\testsite\content\ should be the path to the website, it seems to duplicate part of the path.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Oct 17, 2011 @ 19:42
    Richard Soeteman
    0

    Hi Ian,

    Thanks for reporting. I will look into this and fix it for a later release. What's the reason you are using UNC path's all other Umbraco functionality works?

    Thanks,

    Richard

  • Ian Smedley 97 posts 192 karma points
    Oct 18, 2011 @ 09:33
    Ian Smedley
    0

    Hi Richard,

    It's no biggie at the moment, the site is still under development/testing, so I was able to set IIS to point at a local path to test the import.

    The reason for using UNC paths is load balancing, we will be running Umbraco in a load balanced environment when the site is finally live, although hopefully the share will be on an iSCSI connection when it goes live rather than a UNC path.

    So far, Umbraco seems to be working in this setup just fine.

    Ian.

     

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Oct 18, 2011 @ 11:14
    Richard Soeteman
    0

    Hi Ian,

    I will fix this issue probably next week. Strange that it only caused issues with the cmsimport config, could you send me a screenshot how you configured IIS so I can do the same when debugging this issue? My email is richard[at]soetemansoftware[dot]nl

    Thanks,

    Richard

  • Andrea Arbogast 4 posts 24 karma points
    Nov 15, 2011 @ 19:07
    Andrea Arbogast
    0

    Has there been any resolution to this? I am getting a similar issue when trying to install the licensed CMSImport on our production server.

    [DirectoryNotFoundException: Could not find a part of the path '\\uncwwebshare\webapps\umbraco452\build\uncwwebshare\webapps\umbraco452\build\umbraco\plugins\CMSImport\config\CMSImport.Config'.]
      

    The path should be \\uncwwebshare\webapps\umbraco452\build\ without the repeating part.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 15, 2011 @ 21:11
    Richard Soeteman
    0

    Sorry did not fix this issue yet, just tried to reproduce this issue on my windows 7 machine but get a web.config error. Anything I need to configure different in IIS7 for working with UNC paths?

     

  • Andrea Arbogast 4 posts 24 karma points
    Nov 16, 2011 @ 21:12
    Andrea Arbogast
    0

    Here is what my sysadmin says: We are using Windows Server 2003 R2 for our umbraco.  It is IIS 6;  and we pointed the home directory in IIS to the UNC path where the umbraco install lives on the NAS.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 17, 2011 @ 06:19
    Richard Soeteman
    0

    Hi Andrea,

    Your system administrator probably got this error message as well. UNC patrh's are not supported by default and I'm not an expert on this subject. Can you ask him how he solved this?

    Thanks,

    Richard

    Server Error in '/' Application.


    Security Exception

    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
       System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +42
       System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +172
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +291
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4955

  • Andrea Arbogast 4 posts 24 karma points
    Nov 17, 2011 @ 17:45
    Andrea Arbogast
    0

    Hi Richard,

    She says: 

    Reference IIS setup on this page:  http://our.umbraco.org/wiki/install-and-setup/installing-umbraco-for-load-balanced-environments

    As far as security, if you scroll down to Windows setup on that same web page; this is how the security is set in our environment and we are using a domain account.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 18, 2011 @ 06:30
    Richard Soeteman
    0

    Hi Andrea,

    Thanks for the info. I've managed to fix the bug now. Download this hotfix and put the dll's in your Umbraco installation. Then it must be working on UNC path's also.

    Thanks,

    Richard

  • Andrea Arbogast 4 posts 24 karma points
    Nov 18, 2011 @ 20:30
    Andrea Arbogast
    0

    Thanks very much! The hotfix fixed the problem.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Nov 19, 2011 @ 05:45
    Richard Soeteman
    0

    That's great to hear. Thanks for your help setting IIS up.

Please Sign in or register to post replies

Write your reply to:

Draft