David, I thought I should mention as few more things I have tested. My view is only limiting the results from a single table, meaning there are no joins in the view. If I reference the table directly from the code (in place of the view), I get a layer that has all the records in the table and no error. I changed the connection string to that of a different database that doesn't have the view, and I still get the same error message. (Sorry to keep harping on the error message not being helpful.)
Error message: 'Can not find the geometry column.'
Stack trace: " at ThinkGeo.MapSuite.Core.MsSql2008FeatureSource.OpenCore()\r\n at ThinkGeo.MapSuite.Core.FeatureSource.Open()\r\n at ThinkGeo.MapSuite.Core.FeatureLayer.OpenCore()\r\n at ThinkGeo.MapSuite.Core.Layer.Open()\r\n at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)\r\n at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x5e1f8125aa040824(Object x2680f14bfcc5c488)\r\n at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)\r\n at System.Threading.ExecutionContext.runTryCode(Object userData)\r\n at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)\r\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)\r\n at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)"
Stack trace when running in single threaded mode: (Not sure, but since it's different, maybe it will help.)
" at ThinkGeo.MapSuite.Core.MsSql2008FeatureSource.OpenCore()\r\n at ThinkGeo.MapSuite.Core.FeatureSource.Open()\r\n at ThinkGeo.MapSuite.Core.FeatureLayer.OpenCore()\r\n at ThinkGeo.MapSuite.Core.Layer.Open()\r\n at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)\r\n at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x5e1f8125aa040824(Object x2680f14bfcc5c488)\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x958228b8a7148f83()\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x5c390bc16fa1868b(Object xd9272088e65bd176, EventArgs xc2fd4c0ed406cdb7)\r\n at System.Windows.Forms.Timer.OnTick(EventArgs e)\r\n at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.Run(Form mainForm)\r\n at AWARE.Program.Main() in C:\\Repository\\AWARE\\Program.cs:line 20\r\n at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n at System.Threading.ExecutionContext.runTryCode(Object userData)\r\n at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)\r\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ThreadHelper.ThreadStart()"
Thanks!
Kimberly