Exception in SVNBridge after a couple minutes - IIS6

May 21, 2008 at 6:06 PM

I'm having an issue using SVNBridge with IIS 6.  It will run fine for a few minutes and then it will start tossing exceptions when trying to connect.  If I bump IIS it will work for a while.  I am getting Event Viewer/Application logs.  Below is a dump from one of the logs.

Thanks for you time and help.


Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date:  5/20/2008
Time:  12:52:08 PM
User:  N/A
Computer: DEV-TFS-TEST
Description:
Event code: 3005 Event message: An unhandled exception has occurred.
Event time: 5/20/2008 12:52:08
PM Event time (UTC): 5/20/2008 6:52:08
PM Event ID: a881a270526348efac70f51ec7ca47a7
Event sequence: 27 Event occurrence: 2 Event detail code: 0 
Application information:    
Application domain: /LM/W3SVC/279708510/Root-1-128557828131394636    
Trust level: Full    
Application Virtual Path: /    
Application Path: F:\SVNBridge\src\SvnBridgeViaIis\    
Machine name: DEV-TFS-TEST 
Process information:    
Process ID: 6084    
Process name: w3wp.exe    
Account name: NT AUTHORITY\NETWORK SERVICE 
Exception information:    
Exception type: SoapException    
Exception message: TF14002: The identity DEV2003\DEV-TFS-TEST$ is not a member of the Team Foundation Valid Users group. 
Request information:    
Request URL: http://dev-tfs-test:6969/ECM.Classic/main/TeamBuildTypes    
Request path: /ECM.Classic/main/TeamBuildTypes    
User host address: 10.60.10.69    
User:      Is authenticated: False    
Authentication Type:     
Thread account name: NT AUTHORITY\NETWORK SERVICE 
Thread information:     Thread ID: 6    
Thread account name: NT AUTHORITY\NETWORK SERVICE    
Is impersonating: False    
Stack trace:   
   at SvnBridge.Proxies.RemotingInvocation.Proceed() in f:\SVNBridge\src\SvnBridgeLibrary\Proxies\RemotingInvocation.cs:line 73
   at SvnBridge.Proxies.RetryOnExceptionsInterceptor`1.Invoke(IInvocation invocation) in f:\SVNBridge\src\SvnBridgeLibrary\Proxies\RetryOnExceptionsInterceptor.cs:line 25
   at SvnBridge.Proxies.RemotingInvocation.Proceed() in f:\SVNBridge\src\SvnBridgeLibrary\Proxies\RemotingInvocation.cs:line 59
   at SvnBridge.Proxies.TracingInterceptor.Invoke(IInvocation invocation) in f:\SVNBridge\src\SvnBridgeLibrary\Proxies\TracingInterceptor.cs:line 28
   at SvnBridge.Proxies.RemotingInvocation.Proceed() in f:\SVNBridge\src\SvnBridgeLibrary\Proxies\RemotingInvocation.cs:line 59
   at SvnBridge.Proxies.ProxyFactory.RemotingProxy.Invoke(IMessage msg) in f:\SVNBridge\src\SvnBridgeLibrary\Proxies\ProxyFactory.cs:line 44
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SvnBridge.Interfaces.ISourceControlProvider.ItemExists(String path, Int32 version)
   at SvnBridge.Handlers.PropFindHandler.WritePathResponse(ISourceControlProvider sourceControlProvider, String requestPath, String depth, PropData data, Stream outputStream) in f:\SVNBridge\src\SvnBridgeLibrary\Handlers\PropFindHandler.cs:line 359
   at SvnBridge.Handlers.PropFindHandler.HandleProp(ISourceControlProvider sourceControlProvider, String requestPath, String depthHeader, String labelHeader, PropData data, Stream outputStream) in f:\SVNBridge\src\SvnBridgeLibrary\Handlers\PropFindHandler.cs:line 276
   at SvnBridge.Handlers.PropFindHandler.Handle(IHttpContext context, ISourceControlProvider sourceControlProvider) in f:\SVNBridge\src\SvnBridgeLibrary\Handlers\PropFindHandler.cs:line 52
   at SvnBridge.Handlers.HttpContextHandlerBase.Handle(IHttpContext context, IPathParser pathParser, NetworkCredential credentials) in f:\SVNBridge\src\SvnBridgeLibrary\Handlers\HttpContextHandlerBase.cs:line 47
   at SvnBridge.Net.HttpContextDispatcher.Dispatch(IHttpContext connection) in f:\SVNBridge\src\SvnBridgeLibrary\Net\HttpContextDispatcher.cs:line 93
   at SvnBridge.Web.SvnBridgeHttpHandler.ProcessRequest(HttpContext context) in f:\SVNBridge\src\SvnBridgeLibrary\Web\SvnBridgeHttpHandler.cs:line 42
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

May 21, 2008 at 7:49 PM
This looks like a bug I just fixed.  Try getting the latest source code and trying again.
May 21, 2008 at 9:34 PM

Thanks for the quick response, but I'm getting the following in the Event Viewer:

 

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 5/21/2008 3:31:45 PM
Event time (UTC): 5/21/2008 9:31:45 PM
Event ID: 48f4bfa5d9fc402e851c9a21066ed47c
Event sequence: 3
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/279708510/Root-1-128558791045098537
    Trust level: Full
    Application Virtual Path: /
    Application Path: F:\SVNBridge\src\SvnBridgeViaIis\
    Machine name: DEV-TFS-TEST
 
Process information:
    Process ID: 2688
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: InvalidOperationException
    Exception message: Failed when trying to resolve dependency 'metaDataRepositoryFactory' for: SvnBridge.SourceControl.ProjectInformationRepository
 
Request information:
    Request URL: http://dev-tfs-test:4321/ECM.Classic/main/TeamBuildTypes
    Request path: /ECM.Classic/main/TeamBuildTypes
    User host address: 10.60.10.69
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:   
   at SvnBridge.Infrastructure.Container.CreateInstance(Type type, IDictionary dictionary) in f:\SVNBridge\src\SvnBridgeLibrary\Infrastructure\Container.cs:line 162
   at SvnBridge.Infrastructure.Container.<>c__DisplayClass1.<Register>b__0(Container c, IDictionary deps) in f:\SVNBridge\src\SvnBridgeLibrary\Infrastructure\Container.cs:line 43
   at SvnBridge.Infrastructure.Container.Resolve(Type type, IDictionary dependencies) in f:\SVNBridge\src\SvnBridgeLibrary\Infrastructure\Container.cs:line 95
   at SvnBridge.Infrastructure.Container.Resolve[T](IDictionary dependencies) in f:\SVNBridge\src\SvnBridgeLibrary\Infrastructure\Container.cs:line 84
   at SvnBridge.Web.SvnBridgeHttpHandler..ctor() in f:\SVNBridge\src\SvnBridgeLibrary\Web\SvnBridgeHttpHandler.cs:line 20
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

May 23, 2008 at 8:06 PM
Double check that your web.config is right.  Specifically make sure it has the CacheEnabled key in the appSettings.  I recommend you try setting it to "False" and see how well that works for you.