ASP.NET 3.5, NHibernate 2.2 및 Sprint .NET에서 종속 삽입을 실행하는 사이트가 있습니다. 우리의 테스트 서버에서 오히려 이상한 오류가 발생하고 거의 언제나 온라인에 여러 명의 사용자가 있습니다. 문제가 발생한 후에는 IISRESET을 수행 할 때까지 모든 사용자와 모든 요청에 대해이 오류가 표시됩니다. 그럼 다시 다 괜찮아. 데이터베이스 컬럼이 하나 개 이상의 속성에 매핑 할 때 나는이 오류가 발생할 본이상한 오류 : [ArgumentOutOfRangeException : 'count'가 음수가 아니어야합니다.
'count' must be non-negative.
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: 'count' must be non-negative.
Parameter name: count
Source Error:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\4bf9aa39\6dcf5fc6\App_Web_z9ifuy6t.6.cs Line: 0
Stack Trace:
[ArgumentOutOfRangeException: 'count' must be non-negative.
Parameter name: count]
System.String.CtorCharCount(Char c, Int32 count) +10082288
Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) +3612
Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name) +75
Spring.Objects.Factory.Support.DefaultListableObjectFactory.GetObjectsOfType(Type type, Boolean includePrototypes, Boolean includeFactoryObjects) +365
Spring.Context.Support.AbstractApplicationContext.GetObjectsOfType(Type type, Boolean includePrototypes, Boolean includeFactoryObjects) +136
Spring.Context.Support.AbstractApplicationContext.GetObjectsOfType(Type type) +66
[ActivationException: Activation error occured while trying to get instance of type InfoTextService, key ""]
Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) in c:\Home\Chris\Projects\CommonServiceLocator\main\Microsoft.Practices.ServiceLocation\ServiceLocatorImplBase.cs:57
Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance() in c:\Home\Chris\Projects\CommonServiceLocator\main\Microsoft.Practices.ServiceLocation\ServiceLocatorImplBase.cs:90
OurProjectsNamespace.Infrastructure.ObjectLocator.LocateService() +86
Spring.Objects.Factory.Support.DefaultListableObjectFactory에 대한 디버그를 사용하지 않으면 작동하는 아이디어입니다. 나는 이것을 시도 할 것이고 오류가 다시 발생하지 않을 것을 볼 것이다. 오류는 확실히 이상하지만 꽤 흥미 롭습니다. 바라건대 기본 원인은이 오류에만 국한 될 것입니다 ... 감사합니다 스티븐! 새로운 것이 있으면 엽서를 업데이트 해 두겠습니다. – Mattias
@Mattias : 내 관찰 결과가 정확하고 디버그를 사용 중지해도 문제가 해결되면 매우 궁금합니다. – Steven
잘하면 나는 곧 당신에게 대답을 줄 수 있습니다. 이것은 아직 살아 있지 않은 프로덕션 서버에서만 발생합니다. 그래서 다음번 업데이트 후에 보게 될 것입니다. – Mattias