# Security Sandbox Violation, Error #2028

**URL:** https://community.wowza.com/t/security-sandbox-violation-error-2028/39267
**Category:** Wowza Streaming Engine
**Created:** [June 9, 2013, 4:18pm UTC](https://community.wowza.com/t/security-sandbox-violation-error-2028/39267 "2013-06-09T16:18:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Olaf\_Larsson](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@Olaf\_Larsson](https://community.wowza.com/u/Olaf_Larsson)
#### Post date: [June 9, 2013, 4:18pm UTC](https://community.wowza.com/t/security-sandbox-violation-error-2028/39267/1 "2013-06-09T16:18:45Z")

</div>

I have following very simple action script 3 code

```auto
import flash.net.NetConnection; 
var nc:NetConnection = new NetConnection(); 
nc.connect("rtmp://localhost/SOtest2"); 

```

…when debugging flash I get the following very annoying error:

> \*\*\* Security Sandbox Violation \*\*\*
> 
> Connection to rtmp://localhost/SOtest2 halted - not permitted from file:///C|/wamp/www/SOtest2/SOtest2.swf
> 
> – Untrusted local SWFs may not contact the Internet.
> 
> SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/wamp/www/SOtest2/SOtest2.swf cannot access Internet URL rtmp://localhost/SOtest2.
> 
> at [flash.net](http://flash.net)::NetConnection/connect()
> 
> at SOtest2\_fla::MainTimeline/frame1()[SOtest2\_fla.MainTimeline::frame1:3]
> 
> Cannot display source code at this location.
> 
> Other projects doesn´t give me the same error when debugging. I think it possibly started to appear when i upgraded to a new version of flash (11.7.700).
> 
> If I publish the project it seems to work normally and I see that I’m connecting to the Wowza server in the server log.
> 
> Does anyone of you have an idea what the problem is? How could it be that some files are affected and some are not?

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [June 10, 2013, 11:04pm UTC](https://community.wowza.com/t/security-sandbox-violation-error-2028/39267/2 "2013-06-10T23:04:43Z")

</div>

[duplicate](http://community.wowza.com/t/-/39264)

---

<div class="post-metadata">

### Author: ![Olaf\_Larsson](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@Olaf\_Larsson](https://community.wowza.com/u/Olaf_Larsson)
#### Post date: [June 16, 2013, 11:53pm UTC](https://community.wowza.com/t/security-sandbox-violation-error-2028/39267/3 "2013-06-16T23:53:24Z")

</div>

Sorry for the duplicate post. The problem was that I had set the publish settings parameter “Local playback security” to “Access localfiles only” when changed to “Access network only” the problem disappeared.
