UploadFromStreamAsync have a different behaviour in IIS express and Azure Free WebSites

I am currently developing a MVC 5 web application. I am facing
a problem when uploading a blob (azure blob storage) in async. My async controller ActionResult use this code: 
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Index(file model)
BlobStorageService blobStorageService = new BlobStorageService();
CloudBlobContainer blobContainer = await blobStorageService.GetCloudBlobContainer();
CloudBlockBlob blob = blobContainer.GetBlockBlobReference("video.mp4");
blob.Properties.ContentType = model.Video.ContentType; await blob.UploadFromStreamAsync(model.Video.InputStream); return View();
Everything works fine asynchronously on IIS Express but not when I deploy it on Windows Azure Free Websites, UploadFromStreamAsync stop working asynchronously.
Any idea?

I am currently developing a MVC 5 web application. I am facing a problem when uploading a blob (azure blob storage) in async. My async
controller ActionResult use this code: 
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Index(file model)
BlobStorageService blobStorageService = new BlobStorageService();
CloudBlobContainer blobContainer = await blobStorageService.GetCloudBlobContainer();
CloudBlockBlob blob = blobContainer.GetBlockBlobReference("video.mp4");
blob.Properties.ContentType = model.Video.ContentType; await blob.UploadFromStreamAsync(model.Video.InputStream); return View();
Everything works fine asynchronously on IIS Express but not when I deploy it on Windows Azure Free Websites, UploadFromStreamAsync stop working asynchronously.
Any idea?

Similar Messages

  • How To: Use Visual Studio, IIS Express, and Adobe Edge Inspect to view local projects

    You CAN view a Visual Studio project with Adobe Inspect. The work around takes a little bit of time.
    This involves using IIS Express to run your Visual Studio project, which is mainly a setting in Visual Studio, a Firewall change, a few command line and IIS Express config change.  It isn't actually all that bad, but will make your life A LOT easier.
    Here are the steps. (Note these are steps I used for Visual Studio 2012 and your project is part of a solution project.  Windows 7 or Windows 8)
    1. If IIS in not turned on, turn it on.How to: Enable Internet Information Services (IIS) - this should install IIS Express as well.
    2. In Visual Studio, find the port that Visual Studio will be using for your project by Running your web project (Debug), and note/write down/save the port number that shows up in the browser when the project launches. (ex.  http://localhost:12345)
    3. Add a NetShare Reservation (process for this will be different for Windows XP)
    Go to your Command Line (CMD) in Windows and in c:\Windows\system32> type in
    netsh http add urlacl url=http://yourIPaddress:yourPortNumber user=everyone
    (ex. netsh add urlacl url=http://12.34.56.78:12345 user=everyone)
    Hit Enter key. You should be a successful add reservation message
    3. Go to your Windows Explorer (File system) and go to c:/Users/YourName/MyDocuments (or Documents)/IISExpress/config/ and open 'applicationhost.config'
    In the 'applicationhost.config' file find your site in the <sites> section.
    Example:
    <sites>
    <site name="WebSite1" id="1" serverAutoStart="true">
                    <application path="/">
                        <virtualDirectory path="/" physicalPath="C:\MyProjects\TestSite" />
                    </application>
                    <bindings>
                        <binding protocol="http" bindingInformation=":12345:localhost" />
                    </bindings>
                </site>
    </sites>
    In this section ADD 2 new lines to the <bindings> section. Note add your own IP address and your own Computer Name
    <binding protocol="http" bindingInformation="*:12345:12.34.56.78" />
    <binding protocol="http" bindingInformation=":12345:MyComputerName" />
    Save the config file.
    4. Open up your Windows Firewall and go to 'Advanced Settings'. Here you want to create an Inbound Rule.
    Right click on Inbound Rule and select New Rule
    - Rule Type select 'Custom'
    - Program leave this
    - Protocol and Ports > Protocol Type select 'TCP' then Local Port select 'Specific Port' and fill in the port number you got from VS.  Leave Remote Port alone.
    - Scope
    There are a few ways of doing this. Typically you would go the the Remote IP address and select 'These IP addresses: and select ADD > select 'Predefined set of computers' and choose Local Subnet.  IF this does not work leave Remote IP addresses > Any IP address option selected instead.
    - Action leave this
    - Profile select Domain and Private
    - Name put IISExpressWeb for the name
    Select 'Finish'
    5. Go to Visual Studio. (Note if you have multiple projects in your solution, choose your start up project. Right click on your project in Solution Explorer in VS and select 'Set as Start Up Project' )
    Right click on your start up project again and you should see an option to 'Use IISExpress'
    In the DEBUG dropdown (from the main menu bar at the top) select 'YourProjectName Properties'. Mine was the last one in the list with a wrench icon next to it.
    This should open an new tab in your project, You should see a left hand list of option and a right hand column of options.
    In the left column select 'Web' and in this tab select Use Local IIS Web server and select 'Use IIS Express' and type in your IP Address and port number (same as before) in the Project Url text box.
    Save.
    NOW, you should be able to run your project in Visual Studio and use Adobe Edge Inspect on your device and view new results in Chrome. You can develop from there.
    If you still can not see it working, please be sure your device is on the same SubNet or Wireless network as your computer.  If you are in a large network but the domains can still see each other, the Firewall Setting detailed above to allow Any IP Address in your Scope section.

    Hi CMosqueda,
    Thank you for taking time to share this information with other users.
    Thanks,
    Preran

  • I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • I cannot get Elemtnts 13.1 to download completely.  I have three different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.

    I cannot get Elements 13.1 to download completely.  I have 3 different case numbers from Adobe and nothing helps.  I always get the "download failed" and the error code u44m1i210.  I would either like to get the product downloaded or eliminate the constant attempt which just ties up my computer.

    You could try the direct download links here
    Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools
    And here is some info on that error code
    Error U44M1I210 | Install updates

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • I have an InDesign CC subscription, does that give me free website hosting through Business Catalyst, or do I need to upgrade?

    I have an InDesign CC subscription, does that give me free website hosting through Business Catalyst, or do I need to upgrade?

    Leopard (10.5) is not available as a download or as a disk purchase from Apple.  You may find copies on e-bay for sale.
    If your iMac can accept Snow Leopard (10.6), a disk can be purchased from the Apple online store.
    Ciao.

  • JComboBox - different behaviour in 1.3 and 1.4

    I have noticed that there is a difference in JCombobox behaviour in 1.3 and 1.4.
    I think it is better to give the program than explaining the issue.
    the below given program shows the difference.
    import javax.swing.* ;
    import java.awt.* ;
    import java.awt.event.* ;
    import java.util.* ;
    * Test program to show difference between
    * Combo behaviour in java1.3 and 1.4
    public class CTest extends JFrame
         private JComboBox combo1 ;
         private JComboBox combo2 ;
         public CTest()
              super() ;
         public void init()
         combo1 = new JComboBox() ;
              combo1.addItemListener( new ItemListener()
                        public void itemStateChanged( ItemEvent event )
                        if (null != combo1.getSelectedItem() && event.getStateChange() == ItemEvent.SELECTED)
                             loadCombo2(combo1.getSelectedIndex()+1) ;
         combo2 = new JComboBox() ;
              combo2.addItemListener( new ItemListener()
                        public void itemStateChanged( ItemEvent event )
                        if (null != combo2.getSelectedItem() && event.getStateChange() == ItemEvent.SELECTED)
                             System.out.println("Combo2 item selected : "+ combo2.getSelectedItem()) ;
              JPanel panel = new JPanel(new BorderLayout()) ;
              panel.add(combo1,BorderLayout.NORTH) ;
              panel.add(combo2,BorderLayout.SOUTH) ;
              getContentPane().add(panel) ;
         public void loadCombo1()
              combo1.removeAllItems() ;
              for (int iCount = 0 ; iCount <5 ; iCount++)
                   String strItem = "Item : "+iCount ;
              combo1.addItem(strItem) ;
              try
                   combo1.setSelectedIndex(0) ;
              catch(Exception e)
         private void loadCombo2(int itemCount)
              combo2.removeAllItems() ;
              for (int iCount = 0 ; iCount <itemCount ; iCount++)
                   String strItem = "Item : "+iCount ;
              combo2.addItem(strItem) ;
              try
                   combo2.setSelectedIndex(0) ;
              catch(Exception e)
         public static final void main(String args[])
              CTest app = new CTest() ;
              app.init() ;
              app.setSize(100,100) ;
              app.setVisible(true) ;
              app.loadCombo1() ;
    In jdk1.3 every time you change the selection in combo 1 there will be selection change in combo 2 also. but not in jdk1.4.
    i am not sure whether it is a bug. But surely te behaviour is different.
    any comments on this issue???

    Anil,
    I've just noticed this as well, so I had a quick look at the 1.4 sources. Quite simply, adding and removing items in a JComboBox will never fire an ItemStateChangedEvent, even if the selected item does change.
    The culprits are intervalAdded() and intervalRemoved() in JComboBox.java. Under 1.3 these methods called contentsChanged() which would then fire an ItemStateChangedEvent if necessary. Under 1.4, these methods are empty. Why? I have no idea. It seems like a bug to me, but can't see anything in the bug database about it. Hope someone from Sun can explain it.
    Regards,
    Peter

  • Is it possible to have 2 different library 1 for ipod and 1 for iphone ?

    Hi,
    I was wondering if it's possible to have 2 different library in itunes 1 for a ipod and 1 for a iphone.
    I'm using the same computer as my boyfriend to sync my iphone and his ipod and we absolutly don't listen to the same music so if i could have 1 library for my iphone and 1 for his ipod it would be best of bot world when we sync our iphone/ipod.

    Yes. Launch iTunes with the Shift key held down as needed, or use separate user accounts on the computer.
    (79774)

  • Different network name for Express and Extreme

    I extend wifi range from Extreme by using Express. It works and the wifi network name is the same (so any devices can connect to wifi with same credential).
    Can I change the wifi network name of Express (different than wifi name of Extreme)? Since express supports up to 10 devices so I will only let some devices connect to Express's range.
    Thanks.

    Unfortunately, Carolyn Samits advice will only allow you to change the Base Station or "device" name of your AirPort routers.......not change the name of the wireless network.
    I extend wifi range from Extreme by using Express
    If the AirPort Express connects to the AirPort Extreme using a wireless connection, then you cannot change the wireless network name on either device and have the network extend.
    However, if you have the AirPort Express connected to the AIrPort Extreme using a wired Ethernet connection.....and you are extending that way.....then you can change the name of the wireless network on either the AirPort Express or AirPort Extreme.
    Please post back to clarify how you have the AirPort Express configured to 'extend"......wireless or Ethernet.

  • HT204266 I have two different iTunes balances between Mac and iPhone. How do I combine them?

    I have one balance for the App Store on my iPhone (ios 4), and my mac (Snow Leopard) iTunes and AppStore, and iPhone iTunes all share a different balance. When a purchase is made on one balance, the other balance is unaffected.
    How can I combine the two balances? Any idea what caused it?

    I don't think so. The only other ID I have is a developer id, and I didn't get that until several months after I got the phone. In addition purchases I made from the App Store onthe phone would sync up with It unes on the Mac meaning it would be the same id.
    However I looked at the AppStore on my phone while it was connected to the Mac with iTunes open, and now the balance has changed to the same as the others.

  • Files have a different name on OS 9 and XP

    I copied files on my G4 with OS 9 to a USB stick with FAT32.
    I changed their name on my XP computer.
    When I used the stick on my G4 I saw that the files had the old names.
    When I looked again on my XP computer I saw that the files had the new names.
    How is this possible?

    It sounds like you have apps on your phone purchased with a different Apple ID. If you don't know the password for the Apple ID being displayed for a particular app then you need to delete it and purchase it with your Apple ID

  • Can I have 2 different styles for Footnote numbers and footnote text?

    Hello,
    I have a document with plenty of footnotes.
    I would like to assign all the footnote numbers to a character style, and all the text to a different character style.
    For example, I would like to have the footnote numbers in bold and in black, while the footnote text in light and in dark gray.
    Doing this manually isn't an option obviously.
    Is that possible?
    If not are there any scripts out there that can manage it?
    Thank you
    Federico

    It is simpe to make.
    Crete a Chyaracter Style for the footnote number.
    Set up the Paragraph Style for the Footnote text.
    Go to the Nested Styles section
    Select the Character Style
    Apply it to the first specified separator symbol (like tabulator) you have choosen when you have set up your footnotes.
    Use it. It will apply automatically. Of course, you have to choose this Footnote Paragraph Style in the Footnote Set Up Settings in the Type menu.

  • I have lost my most important iphoto library. I have several different photo libraries that use and the one that I have been using for this entire year disappeared when I switched back to look at photos from an old library, please help, thank you.

    I have also tried searching for them in finder and going through the trash, i have had no luck yet and confused on where they might be.

    With the amount of information you've provided it's impossible to offer a solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    what do you see in the iPhoto window when iPhoto opens?
    what fixes have you tried?
    where is your library normally located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library?
    how much free space on your boot drive?
    If you launch iPhoto with the Option key held down you'll get a window with all libraries that iPhoto an find.  What do you see in that window?
    If you select a library in the window it's location will be shown directly beneath that window.

  • Different behaviour in SQL*Plus and PL/SQL

    Does anyone know why the following SQL works from the command line in SQL*Plus but results in a syntax error when included within a cursor in a PL/SQL procedure?
    SELECT (SELECT 'dummy' FROM dual)
    FROM dual;
    null

    Is this what you require? This works...
    declare
    cursor cur_dummy is
    SELECT d.dum
    FROM (
    SELECT 'dummy' dum
    FROM dual
    ) d
    v_dummy varchar2(30);
    begin
    open cur_dummy;
    fetch cur_dummy into v_dummy;
    close cur_dummy;
    dbms_output.put_line(v_dummy);
    end;
    Cheers
    BigB
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Aqueel ([email protected]):
    In PL/SQL, every SELECT Statement must have a INTO clause. But still It's not working. Anyother know the answer?
    <HR></BLOCKQUOTE>
    null

  • Different behaviour with non-versioned and versioned jars

    Everything works fine if I do not use the 'version' attribute into my jnlp file.
    Now, I set this version attribute : version="1.2" for example and I rename my jar file into blabla__V1.2.jar (before it was blabla.jar). When I try to execute my application with this configuration I have the following exception :
    JNLPException[category: Erreur de t�l�chargement : Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ]
    Why this difference between a versioned and non-versioned config. ?
    mailto:[email protected]

    The version based protocol requires you to running a servlet
    that implements the version based protocol. A basic web server
    will only implement the basic protocol. The java web start
    developers pack contains a sample servlet (JNLPDownloadServlet) that can be used to extend your web
    server to implement both version based and jardiff protocals.

Maybe you are looking for

  • Creation of Business Event Type

    Hi We have already created a Business Event Type called Safety Refresher. Actually this training will happen every month. already created Safety Refresher and again trying to create its showing business event type already exists. Now i want under saf

  • Peoplesoft installation on windows 7 (64bit)

    Hi Gurus, I want to do peoplsoft server installation on windows 7 (64 bit).. First i need to FSCM (financials and supply chain management) , please provide me the part numbers for the same so that i can download from edelivery or raise a SR ... My id

  • Adding reel name to TCR results in a long render

    I spent a little time yesterday trying to tweak the Timecode Reader FXScript that comes with Final Cut 6 to add the reel name to the burn-in. It seems like this should be a simple thing, since there's apparently an FXScript function for just that pur

  • D7260 Duplex problem

    Hi, I printed a 12 page document on my D7260 and manually duplexed. The back of pages 8 & 9 were blank. the back of pg 7 had page 10. My driver says last configured on 12/08/2008. Do I need new drivers? If so, where do I find them? Using Word 2007 on

  • Set DropDown item to LookUp Result

    I have 2 tables in one imported Excel file. I have an Input Textbox (Search), a Drop Down List (Form) and a Label (Result). Search pertains to Table 1, column 1 (stem). Form refers to Table 2 column 1 (form). Table 1: Stem 1st 2nd ============== Goin