Server Error in '/' Application.

Převod datového typu varchar s hodnotou NULL na datový typ int se nezdařil.

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.SqlClient.SqlException: Převod datového typu varchar s hodnotou NULL na datový typ int se nezdařil.

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:


[SqlException (0x80131904): Převod datového typu varchar s hodnotou NULL na datový typ int se nezdařil.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +109
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +57
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2443
   System.Data.SqlClient.SqlDataReader.HasMoreRows() +157
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +196
   System.Data.SqlClient.SqlDataReader.Read() +9
   SubSonic.AbstractList`2.Load(IDataReader dataReader) +22
   SubSonic.AbstractList`2.LoadAndCloseReader(IDataReader dataReader) +48
   DAL.DBManager.GetTagsByCyclopathID(Int32 cyclopathID) in c:\Projects-soukrome\prazskecyklostezky\solution\DAL\DbManager\DBManager.cs:111
   BLL.TagBM.GetTagsByCyclopathID(Int32 cyclopathID) in c:\Projects-soukrome\prazskecyklostezky\solution\BLL\TagBM.cs:24
   Cyclopath.Page_Init(Object sender, EventArgs e) in c:\Projects-soukrome\prazskecyklostezky\solution\webapp\Cyklostezka.aspx.cs:64
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnInit(EventArgs e) +91
   System.Web.UI.Page.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +385
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1186


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975