sandesh Posted March 5, 2007 Share Posted March 5, 2007 why do this code don't work after hosting.... it ony work when it is locally hosted.....<%dim fsset fs=Server.CreateObject("Scripting.FileSystemObject")fs.CopyFile "C:\Documents and Settings\MicroNet\Desktop\chtiwanpatra\test\counter\a.jpg",server.MapPath("a.jpg")set fs=nothing%> Link to comment Share on other sites More sharing options...
pulpfiction Posted March 5, 2007 Share Posted March 5, 2007 Try to print server.MapPath("a.jpg") and see if its giving the expected destination location on the server. also check permission level in that specific folder. for more information on server.mappath http://www.w3schools.com/asp/met_mappath.asp Link to comment Share on other sites More sharing options...
sandesh Posted March 12, 2007 Author Share Posted March 12, 2007 i haven;t found the solution yet... this script upload files very well at IIS/localserver but after hosted it display error... access level is also OK..... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now