title: Flash Media Server 4-Netstream.Record.NoAccess error when trying to record video to server
body: <p>We're trying to record video to a Flash Media Server using a NetConnection object and a NetStream in ActionScript 3. The Flash Media Server has been set up in a Windows 2003 Server environment. </p>
  
  <p>Here's the code that we're using to send the webcam streaming video to the flash server:</p>
  
  <pre><code>ns = new NetStream(nc); //nc is an instantiated NetConnection object
  ns.client = new CustomClient();
  ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
  ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
  if(media)
  {
      ns.attachCamera(cam);
  }
  ns.attachAudio(mic);
  ns.bufferTime = .1;
  addEventListener(Event.ENTER_FRAME,vuMeter);
  ns.publish("recording" + timestamp, "record");
  </code></pre>
  
  <p>When this script is executed, it connects to the server just fine, but it generates the following error message: </p>
  
  <blockquote>
    <p>NetStream.Record.NoAccess</p>
  </blockquote>
  
  <p>This seems like it could be related to a Windows directory permissions issue since we were able to connect to the server but not write a video to it. Unfortunately, we haven't dealt much with neither Windows 2003 Server nor Flash Media Server.</p>
  
  <p>Any ideas for what might be causing this error/how to fix it?</p>