Where's umbraco.presentation.LiveEditing.CanvasClientDependencyProvider in the 4.5 source?
Hi,
I had to make some minor changes in the 4.5 source to add 301 rewriting in the requestModule.cs file in the umbraco.presentation project. I built the project and copied the modified dll's from the bin folder onto my umbraco 4.5 website. I had done a similar thing in my 4.0.1 website without problems, and
assumed it would work for 4.5 as well.
When I try to access the umbraco backend I get the following error:
(I tried searching for CanvasClientDependencyProvider in the source but I could not find it. Is it safe for me to remove the offending line from the ClientDependency.config file?)
Configuration Error
Description: An error occurred during the processing
of a configuration file required to service this request. Please review
the specific error details below and modify your configuration file
appropriately.
Parser Error Message: Could not load type
'umbraco.presentation.LiveEditing.CanvasClientDependencyProvider' from
assembly 'umbraco'.
Source Error:
Line 19: <add name="LoaderControlProvider" type="ClientDependency.Core.FileRegistration.Providers.LoaderControlProvider, ClientDependency.Core"/> Line 20: <!-- Used for loading dependencies in Canvas mode --> Line 21: <add name="CanvasProvider" type="umbraco.presentation.LiveEditing.CanvasClientDependencyProvider, umbraco" /> Line 22: </providers> Line 23: </fileRegistration>
Awesome! Thanks a bunch Slace. The file has dependencies to assemblies not included in the 4.5.0 source though. I was just wondering, would it be ok for me to take the latest 4.5.1 changeset, customize the source and then drop the build on the 4.5.0 site?
Or would i have to copy the /umbraco,/umbraco_client or any config files as well?
I tried downloading the source from the version you provided, and somehow that file alone is missing. It's strange that all the releases i've download (4.5, release 73508, and 4.5.1) have the same file missing in the source.
The other sibling files (DefaultLiveEditingContext.cs, ILiveEditingContext.cs,LiveEditing.cd and utility.cs) are present though. Perhaps there's an error in how the build is being packaged.
So I manually created the file, and I would like to know where's the LazyLoadProvider that's the parent for the CanvasClientDependencyProvider?
I just had the same issue (hence how I found this thread) building trunk into a 4.5 install base. I've now picked up the latest of everything via SVN - should I be working off the 4.10 branch still as above? Or one of the others?
to be honest the main thing I want is to be able to step through with the debugger to get a handle on all the new stuff since 3.0.3
That isn't the 4.5 source code, that's the latest check ins for 4.6. If you want the 4.5 source code download the changeset associated with the release you require.
Where's umbraco.presentation.LiveEditing.CanvasClientDependencyProvider in the 4.5 source?
Hi,
I had to make some minor changes in the 4.5 source to add 301 rewriting in the requestModule.cs file in the umbraco.presentation project. I built the project and copied the modified dll's from the bin folder onto my umbraco 4.5 website. I had done a similar thing in my 4.0.1 website without problems, and assumed it would work for 4.5 as well.
When I try to access the umbraco backend I get the following error:
(I tried searching for CanvasClientDependencyProvider in the source but I could not find it. Is it safe for me to remove the offending line from the ClientDependency.config file?)
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Could not load type 'umbraco.presentation.LiveEditing.CanvasClientDependencyProvider' from assembly 'umbraco'.
Source Error:
Source File: C:\Inetpub\Mediahouse Website (Upgraded)\config\ClientDependency.config Line: 21
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
It's here: http://umbraco.codeplex.com/SourceControl/changeset/view/73508#1003058
Awesome! Thanks a bunch Slace. The file has dependencies to assemblies not included in the 4.5.0 source though. I was just wondering, would it be ok for me to take the latest 4.5.1 changeset, customize the source and then drop the build on the 4.5.0 site?
Or would i have to copy the /umbraco,/umbraco_client or any config files as well?
All files required to build 4.5 are on Codeplex, it's how we work on it.
I wouldn't recommend running a hybrid site, always run the actual version, otherwise you can expect problems.
Also, you can inherit the type rather than modifying the source, then change the config to point to your 'custom' provider.
I tried downloading the source from the version you provided, and somehow that file alone is missing. It's strange that all the releases i've download (4.5, release 73508, and 4.5.1) have the same file missing in the source.
The other sibling files (DefaultLiveEditingContext.cs, ILiveEditingContext.cs,LiveEditing.cd and utility.cs) are present though. Perhaps there's an error in how the build is being packaged.
So I manually created the file, and I would like to know where's the LazyLoadProvider that's the parent for the CanvasClientDependencyProvider?
Thanks!
I think I might know what i've been doing wrong. I was building off the solution in the trunk, whereas the 4.1.0 version contains the files.
It seems counter-intuitive to build the 4.5 version off the 4.1.0 branch rather than trunk, but is that the right way to go about it?
Correct, we haven't merged the changes into the trunk yet so it is a bit of a misnomer still
I just had the same issue (hence how I found this thread) building trunk into a 4.5 install base. I've now picked up the latest of everything via SVN - should I be working off the 4.10 branch still as above? Or one of the others?
to be honest the main thing I want is to be able to step through with the debugger to get a handle on all the new stuff since 3.0.3
The latest source is in $/branches/4.1
That isn't the 4.5 source code, that's the latest check ins for 4.6. If you want the 4.5 source code download the changeset associated with the release you require.
cool, thanks.
is working on a reply...