Install: Non-negative number required. Parameter name: count

Jon Fidler's Avatar

Jon Fidler

May 29, 2013 @ 05:15 PM

Windows Server 2008, MySQL 5.6.10

This occurs when I browse the directory (from IIS) where the files were extracted to.

Server Error in '/' Application.
Non-negative number required.
Parameter name: count
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.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count

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:

[ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count]
   System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count) +0
   System.Data.SqlClient.TdsParserStateObject.ReadByteArray(Byte[] buff, Int32 offset, Int32 len) +325
   System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean encrypt, Boolean trustServerCert, Boolean& marsCapable) +489
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity) +405
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject) +180
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout) +364
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +6291977
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +352
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +831
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +49
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +6293782
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +78
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1922
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +89
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6296606
   System.Data.SqlClient.SqlConnection.Open() +300
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +221
   NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() +28
   NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) +113
   NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory sessionFactory) +125
   NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) +865
   NHibernate.Cfg.Configuration.BuildSessionFactory() +154
   HgLab.Core.Configuration.Modules.PersistenceModule.Load(ContainerBuilder moduleBuilder) in d:\Projects\hglab\src\HgLab.Core\Configuration\Modules\PersistenceModule.cs:68
   Autofac.Module.Configure(IComponentRegistry componentRegistry) +105
   Autofac.ContainerBuilder.Build(IComponentRegistry componentRegistry, Boolean excludeDefaultModules) +127
   Autofac.ContainerBuilder.Build(ContainerBuildOptions options) +61
   octalforty.Structural.ComponentModel.ServiceProviderFactory.BuildServiceProvider() in D:\Projects\octalforty-structural\src\octalforty.Structural\ComponentModel\SerivceProviderFactory.cs:48
   octalforty.Structural.Framework.Web.MvcApplication.InitializeApplication() in D:\Projects\octalforty-structural\src\octalforty.Structural\Framework\Web\MvcApplication.cs:130
   HgLab.MvcApplication.InitializeApplication() in d:\Projects\hglab\src\HgLab\Global.asax.cs:219
   octalforty.Structural.Framework.Web.MvcApplication.Application_Start() in D:\Projects\octalforty-structural\src\octalforty.Structural\Framework\Web\MvcApplication.cs:134

[HttpException (0x80004005): Non-negative number required.
Parameter name: count]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3985477
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): Non-negative number required.
Parameter name: count]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11524352
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4782309

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  1. Support Staff 1 Posted by Anton Gogolev on May 29, 2013 @ 06:13 PM

    Anton Gogolev's Avatar

    Jon,

    HgLab currently only works on SQL Server 2008 and above. Express Editions, which are free, will do as well.

  2. 2 Posted by Jon Fidler on May 29, 2013 @ 06:14 PM

    Jon Fidler's Avatar

    What are your plans for MySQL?

  3. Support Staff 3 Posted by Anton Gogolev on May 29, 2013 @ 06:48 PM

    Anton Gogolev's Avatar

    Getting HgLab off the ground is my primary objective, so I doubt that I'll be supporting other databases in the nearest future. This might change, however, if there's enough demand.

  4. 4 Posted by Jon Fidler on May 29, 2013 @ 07:55 PM

    Jon Fidler's Avatar

    I foresee a huge demand as MySQL has a very large market share. By making it MySQL friendly, it will be easier to make it work for other operating systems... as they don't use SQL Server.

    Let me know if you need someone to help with modifying the queries.

  5. Support Staff 5 Posted by Anton Gogolev on May 30, 2013 @ 05:46 AM

    Anton Gogolev's Avatar

    Jon,

    Thanks a lot for offering help.

    HgLab uses NHibernate, which does a good job of abstracting away all the specifics and quirks of an underlying DB. The biggest problem here is database schema migration procedure as the tool I'm using to manage them (Wizardby) doesn't currently support MySQL.

  6. Anton Gogolev closed this discussion on Aug 22, 2013 @ 08:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac