iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I'm using .NET 3.5 with IIS 7 on Windows 7 in integrated pipeline mode.
When I upload using the following properties:
My CPU spikes to 62% utilized (its a 4 core, 2.6Ghz CPU) during the entire upload. If it finishes or I cancel the upload, the CPU comes right down. This is only a 3MB file and uploads in about 5 seconds. A normal HTML upload to the same page takes 2% CPU and uploads in about 0.2 seconds.
What is the problem?
Mike
Hello Mike,
Is it possible for you to send me a simple project that replicates your issue? Maybe some settings in your web.config is needed to replicate the issue. Also, Please let me know your environment detaisl such as OS (32 or 64 bit), Visual studio, etc.
Regards,Handy
Hello Handy,
I'm using .Net 3.5, asp.net 2.0 with IIS v5.1 on my Windows XP machine and I experience the same problem (very slow upload, more then 5 seconds for a file less thank 600 kb).
I'm only able to reproduce this issue on our web solution.
I tried to reproduce it with Intersoft samples or with a brand new website, but it is impossible to reproduce.
Then, I tried to compare my web.config with the one from your samples and I was able to exclude that the problem comes from web.config.
In Design view, here is my webtexteditor :
<ISWebTextEditor:WebTextEditor ID="textEditor" runat="server" Width="100%" Height="500px" EnableViewState="false" DefaultStyleMode="ElegantBlueStyle" OnInitializeToolBar="textEditor_InitializeToolBar" OnPreInitialize="textEditor_PreInitialize"> <FlyPostBackSettings PostControlState="False" PostHiddenFields="False" PostInputControls="True" PostViewState="False" /> <ToolBarSettings ToolBarMode="Complete" /> </ISWebTextEditor:WebTextEditor>
I initialize the fileuploader using the textEditor_PreInitialize event:
protected void textEditor_PreInitialize(object sender, EventArgs e) { // init WebTextEditor Css WebTextEditorCssFile webTextEditorCssFile = new WebTextEditorCssFile { FilePath = Constant.StylePath + "/Documentation/helpPage.css", Type = WebTextEditorCssType.DesignerStyleSheet }; WebTextEditorCssFile webTextEditorCssFile2 = new WebTextEditorCssFile { FilePath = Constant.StylePath + "/Documentation/helpPage.css", Type = WebTextEditorCssType.RuntimeStyleSheet }; textEditor.RootTextEditor.CssFiles.Add(webTextEditorCssFile); textEditor.RootTextEditor.CssFiles.Add(webTextEditorCssFile2); // Images Library WebTextEditorMediaResourceGroup mediaResourceGroup = new WebTextEditorMediaResourceGroup(); mediaResourceGroup.Name = "media1"; mediaResourceGroup.Text = "Photos"; WebTextEditorResource resource = new WebTextEditorResource(); resource.Name = "Images"; // Get or create an new folder for the help page, depending on screen name and language resource.Url = VirtualPathUtility.ToAbsolute(Path.Combine(ConfigurationManager.AppSettings["DocumentationDirectory"], "Images/")); resource.AllowUserUpload = true; //WebTextEditorResource resource2 = new WebTextEditorResource(); //resource2.Name = "Thumbnails"; //// Get or create an new folder for the help page, depending on screen name and language //resource2.Url = VirtualPathUtility.ToAbsolute(Path.Combine(ConfigurationManager.AppSettings["DocumentationDirectory"], "Images/")); mediaResourceGroup.Resources.Add(resource); //mediaResourceGroup.Resources.Add(resource2); textEditor.MediaResources.Add(mediaResourceGroup); // View Settings textEditor.ViewSettings.EnableHTMLView = true; textEditor.ViewSettings.EnableSplitView = true; textEditor.ViewSettings.EnablePreview = true; textEditor.ViewSettings.EnableDesignView = true; textEditor.FileUploaderSettings.DefaultUploadMediaResource = "Images"; // File Uploader of WebTextEditor // todo : as soon as we have an answer from Intersoft // Case URL : http://www.intersoftpt.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/ textEditor.FileUploaderSettings.Enabled = true; textEditor.FileUploaderSettings.TotalUploadSizeLimit = 1000000; // 1000kb limit textEditor.FileUploaderSettings.FileTypes = "*.jpg;*.png;*.zip"; }
This works but it is too slow to use in a production website.
Do you have any idea what is causing the fileUploader to be very slow?
Best Regards,
Nicolas
Hello Nicolas,
Can you send a simple project that replicates the issue? We need this to investigate your issue. In your last snippet codes, there are some missing resources such as CSS, images and etc. The IntializeToolBar serverside event is also not stated. It would better to have it in a project. I will can try to deploy the project to see if the issue also occurs or not in here.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname