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.
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?
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.
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
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.
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?
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.
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.
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.
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.
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.
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
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.
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
Has there been any resolution to this? I am getting a similar issue when trying to install the licensed CMSImport on our production server.
The path should be \\uncwwebshare\webapps\umbraco452\build\ without the repeating part.
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?
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.
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:
Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4955
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.
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
Thanks very much! The hotfix fixed the problem.
That's great to hear. Thanks for your help setting IIS up.
is working on a reply...