How can i set,when i upload image to another server.

Last post 07-17-2012, 7:56 AM by Kenneth. 8 replies.
Sort Posts: Previous Next
  •  07-03-2012, 10:55 PM 74069

    How can i set,when i upload image to another server.

    I have set virtual path "/WebsitesNew" point to " //192.168.138.21/home"
    I set the editor setting is :
      Editor1.SetSecurityImageGalleryPath("/WebsitesNew/");
    wher i can set username and password
     
     I get error is:
    [IOException: Login fail: Unknown user or passord。 ]    System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10546213    System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +2134    System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption) +48    System.IO.Directory.GetDirectories(String path) +22    CuteEditor.Impl.FileSystemStorage.GetDirectoryItems(String dirpath, Boolean getcount) +83    CuteEditor.Dialogs.InsertGalleryFrame.a() +755    System.Web.UI.Control.LoadRecursive() +66    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428 

     
  •  07-04-2012, 7:39 AM 74072 in reply to 74069

    Re: How can i set,when i upload image to another server.

    Hi oksummer,
     
    should be
     
    Editor1.SetSecurityImageGalleryPath("~/WebsitesNew");  
     
    Regards,
     
    Ken 
  •  07-05-2012, 1:06 AM 74081 in reply to 74072

    Re: How can i set,when i upload image to another server.

                string file_path_virtual = "/WebsitesNew/";
                string file_path = Server.MapPath(file_path_virtual);
                Response.Write("physics path:"+file_path+"<br>"); 
     
    get result is:
    physics path:\\192.168.139.21\home\
     
     
                string file_path_virtual = "~/WebsitesNew/";
                string file_path = Server.MapPath(file_path_virtual);
                Response.Write("physics path:"+file_path+"<br>"); 
     
    get result is:Editor1.SetSecurityImageGalleryPath("~/WebsitesNew"); 
    physics path:E:\mysite\Saber\WebsitesNew
     
    the right is  Editor1.SetSecurityImageGalleryPath("/WebsitesNew"); 
    I can not resolve the problem,How can i do make the control can work,When i set the virtual point to  physics is \\192.168.139.21\home\  virtual path name  is "WebsitesNew", My iis Set secreen capture
     
     
     
     
     
  •  07-09-2012, 12:45 PM 74100 in reply to 74081

    Re: How can i set,when i upload image to another server.

    Hi oksummer,
     
    Did you try the setting I provided? 
     
    Editor1.SetSecurityImageGalleryPath("~/WebsitesNew");    
     
    Regards,
     
    Ken 
  •  07-11-2012, 10:08 PM 74112 in reply to 74100

    Re: How can i set,when i upload image to another server.

    yeah,I have try to use Editor1.SetSecurityImageGalleryPath("~/WebsitesNew");   
    but InsertImage Gallery  get the physics dirctory  is s "E:\mysite\Saber\WebsitesNew" ,the right physics directory  is \\192.168.139.21\home\"
  •  07-12-2012, 7:13 AM 74115 in reply to 74112

    Re: How can i set,when i upload image to another server.

    Hi oksummer,
     
    I think you have another folder name "WebsitesNew " under your site, can you check it?
     
    by the way, did you get any error when open the dialog? 
     
    Regards,
     
    Ken 
  •  07-13-2012, 3:08 PM 74128 in reply to 74115

    Re: How can i set,when i upload image to another server.

    Hello,
    I  agree with Kenneth is not online. Last active: 07-13-2012, 2:23 PM Kenneth . Your post is very  much informative. Please post more............ 
  •  07-17-2012, 12:46 AM 74149 in reply to 74115

    Re: How can i set,when i upload image to another server.

    I have check it,not exist this folder under mysite.click insert image from gallery get that message.
     

    未能找到路径“E:\mysite\Saber\WebsitesNew”的一部分。

    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.IO.DirectoryNotFoundException: 未能找到路径“E:\mysite\Saber\WebsitesNew”的一部分。

    源错误:

    执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

    堆栈跟踪:

    [DirectoryNotFoundException: 未能找到路径“E:\mysite\Saber\WebsitesNew”的一部分。]    System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +239    System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +2134    System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption) +48    System.IO.Directory.GetDirectories(String path) +22    CuteEditor.Impl.FileSystemStorage.GetDirectoryItems(String dirpath, Boolean getcount) +83    CuteEditor.Dialogs.InsertGalleryFrame.a() +755    System.Web.UI.Control.LoadRecursive() +66    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428 


    版本信息: Microsoft .NET Framework 版本:2.0.50727.4963; ASP.NET 版本:2.0.50727.4955  
  •  07-17-2012, 7:56 AM 74152 in reply to 74149

    Re: How can i set,when i upload image to another server.

    Hi oksummer,
     
    Got this error because your virtual directory create not correct. So editor can not find the folder under your site.
     
    You can test it with the simple code below. If the virtual directory is under your site, then when page load, it will create the 'test.txt' under the virtual directory. If you get error with it, that means under your site has not the "WebsitesNew" virtual directory.
     
       protected override void OnLoad(EventArgs e)
        {
            System.IO.File.Create(Server.MapPath("~/WebsitesNew/test.txt")); 
        }
     
     
    Regards,
     
    ken 
View as RSS news feed in XML