We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Theme issue when deploying MVC project

Thread ID:





107255 Feb 21,2013 04:17 PM UTC Feb 22,2013 06:16 AM UTC ASP.NET MVC (Classic) 1
Tags: Tools
Dan Guisinger
Asked On February 21, 2013 04:17 PM UTC

I'm having a problem when I deploy my project to an IIS server.  It runs fine on the local host development server; I'm assuming I am missing a file when I deploy that isn't making it into the deployment package.

The offending line in the Site.Master template is:

It throws an NullReferenceException.  The stack trace shows:
[NullReferenceException: Object reference not set to an instance of an object.]
   Syncfusion.Mvc.Shared.<>c__DisplayClass25.<GetResourceUrl>b__22(EmbeddedResource resource) +31
   Syncfusion.Linq.FunctionalExtensions.ForEach(IEnumerable`1 items, Action`1 action) +150
   Syncfusion.Mvc.Shared.CompositeResource.GetResourceUrl(ResourceType resourceType) +128
   Syncfusion.Mvc.Shared.MvcStaticResourceManager.GetCSSResourceUrl(List`1 resourceCollection, List`1 customCollection) +578
   Syncfusion.Mvc.Shared.MvcStaticResourceManager.GetCssCode() +131
   Syncfusion.Mvc.Tools.Menu.RenderStyleSheet() +41
   Syncfusion.Mvc.Tools.Menu.RegisterResource() +2299
   Syncfusion.Mvc.Tools.Menu.RenderControl() +636
   Syncfusion.Mvc.Tools.MenuBuilder.Render() +224
   Syncfusion.Mvc.Tools.MenuBuilder.ToString() +8
   System.Web.HttpWriter.Write(Object obj) +38
   ASP.views_shared_site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\MvcGoldmineAccountManager\Views\Shared\Site.Master:118
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +64
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5289

Can anyone tell me what file I'm missing?  All of the assemblies and their associated XML files are in the bin directory on the web server.

Meena [Syncfusion]
Replied On February 22, 2013 06:16 AM UTC

Hi Dan,


Thanks for contacting Syncfusion forums.


The reported issue may occur due to the unavailability of Theme.Base assembly reference in your application. We had introduced a new assembly called “Syncfusion.Theme.Base”  in our Volume 3, 2012 release (v10.3.0.43) for rich theming support. We need to refer that assembly in web.config and application reference as well, while hosting the application to server. Whereas while running the application from local, it will load the Theme.Base assembly from GAC directly (if it is in GAC). If it is not in GAC, we need to refer it manually from BIN directory or any other local directorty.


Please refer the below code snippet,




     <add assembly="Syncfusion.Theme.Base, Version=10.404.0.71, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89"/>            //replace the version based on your Essential studio version



Kindly try the above suggestion and let us know if it helps.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon