cmargell
  •  cmargell
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2011-06-02T18:46:41Z
I'm getting an error accessing the admin pages once I've migrated the database to Azure. Doing a search it looks like there was some discussion of similar issues a few years back but nothing immediately relevant. Azure doesn't have support for sysfiles. Is there some way that I can disable that check without having to crack open the code and do so manually?

Below is the relevant portion of the stack trace:

Quote:

System.Data.SqlClient.SqlCommand.ExecuteScalar() +220
YAF.Classes.Data.MsSqlDbAccess.ExecuteScalar(IDbCommand cmd, Boolean transaction) +304
YAF.Classes.Data.LegacyDb.get_DBSize() +138
YAF.Pages.Admin.admin.BindData() +1386
YAF.Pages.Admin.admin.Page_Load(Object sender, EventArgs e) +360



If I do go in to fix it I'm just going to add error handling inside of the get_DBSize method but I thought I'd check here before I do so.

Thanks,

Casey
Sponsor
cmargell
  •  cmargell
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2011-06-02T19:35:33Z
Ok, I'm really a little more impatient than is healthy sometimes. Inside of admin.ascx.cs, line 396 (YAF-v1.9.5.5-RTW-SRC):

Quote:


try
{
this.DBSize.Text = "{0} MB".FormatWith(LegacyDb.DBSize);
}
catch (SqlException ex)
{
this.DBSize.Text = "Unable to fetch DB Size";
}

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