I have a webpage for uploading video to my site and it works on my old website hosted by discountasp.net (iis 6) but it does not work on my new site hosted by discountasp.net (iis 7). When trying to create a folder on the server and upload video, the page just times out and does not give an error message and does not create a folder or upload anything. I am pretty sure this has to do with me needing to setup an anonymous user that has the permission to read/write to the server. If I login to the discountasp.net-->control panel-->User/Quota Manager -what should I type in for the new user's name? Should I just type "Anonymous" and then give it a couple hundred mb of space? And then go to the permission manager or something? Right now when I go to discountasp.net-->control panel-->permission manager it does not show any users. In my old discountasp.net website it shows an anonymous user that has read/write permission. Thanks for anything.
Your application executes as the Anonymous ASP.NET User, you don't need to create a user. It should have permission to write to any folders in your account.
the first thing my code does is check to see if a folder exists and if not it creates the folder. It is not creating the folder. If Directory.Exists(FolderToSave) = False Then Directory.CreateDirectory(FolderToSave) End If
I reduced my code to doing nothing but trying to create a folder and it does not work. Firefox says "Oops this link appears to be broken" -so when I click the button to create the folder, it just times out. This same code works perfect on my local machine and on my other (old) website hosted by discountasp.net. Dim FolderToSave As String = Server.MapPath("~/uploads/") & intNumber & "/video/" Dim strpath As String If Directory.Exists(FolderToSave) = False Then Directory.CreateDirectory(FolderToSave) End If
...From what I've been able to tell so far this fails on IIS7 if the trust level isn't full. I'm not sure but the default may not be full but again unless I'm mistaken we can specify full trust in our IIS7 web.config's
Ok, so I went to a version of my web.config from a week ago and somehow that allowed the folder creation and it allowed uploading a tiny .gif file, so that is better. However, if I try to upload a 50mb video file the page times out every time. I have fast upload on my end and this has worked for years when uploading to my old website on discountasp.net. I am also wondering if the uploading or playing of video will slow down this website for other people using it? Thanks, I do understand you guys have lots of customers to support... and I know your the best out there by a long shot..
...50mb is nothing really. If you're having trouble search on-line how to run a trace route from your end. If you're not using http://www.opendns.com/ do it now. I upload 500MB videos to DASP servers from my Comcast account and couldn't do it without the services of http://www.opendns.com/. (Free) One other note, always try with "Passive mode" turned off/Unchecked.
Unfortunately, that is not the issue. I can upload and download just fine using ftp software. The problem is that the webpage cannot upload the 50mb file. It times out. I will have to drop discountasp.net and move to the azure platform if this is not resolved soon.