I'm stumbling my way around Orchard CMS and want to override the default template for the RemoteRSS widget from Vandelay Industries. The current template is located at:
~/Modules/Vandelay.Industries/Views/Parts/RemoteRss.cshtml
So,
Is it possible to override this template
If so, where do I place my new template, so as to not 'damage' the original
I've tried saving it as:
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\RemoteRss.cshtml
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts.RemoteRss.cshtml
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts\RemoteRss.cshtml
but these either seem to not take effect or even cause an error.
Thanks in advance.
Additional Info
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\RemoteRss.cshtml
Doesnt appear to have any effect.
~/Modules/Vandelay.Industries/Views/Parts/RemoteRss.cshtml
Same code here works fine however.
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts.RemoteRss.cshtml
causes a runtime error: Compiler Error Message: CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
C:\inetpub\wwwroot\cc_orchard_live_2012\Themes\FlexoPurchased\Views\Parts\RemoteRss.cshtml
throws a runtime error: Compiler Error Message: CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
You need to reference System.Xml from your theme's project in order to be able to override that template.
You can overcome this problem by copying System.Xml.dll into your site's /bin folder. No further configuration is needed.
If you don't know where to find this file, create a new web project, add a reference to System.Xml to your project, right click on the new reference in the references list, go to the Copy Local property and change it to true. When you build the project, System.Xml.dll will be copied to your project's /bin directory. You can get it from there.
Related
I am developing a revit plugin. This plugin allows me to export my revit file as gltf but I am getting this error. When I tried other codes that did the same thing, I got the same similar error in a different nuget package. Could this have something to do with revit? How can I fix this error?
'Could not load file or assembly 'AssimpNet, Version=4.1.0.0, Culture=neutral, PublicKeyToken=0d51b391f59f42a6' or one of its dependencies.
In the first instance it is worth checking that the properties of the AssimpNet reference dll has its CopyLocal property set to true.
I have a WPF application source code when I am trying to open it in visual studio 2017 then it's giving error like
Unknown build error, 'Cannot resolve dependency to assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'
I have search for related links but it's not resolve issue. Please can you help me to resolve this issue ?
Link which I get for resolve the issue is Getting an error Cannot resolve dependency to assembly System.Web
First of all check .chproj file of directory and remove system reference. And after that you should add reference manually System and system.web which required for your application. Error clearly indicating for dependency to assembly so please check and add required assembly from reference.
I have just downloaded, today, the free startup template for MVC5 and EF.
On opening, restoring all packages then building, I get the following build error in the "Core" project:
Error CS0508 'AppSettingProvider.GetSettingDefinitions(SettingDefinitionProviderContext)': return type must be 'IEnumerable' to match overridden member 'SettingProvider.GetSettingDefinitions(SettingDefinitionProviderContext)'
Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
As the error message suggested, I added the reference to the assembly, however, that produced a whole lot of other errors.
Looking at the sample projects, they are using v2.1.3 of the APB assemblies and they compile fine.
The latest downloaded sample uses v3.0.0 of the APB assemblies.
Any help to get this up and running is appreciated. Thanks in advance.
Error CS0508 'AppSettingProvider.GetSettingDefinitions(SettingDefinitionProviderContext)': return type must be 'IEnumerable' to match overridden member 'SettingProvider.GetSettingDefinitions(SettingDefinitionProviderContext)'
AppSettingProvider already does that. Make sure you didn't modify the return type in that file.
Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
Update to VS2017 15.3.3+. For VS2015, install NETStandard.Library.NETFramework package.
I've upgraded a VB6 project to C# and I'm trying to run a winforms project and I have the Interop.InetCtlsObjects.dll file in my project and I've added a reference to it, but when I'm trying to run it I'm getting this error:
Could not load file or assembly
'Interop.InetCtlsObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
or one of its dependencies.
The system cannot find the file specified.
But I can see the file and I added a reference to it's exect location...
So what am I missing here ???
Delete the reference, save the project and add it in again. It is possible that you are somehow referencing a different version and the compiler cannot find the right DLL because of it. If that doesn't work, check your app.config and make sure the versions for this particular DLL match.
I am working on coding a GUI with C#. I'm following this simple tutorial to get started. To compile, I need to reference System.Windows.Forms.DLL System.Drawing.DLL, so I type
csc /r:System.Windows.Forms.DLL /r:System.Drawing.DLL FirstForm.cs
However, I get errors like this:
FirstForm.cs(6,14): error CS0012: The type 'System.ComponentModel.Component' is
defined in an assembly that is not referenced. You must add a reference
to assembly 'System, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Windows.Forms.dll:
(Location of symbol related to previous error)
I've already added "c:\Windows\Microsoft.NET\Framework\v4.0.30319" to my path. I don't know why it's telling me to reference it when I already have.
You need to add /r:System.DLL to your command line arguments