title: Smartsheet API Resourcenotfooundexception Creating new sheet
body: <p>I am creating a new sheet in Smartsheet via the API in Visual Studio 2015 C#.<br>
  I have followed the code/API Guide from Smartsheet but i get an error at run time when the code fires.  </p>
  
  <p>The error is as follows:</p>
  
  <pre><code>Smartsheet.Api.ResourceNotFoundException was unhandled
    HResult=-2146233088
    Message=Not Found
    Source=smartsheet-csharp-sdk
    StackTrace:
         at Smartsheet.Api.Internal.AbstractResources.HandleError(HttpResponse response)
         at Smartsheet.Api.Internal.AbstractResources.CreateResource[T](String path, Type objectClass, T object)
         at Smartsheet.Api.Internal.FolderSheetResourcesImpl.CreateSheet(Int64 folderId, Sheet sheet)
         at Aviva_Order_Systems.avivaorders.button1_Click(Object sender, EventArgs e) in C:\Dropbox\AL DB\Dropbox\Aviva\Order Project\Aviva Order Systems\avivaorders.cs:line 372
         at System.Windows.Forms.Control.OnClick(EventArgs e)
         at System.Windows.Forms.Button.OnClick(EventArgs e)
         at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
         at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
         at System.Windows.Forms.Control.WndProc(Message&amp; m)
         at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)
         at System.Windows.Forms.Button.WndProc(Message&amp; m)
         at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
         at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
         at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
         at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
         at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
         at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
         at System.Windows.Forms.Application.Run(Form mainForm)
         at Aviva_Order_Systems.Program.Main() in C:\Dropbox\AL DB\Dropbox\Aviva\Order Project\Aviva Order Systems\Program.cs:line 18
         at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
         at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
         at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
         at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Threading.ThreadHelper.ThreadStart()
    InnerException: 
  
  "
  </code></pre>
  
  <p>This section of the code is what is being highlight when i attempt to debug the error.</p>
  
  <pre><code>            Sheet newSheet = ssproj.FolderResources.SheetResources.CreateSheet(
              #####,                   // long folderId
              new Sheet
                 {
                  Name = "OrderProfile", 
                  Columns = new Column[] { CCnum, CCName, Project, Supplier, SEQ }
                  } 
              );
  
  Note i have changed the #### on purpose.  It is giving the error here: 
  Sheet newSheet = ssproj.FolderResources.SheetResources.CreateSheet(
              #####,                   // long folderId
              new Sheet
                 {
                  Name = "OrderProfile", 
                  Columns = new Column[] { CCnum, CCName, Project, Supplier, SEQ }
                  } 
              );
  </code></pre>
  
  <p>Any ideas on what is causing this?  I have tried searching </p>