Running Orchard 1.4 on Orcsweb with custom modules

Topics: Core, Installing Orchard, Troubleshooting
Developer
Apr 6, 2012 at 6:32 PM

Anyone tried to run Orchard 1.4 on Orcsweb shared hosting, using custom modules?

I've received an info about problems with that. Generally, if you deploy Orchard this way:

  • Download the deployment package from Codeplex
  • Download necessary modules NuGet packages and unzip them to /Modules directory
  • Push all the stuff to the server by FTP

you will receive an error like I pasted below (actually it comes from my Advanced Menu module, but that shouldn't matter).  This does not happen and everything works fine, when running locally from WebMatrix. It's only on Orcsweb...

Any clues?

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0246: The type or namespace name 'Szmyd' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

 
Line 1:  @using Orchard.ContentManagement;
Line 2:  @using Orchard.Widgets.Models;
Line 3:  @using Szmyd.Orchard.Modules.Menu.Models;
Line 4:  @{
Line 5:      var widget = ((IContent) Model.ContentItem).As<WidgetPart>();


Source File: c:\Domains\XXXXXX\Modules\Szmyd.Orchard.Modules.Menu\Views\Widget.Wrapper.cshtml    Line: 3 


Show Detailed Compiler Output:

C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\b7ecfcd3\00097ff3_5fe7cc01\Castle.Core.dll" /R:"C:\XXXXXXXX\App_Data\Dependencies\Orchard.Widgets.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\00ea9420\0022d08e_fff6cc01\Autofac.Integration.Web.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\e3f142f9\008c25a0_9fdbcc01\NHibernate.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\4127e70b\0022d08e_fff6cc01\Autofac.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\6d2d837c\00e4e50f_15f7cc01\Orchard.Framework.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Helpers\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Helpers.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\527df258\00111711_15f7cc01\Orchard.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\66498bb3\00b956a1_9fdbcc01\System.Data.SqlServerCe.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\894c06a0\008c25a0_9fdbcc01\Iesi.Collections.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\dfea093a\008c25a0_9fdbcc01\Antlr3.Runtime.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\69e173a6\008c25a0_9fdbcc01\FluentNHibernate.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\f859861b\00097ff3_5fe7cc01\ClaySharp.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\App_global.asax.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Abstractions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Abstractions.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\96915ca1\008c25a0_9fdbcc01\log4net.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\c096612c\00ab109b_10f7cc01\Orchard.WarmupStarter.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Razor.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\74b3f56d\003e4812_15f7cc01\Orchard.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\3e82435e\008c25a0_9fdbcc01\NHibernate.ByteCode.Castle.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\XXXXXXXX\App_Data\Dependencies\Orchard.Autoroute.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\24d0253a\008c25a0_9fdbcc01\NHibernate.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\618dd5d8\008c25a0_9fdbcc01\NuGet.Core.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\a44dfc85\00097ff3_5fe7cc01\Castle.DynamicProxy2.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll" /R:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\assembly\dl3\7118fdbe\0022d08e_fff6cc01\Autofac.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.Data\v4.0_1.0.0.0__31bf3856ad364e35\WebMatrix.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll" /out:"C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\App_Web_widget.wrapper.cshtml.9f4eee80.jxrdztwl.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\App_Web_widget.wrapper.cshtml.9f4eee80.jxrdztwl.0.cs" "C:\ASPNetTemp\2012_14\6f4a5bfc\8a001553\App_Web_widget.wrapper.cshtml.9f4eee80.jxrdztwl.1.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

c:\XXXXXXX\Modules\Szmyd.Orchard.Modules.Menu\Views\Widget.Wrapper.cshtml(3,11): error CS0246: The type or namespace name 'Szmyd' could not be found (are you missing a using directive or an assembly reference?)


Show Complete Compilation Source:



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Coordinator
Apr 6, 2012 at 7:16 PM

Do they have a custom trust level?

Developer
Apr 6, 2012 at 7:24 PM

Probably, yes, dunno. Asked the site owner to change trust level in web.config to "Medium", but it ended up with error saying the "setting is locked down at the machine level and cannot be overridden".

Weird thing is that Orchard 1.3.10 (along with the module version for 1.3) works fine...

Developer
Apr 6, 2012 at 7:46 PM
Edited Apr 6, 2012 at 7:47 PM

And in both cases (1.4 and 1.3.10) there is no module .dll file in both ~/App_Data/Dependencies and the module bin directory ~/Modules/Szmyd.Orchard.Modules.Menu/bin.

It looks like there is a regression in 1.4 somewhere...

Developer
Apr 6, 2012 at 7:59 PM

Just heard back. Orcsweb web servers are locked down at medium trust. No option to elevate it.

The question why 1.3.10 works and 1.4 doesn't is still open...

Coordinator
Apr 7, 2012 at 5:55 AM

yeah, medium trust should still work, or that's a bug. On the other hand, if I were you I would run away as fast as I could. Medium trust. Ew. These days, I would consider any hosting company that doesn't offer full trust to not be good enough.

Developer
Apr 7, 2012 at 12:26 PM

Agreed - Medium trust sucks... And they charge $69 a month! If it was me I'd not pay a cent for it... Fortunately there's a lot of other hosters offering Full trust available.

Apr 17, 2012 at 11:04 AM
Edited Apr 17, 2012 at 11:50 AM

Hi!

Thanks everyone for this discussion! It was really a problem of trust level. I had the same error. I've set trust level to Full, and it works now! Brilliant!

Thanks again!