Iron Speed Technical Forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
ikrami2000

Registered:
Posts: 230
Reply with quote  #1 
Hi,

   ISD gave error while open it, then i decide to uninstall and reinstall again, after that when i try to open one of my applications which contains  some third-party like Microsoft Exchange Dll, i have to add reference again, ok this step done, but i have strange error now :

i have FileUpload :

<asp:FileUpload ID="FileUploadMultible1" runat="server" AllowMultiple="true" font-size="Large" />
<asp:Button ID="btnUpload" Text="Upload" runat="server" OnClick="UploadMultipleFiles" font-size="Large" />
<hr />
<asp:Label ID="lblSuccess" runat="server" ForeColor="SaddleBrown" font-size="Large" />
<asp:Label ID="lblSuccess1" runat="server" ForeColor="SaddleBrown" font-size="Large" />

Then i have in code behind :

protected void UploadMultipleFiles(object sender, EventArgs e)
{

foreach (HttpPostedFile postedFile in FileUploadMultible1.PostedFiles)
{
     //Code is here

}
}

now it return Error :

iron speed 'System.Web.UI.WebControls.FileUpload' does not contain a definition for 'PostedFiles'

but before i uninstall it was working fine :

1- I tried from VS 2010 because this project created in ,net 4.0  same error

any help please

Rexxrally

Registered:
Posts: 244
Reply with quote  #2 
PostedFiles is only available since .Net 4.5.
What version of the framework are you running?
ikrami2000

Registered:
Posts: 230
Reply with quote  #3 
It was working in v 4.0. What did now is open in vs 2015 then change .net version then save and rebuild. Now working but in isd it is appear as .net 4. Strange
Rexxrally

Registered:
Posts: 244
Reply with quote  #4 
The MS documentation I looked up for PostedFiles says it's only applicable in 4.5 and up.
So, maybe when you compiled it in VS2015, it bumped it up by default to 4.5? I dunno.

Glad it's working now.
ikrami2000

Registered:
Posts: 230
Reply with quote  #5 
Yes thank yoy
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement