We help IT Professionals succeed at work.
Get Started

CMS ASP.net 2 Error

398 Views
Last Modified: 2013-11-07
Hi, I'm working with a content management system called SiteFinity3. It uses Nolics to connect to a SQL Server 2005 database. Everything was working great until i stopped the database for maintenance and restarted it. Now I'm getting the following error:


Server Error in '/' Application.
Data is Null. This method or property cannot be called on Null values.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlNullValueException: Data is Null. This method or property cannot be called on Null values.]
   System.Data.SqlClient.SqlBuffer.get_String() +80
   System.Data.SqlClient.SqlDataReader.GetString(Int32 i) +39
   Nolics.ORMapper.DataProviders.SqlServer2005StmtBuilder.HasProcedure(ObjectName procName) +223
   Nolics.ORMapper.DataProviders.SQLBlockBuilder.DefineCommandProcedure(OdbClassInfo dbclassInfo, SQLCrudOperations operation) +601
   Nolics.ORMapper.DataProviders.SQLBlockBuilder.DefineClass(OdbClassInfo dbClassInfo, EmitPhases phase) +197
   Nolics.ORMapper.DataProviders.SQLDataProvider.GetSchemaChanges(Boolean fRename) +524
   Nolics.ORMapper.Base.OdbDataProvider.Upgrade() +61
   Telerik.Cms.NolicsCmsProvider.Initialize(String name, NameValueCollection config) +243
   Telerik.ObjectManager`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +711
   Telerik.ObjectManager`1.InstantiateProviders(ProviderSettingsCollection configProviders, IDictionary`2 providers, Type providerType) +134
   Telerik.ObjectManager`1.Initialize() +569
   Telerik.ObjectManager`1..ctor(String provider) +12
   Telerik.ObjectManager`1..ctor() +11
   Telerik.Cms.Web.UrlHelper.FillTable() +112
   Telerik.Cms.Web.UrlHelper..cctor() +99

[TypeInitializationException: The type initializer for 'Telerik.Cms.Web.UrlHelper' threw an exception.]
   Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +310
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


I've checked the connection string in the web.config file and all the settings remain correct. Can anyone help?
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE