- Home /
Why is FtpWebRequest not allowed in webplayer builds
Hi I'd like to use the FtpWebRequest class for a project I am working on.
I get the following if I try to use it for a webplayer build:
Assets/Scripts/FtpWebServer.cs(13,48): error CS0117: System.Net.WebRequestMethods' does not contain a definition for
Ftp'
Does this mean that Unity is definitely ruling this out as an option or is this a byproduct of Unity disallowing some other functionality for the webplayer that this class is dependant on? It says that this class is supported in the mono compatibility list for webplayers so is this a bug?
Answer by Bunny83 · May 29, 2011 at 02:17 AM
Here's a similar question:
http://answers.unity3d.com/questions/51336/how-to-retrieve-list-of-files-on-ftp-server.html
As you have discovered it seems that Unity removed the FTP feature. I'm not sure why, maybe they had difficulties to implement the security policy for that class.
You should be able to use TCP sockets and connect to the FTP "manually". As i said in the other question if you run a webserver on that server it's easier to use http.
Your answer
Follow this Question
Related Questions
Debugging Unity3D player crashes? 2 Answers
Free game on cereal box requires Unity Player plug in - will it conflict with other programs? 2 Answers
IE only web player crash "Receiving unhandled exception / mono: exit called, code 1" 2 Answers
Webplayer compatibility with Editor 0 Answers
error CS0117: `System.IO.File' does not contain a definition for `GetCreationTime' 2 Answers