I have Ektron CMS 7.6 which includes a plethora of built in features. One of those features is Telerik for ASP.NET Ajax Controls.
Also I have a subscription for Telerik Controls separately.
Problem is Telerik was forced to break some backwards compatiblity for the Radchart involving Telerik.Charting.dll and RadChart.Net2.dll. basically these two dlls reference the same classes and can not coexist. My tool kit uses the newer RadChart.
Has anybody else ran accross this? How did you fix it?
exact error:
The type 'Telerik.Charting.ChartSeries' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\internetcms\84aae664\ef33a0e2\assembly\dl3\79307436\
00e4973e_e51cc901\
RadChart.Net2.DLL'
and
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\internetcms\84aae664\ef33a0e2\assembly\dl3\f477bd61\e6a2b770_714ec901\
Telerik.Charting.DLL'
Removing the RadChart.Net2.dll from the project gets rid of the build error.
not 100% sure that the older dll is not needed for something else in Ektron.
Now I have added the handler to the web.config but Ektron catches it as an unknown file and redirects to my error page.
added to web.config
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler,
Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral,
PublicKeyToken=121fae78165ba3d4" validate="false" />
Any other suggestions would be helpful
also: yes I am aware that Telerik is up to 2009.1.. but I don't want to add anymore complexity to my issue until I get this working first
Final Update Fixed!
the handler above just needed to by moved to the top of the handlers section. #dsbarka from Ektron was able to suggest this one to me. Possible that something within Ektron might have been trapping the handler for the chart image.
Working now
It's been my experience with Ektron CMS400 that, if they include something out of the box, you're stuck with that version until they feel like upgrading...otherwise you're going to break more of CMS400 than the new functionality is worth.
Unfortunately, I'd say that you'd be better off re-engineering your RadChart toolkit to use the version of the Telerik tools that Ektron includes in CMS400.
Related
All the views I open on a clean install of Orchard CMS show tons of red squiggly errors under calls to methods that are somewhere defined in Orchard.
Sample methods:
Display
HasText
Style
SetMeta
T
and so forth.
The web.config in this theme (thememachine) does have this defined: add namespace="Orchard.Mvc.Html"
Let me add that it is a huge let-down to have to work entirely with dynamic, not just as an add-on, but as a solid foundation everywhere. Problems like this (no intellisense for most of what you need to do with the models and with Orchard commands in your views!) say it all. Do we thus get no / little intellisense in working in Orchard views?
In any case, the main question is: are such IDE errors (not errors on compilation) what everyone sees, and is there nothing to be done about it?
Although Orchard uses dynamic types a lot what you're seeing is not because of that. From the members you listed actually only Display is dynamic so you should get full IntelliSense and of course no errors for them.
What you experience is most possibly a general issue with Razor IntelliSense on your machine. Try researching "Razor IntelliSense not working" and you'll get some pointers. The possible problems I've encountered are the following ones:
If you're using VS 2010 check that only MVC 3 Tooling is installed. If you have MVC 2 Tooling installed, uninstall it.
If you're using a pre-release version of VS 2012 like the RC upgrade to the released version.
In an MVC app I am working on, we've recently began using ActiveReports 7 for our report-generating needs. On my local machine, everything works great. However, when we deploy to our Dev server for team-level testing, we get a LicenseException:
License for the SectionReport cannot be found.
We followed the user guide here to attempt different ways to resolve the problem.
What we have done:
Ensured that the licenses.licx file references the assemblies, and that the correct ActiveReports 7 assemblies are being built with and referenced by our project. As it stands, the licenses.licx file looks like this (sans the line-breaks):
GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports.v7, Version=7.0.6158.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf.v7, Version=7.0.6158.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
As this is a MVC web project, used the Assembly License Generator that comes with AR7 to create an [Assembly].Web.License.dll library, which we are building with the project in a /lib/ directory at the solution-level. This change had no effect on the License exception.
Used the Web Key Generator to create a key for the App.config file. This change had no effect on the License exception.
What we have not done:
Created some web form, and created an App_License.dll library that gets built with our project. The reason we did not do this is we are not using Web controls for our reports, we are not even using the GrapeCity.ActiveReports.Web assembly, and the error is not coming from any class in that library (which is logical, seeing how we're not using it.)
The only notable detail of all of this is that modifying the licenses.licx file had an early effect as we had a similar license exception on another component; ensuring that licenses.licx had the proper details ensured that that other component was no longer throwing LicenseExceptions in our app. I tentatively think from this that maybe my licenses.licx file still lacks something needed to make this app work.
The only thing remaining I can think to do is to recommend our lead license our server as a developer, but this possibility has already come up, and the direction we've been asked to take is to avoid that route if at all possible. I think it is possible because I have encountered similar posts involving people who followed the steps in the user guide above and presumably were able to solve the issue. Yet, for my team, these steps aren't working.
Question: What am I missing?
Using the Assembly License Generator as you have done should do the trick. Also, make sure that you are using the latest version of AR7 as according to this post on the ActiveReports 7 Support Forums, there was a fix done to some later version of ActiveReports 7 to correct some problem with licensing in this scenario. Specifically the steps given from the previously cited post said that following the below steps with the updated version corrected someone else's problem:
Run the program "ApplicationLicenseGenerator.exe" (as Administrator) from a location similar to "C:\Program Files\Common Files\ComponentOne\ActiveReports Developer 7\"ApplicationLicenseGenerator.exe"
Browse to the compiled ActiveReports DLL.
Press the "Generate" Button.
This generates a satellite assembly similar to yourclasslibraryname.dll.GrapeCity.Licenses.dll
Place the DLL in the bin folder of your web project and/or reference the generated DLL in your web service project.
Answer: for non-licensed users, [Assembly].GrapeCity.License.dll must be added to the web project as a reference!
Licenses.licx matters from a build perspective, though. But the license file was not missing anything.
I've created custom validators with localized strings which are loaded from my satellite resource assemblies. Now I want to override default MVC messages like "{0} must be a number".
In this article:
http://martinnormark.com/asp-net-mvc-localize-numeric-data-val-number-validation
the author says
I was browsing through the source code of ASP.NET MVC 4, and found a
changeset that looks like will fix this issue. In short, it will be
possible to define your own ResourceClassKey, and the MVC framework
will use that before using default error messages. Nice!
So I started looking how to use the new features but most of solutions seem outdated and don't work or maybe I'm doing something wrong.
How do I override client side error messages in MVC 4 using resource dll files?
Does MVC itself always decide which resource assembly to pick or I can somehow force it to pick the one I need for a specific language?
Somehow this article
http://www.codeproject.com/Articles/42168/Localizing-ASP-NET-MVC
did not appear in my earlier searches.
The key point was to add the App_GlobalResources folder manually and move resource assemblies there, and only then it picked up our custom messages.
For some reason the App_GlobalResources folder is missing when creating MVC 4 app in Visual Studio 2012 so we assumed that it is not needed any more. But when digging through the MVC source code, we found that MVC is using HttpContext.GetGlobalResourceObject which looks in App_GlobalResources. Oh, Microsoft, come on, why are you doing this... we spent three days looking for various complex solutions just because you threw out that folder from the latest MVC version.
Environment: I am working on a site in ASP.Net 2.0 running on IIS6; I am developing locally on WinXP which runs IIS 5.1, using VS2005 and VB.
Issue: I am trying to create caching for some business layer objects (actually creating a caching layer) using System.web.caching.cache. This should be available under System.Web namespace but all that I seem to have access to are: AspNetHostingPermission, AspNetHostingPermissionAttribute and AspNetHostingPermissionLevel (I have a reference to System.Web in the project and imports in the class). There are quite a few other classes (e.g., HTTPRuntime) which also do not appear (this is per the "Using SQL Cache Dependencies" tutorial http://www.asp.net/web-forms/tutorials/data-access/caching-data/using-sql-cache-dependencies-vb).
I'm at the end of my rope and can't seem to find anything out there to explain this. Has anyone been in this situation and seen this before? Any help getting this solved is MUCH appreciated!
OK, so not sure why I didn't think of this before but I checked the references tab under the project properties. In the list for System.web, the additional namespaces were unchecked; checking System.Web.Caching and recompiling fixed the issue.
Sometimes you're just toooooo close to something to realize the easy answer.
Aside from T4MVC, does anyone use MvcContrib for MVC3 projects? We've decided to incorporate a prototype project that was built in MVC2 last year. It mainly uses the paging and sorting namespaces from MvcContrib, but also some fluent html helpers.
We want to upgrade the project to MVC3 and I am wondering if we should also try to remove some of the MvcContrib dependencies. Reasons to keep? Reasons to remove?
Yes, I use it in my projects. I use the Grid and the TestHelper extensively.
I am using TestHelper also, very useful and well written!
MvcContrib's strongly typed RedirectToAction gives you compile time errors if you delete or rename an action that you redirect to. With normal redirects, you're stuck with magic strings for action names, and as such the risk of overlooking a breaking change in your application.
The ModelStateToTempData attribute is also helpful as it lets you retain modelstate while you redirect from a update POST action back to the form page instead of returning a view directly from the update action (which is a bad practice).