Error while capturing photo by camera

I am developing an Windows Store App in WP8.1. I need to take photo through camera and save it and use it for showing but it throws exception everytime.
Link to my project is Link to my project
My code is--
    async private void capturePhoto_Tapped(object sender, TappedRoutedEventArgs e)
                try
                    MediaCapture mediaCapture = new MediaCapture();
                    StorageFile sf = await ApplicationData.Current.LocalFolder.CreateFileAsync("My Picture", CreationCollisionOption.GenerateUniqueName);
                    ImageEncodingProperties img = new ImageEncodingProperties();
                    await mediaCapture.CapturePhotoToStorageFileAsync(img, sf);
                catch
It throws an exception Object must be initailized and if I use InitalizeAsync it shows System.Exception and message is Text related to the Exception could not be found.If I use this code
    private static async Task<DeviceInformation> GetCameraID(Windows.Devices.Enumeration.Panel desired)
                DeviceInformation deviceID = (await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture))
                    .FirstOrDefault(x => x.EnclosureLocation != null && x.EnclosureLocation.Panel == desired);
                if (deviceID != null) return deviceID;
                else throw new Exception(string.Format("Camera of type {0} doesn't exist.", desired));
            async private void InitCamera_Click(object sender, RoutedEventArgs e)
                var cameraID = await GetCameraID(Windows.Devices.Enumeration.Panel.Back);
                var captureManager = new MediaCapture();
                await captureManager.InitializeAsync(new MediaCaptureInitializationSettings
                    StreamingCaptureMode = StreamingCaptureMode.Video,
                    PhotoCaptureSource = PhotoCaptureSource.Photo,
                    AudioDeviceId = string.Empty,
                    VideoDeviceId = cameraID.Id
                StorageFile sf = await ApplicationData.Current.LocalFolder.CreateFileAsync("My Picture", CreationCollisionOption.GenerateUniqueName);
                ImageEncodingProperties img = new ImageEncodingProperties();
                await captureManager.CapturePhotoToStorageFileAsync(img, sf);
I found the error ------ The requested attribute was not found. (Exception from HRESULT: 0xC00D36E6)--
 Can anybody help? I just need to capture photo using camera and save it for use
                                                

Hello,
This is a very generic error and the cause depends on the API call that is generating the error. What API is causing the error?
If I remember correctly photo mode and video streaming mode are mutually exclusive. Try setting the PhotoCaptureSource to VideoPreview.
I hope this helps,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

Similar Messages

  • IPhoto - Error while importing Photos from Camera!

    Hi,
    Can any one help me with my issue, I am using a canon EOS40D, and sandisk Extreem2 Compact Flash Disk. Whenever I try to download images from my camera, it shows the images available on the camera in a thumb nail format in mac, but while downloading it says "one or more of the images could not be downloaded" and it lists all the images in the exceptions list. I tried the same operations with another camera too there also i had the same issue. If I copy a set of images from some other source to my Air laptop folder and from there if i try to import those images into this iPhoto it works properly! I tried reinstalling iPhoto many times without any luck. Somewhere I read that if i format my CF disk i should be able to download pics directly from my camera, but even that didnt work. I tried creating different image libraries iPhoto too, even then i had the same issue.
    I also noticed that, many of my old pics that i had in this iPhoto, though it shows the thumbnail properly, when i click them to view in the full size it shows a warning exclamation symbol and not the pic! I am really tired of our iPhoto stuff.
    The version of iPhoto is 9.1.1.
    I have another MacBook Pro,  there i have absolutely no issues and there i am using two year old version of iPhoto.
    Can anyone help me here?
    Thanks
    Venu G

    First step is to get the photos off the camera and reformat your memory card using the camera's format command
    a best practice to is to never have any computer program (including iPhoto) delete the photos from the card but to import the photos and keep them and then after at least one successful backup cycle has completed and the reformat the card --  I use three very large (32 GB) cards in rotation so I do not reformat for typically a year or more giving me one more long term backup of my photos
    LN

  • IPhoto suddenly quit while importing photos from camera unable to import photos from camera

    iPhoto suddenly quit while importing photos from camera unable to import photos from camera that were imported before iPhoto quit. Photos are still on the camera however iPhoto only "sees" the photos that were not imported on this computer. I can connect to my other mac and see all the photos. This has happened before and I wanted to learn how to deal with this problem. Thanks Ed

    I am using a MacBook Pro OS 10.9.2, iPhoto 9.5.1 connected via usb to a Canon G12. I have had this issue before when importing photos. I can work around by using my other Mac and download the photos. I believe that there maybe a setting on the Mac that prevents duplicating photo downloads that may be preventing me from seeing these photos stored in the camera memory although I can view them on the camera.

  • Have a message of an error while uploading photo on to a site

    Wondered if anyone else has had this problem.  Tried to upload photos on to a selling site and while uploading an error flashed up in red.  Error while uploading. This was while using my Pro Mac laptop.
    Can anyone advise please?  Thank you

    What service are you trying to access?
    [topic moved to Acrobat.com forum]

  • Error while capturing Excise Invoice

    Hi experts
    While capturing the excise invoice I am getting following Error message
    " Maintain number range object for object J_1IRG23C2, year 2008, excise group 06 "
    Though I have maintained the Nummber range for excise group and object.
    please help me out
    Regards,
    jai

    hi
    thanks for the reply.
    I have already maintained Number range for Year 2008 Excise group 06 for object J_1IRG23C2 throgh Tcode -J1I9.
    Still i am getting the message.
    Regards
    Jai

  • "Operation not supported by backend" while getting photos from camera

    The situation is as follows:
    I'm trying to copy photos from camera using a file manager (thunar in this case). The attempt fails with a message "Operation not supported by backend".
    Configuration:
    uname: Linux xxx 3.9.6-1-ARCH #1 SMP PREEMPT Fri Jun 14 08:12:55 CEST 2013 x86_64 GNU/Linux
    libgphoto2 2.5.2-1
    gphoto2 2.5.2-1
    gvfs 1.16.3-1
    gvfs-gphoto2 1.16.3-1
    thunar 1.6.3-1
    mount info for this case:
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
    What is known:
    Everything was fine on 2013/06/13 - I was performing successfull copying operation on the day.
    The exactly same message started to appear on a different machine running Arch, with both unupdated Nautilus from 2.x line and latest pcmanfm. No other machines were tested.
    Only copying and moving files/directories via file manager doesn't work. I can browse the camera and delete files and directories with no problems.
    I can copy the files using cp (via gvfs mount).
    I can grab the files using gphoto2 from command line.
    Applications are able to open the files with no problems (via gvfs mount).
    Downgrading gvfs, gvfs-gphoto2, gphoto2 and libgphoto2 to versions from before 2013/06/13 doesn't fix the issue.
    Logs are clear.
    First I suspected that something is wrong with gvfs or libgphoto2, but I'm able to use them with no problems, as long as I don't try to copy a file via file manager. This could mean something is wrong with the file manager, but the issue suddenly affected three different file managers on two independent machines. And the logs remain silent. I have no idea how to deal with the issue.

    mpan wrote:Usable workaround, not requiring additional tools, was posted in the first post: use cp on mounted partition or gphoto2. The problem is not how to retrieve the files, as this is obvious, but how to copy them using file manager or how to trace source of the problem.
    Stupid me. Yes, you mentioned that. Sorry.

  • Help: Capturing photos from camera while iPod sync

    Big problem...
    I started my canon sd600 camera to start capturing 90 pictures from my wife's birthay, but I was also sincronizing my ipod and both libraries are in an external LaCie drive.
    Immediately after I turned on camera, the iPod Sync failed and also all pictures within iPhoto dissapeared... they were showing an admiration mark... I could only see the pictures just imported from the camera...
    The only way I was able to see all pictures was to quit iPhoto and choose again the library. However, when I did this... there were NO pictures just captured!!!!!
    Sadly I selected to delete the pictures in my camera after downloading them... Now I lost 90 pictures...
    I believe they have to be somewhere since they were effectively captured... just need help to find them!
    Can anyone of you friends help me?
    MacBook Pro 17   Mac OS X (10.4.9)   External HD LaCie

    Aquarius6502
    Do a search on Macupdate using 'recover photos' and you'll get a lot of suggestions for Software that will recover the photos from your card.
    Regards
    TD

  • General Error While Capturing

    I've been having this problem for a while now. I just reinstalled Final Cut Studio by removing it first and then reinstalling but the problem still persists. Whenever I try to capture something it doesn't save the clip and gives me this error: http://www.mypicx.com/thumb/1681788439053120101.png
    The clip does not get saved in Capture Scratch and I simply can't find a way to import my clips. I've tried deleting the preference files and everything.

    I used FCS Remover and i have Final Cut Pro 7. It's on a 2006 iMac 2Ghz running the latest version of snow leopard. I don't know what you mean by deck but its a 500GB WD hard drive. The camera is connected with firewire and the 1080i60 Sony Setup. I'm simply plugging the camera in, going to "Log & Capture", pressing play, and then pressing "Capture Now." The footage runs on the capture window but when I press esc to stop it, it gives me the error message. This is how I have always imported footage but I have not had this problem until upgrading to Final Cut Pro 7. I also have FCP7 on my macbook running the same OS and it works fine to import. I just need it to work on my imac.

  • URL not found error while loading photo on Linux

    Hi,
    I have a AIR 2.0 appliaction which works perfectly well on Windows but while I run it on Linux Loader object can't load any photo. I tried many path variations but I always get Error #2035: URL Not Found.
    Here's how I load a photo (with hard coded URL)
    _imageLoader.load(new URLRequest("/home/piotr/105755/damage_photos/17.jpg"));
    I'm sure that "/home/piotr/105755/damage_photos/" path is correct. I pasted it to files explorer address text input and expected directory was opend. I'm also sure that 17.jpg file exists in that directory.
    When I trace IOError message it says: Error #2035: URL Not Found. URL: app:/home/piotr/105755/damage_photos/17.jpg
    My questions are:
    What "app:" does in my URL... can it cause the problem? If yes, how can I get rid of it?
    Is there anything specific about UNIX systems and Loader that should I know about?
    How can I load file from hard drive other way than by Loader object?
    I use AIR 2.0 SKD, Flex 4.5 SKD and Ubuntu 10.04. Could anyone help me, please?

    Hi,
    Just a test, can you try to do this:
    var f:File = new File(File.userDirectory.nativePath+File.separator+"105755"+File.separator+"damage_photos" +File.separator+"17.jpg");
    _imageLoader.load(new URLRequest(f.url));

  • Sybase12.5 to Oracle 9i Migration:Error while capturing thru offline

    Hi,
    While migrating data from Sybase 12.5 to Oracle 9i we are getting the following error.
    java.sql.SQLException: ORA-01401: inserted value too large for column
    Exception :Sybase12DisconnSourceModelLoad.loadSourceModel(): oracle.mtg.migration.MigrationStopException: java.lang.NumberFormatException: For input string: "« ? » ±"
    Log shows that it is failed while loading data from sybase12_syssptvalues.dat file. Please advise what could be causing this error?
    Regards,
    Prasad Jaldu

    Prasad,
    The data in the column contains the column separator we
    are using, alter the data, load and alter the data back,
    or change the delimiter and re run the offline capture
    scripts.
    see the user guide Omwb/docs/usersguide/trouble.htm#sthref455
    or look up delimiters in the index of the user guide
    This should solve your NumberFormatException issue.
    Regards,
    Turloch

  • Error while importing photos to Lightroom 4

    Hi, Lightroom 4 has somehow stopped importing photos from the card, which used to work perfectly before. It fails with error code 832. Has anyone seen this before? Error: "The following files were not imported because they could not be read. (832) "

    ghost28 wrote:
    Has anyone seen this before?
    https://forums.adobe.com/search.jspa?q=because+they+could+not+be+read&place=%2Fplaces%2F13 83621

  • Mac OSX gives error while importing photos - "Kernel Panic"

    I upgraded my mac, reinstalled OSX and Lightroom , tried to import photos, mac gives error (called Kennel Panic) and restarts abandoning import. Applecare support suspect Lightroom reinstall issue. Thanks

    If you want PRE to be responsive you should follow Steves' recommendation to resize to 1000x750 (SD).
    At the technical level I think the maximum allowable dimensions are 4096 x 4096 - but PRE will struggle with pictures that size.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • IMovie 08 minor problem, hovering on "Done" while capturing from a camera..

    In iMovie 7.0.1, when I am capturing from a camcorder, when I hover over "Stop", it shows "Click here to begin recording" instead of "Click here to stop...". The same is with when I am capturing with the iSight camera, it shows "Click to begin recording". This is a minor problem, but might confuse some computer illiterate folk and should be fixed in the next update.

    Thanks, I'll pass that along.
    If she's upgraded her OS or QT beyond this point, which she's probably done -- in all innocence -- then to get it to work, she'd have to re-install earlier versions of both OS X and QT? Or buy a new, considerably more expensive version of FCP?
    Wow! That's a bummer.
    Hal

  • Error while capturing Windows Xp image with MDT 2012.

    Hi,
    here is the log file. please go thriugh this log and resolve my issue.
    ------  Applying bootable Windows PE image ------ LTIApply 
    LTI applying Windows PE LTIApply 
    FAILURE ( 5610 ): False: Verify File:
    \\WIN-0KLPXWQQGYL\DeploymentShare$\Boot\LiteTouchPE_x86.wim LTIApply 
    Command completed, return code = -2147467259 LiteTouch 
    Litetouch deployment failed, Return Code = -2147467259  0x80004005 LiteTouch 
    For more information, consult the task sequencer log ...\SMSTS.LOG. LiteTouch 
    Property RetVal is now = -2147467259 LiteTouch 
    CleanStartItems Complete LiteTouch 1
    About to run command: MSHTA.exe "\\WIN-0KLPXWQQGYL\DeploymentShare$\Scripts\Wizard.hta" /definition:Summary_Definition_ENU.xml LiteTouch 
    Property definition is now = Summary_Definition_ENU.xml Wizard 
    Microsoft Deployment Toolkit version: 6.0.1763.0 Wizard 
    Not Wizard = False Wizard 
    Property WizardComplete is now = N Wizard 
    Property WizardComplete is now = Y Wizard 
    Command completed, return code = 0 LiteTouch 
    Unable to copy log to the network as no SLShare value was specified. LiteTouch 
    CleanStartItems Complete LiteTouch 10/31/2011 11:53:46 AM 0 (0x0000)
    Unregistering TSCore.dll. LiteTouch 10/31/2011 11:53:46 AM 0 (0x0000)
    About to run command: wscript.exe "\\WIN-0KLPXWQQGYL\DeploymentShare$\Scripts\LTICleanup.wsf" 
    ZTI ERROR - Non-zero return code by LiteTouch, rc = -2147467259  0x80004005  

    Error 0x7b is something different. IT means that you don't have the correct storage driver installed. Are you running an IHCA? To get around this most IT professionals will create their images on *virtual machines* like Hyper-V. YOu won't need to load any
    special drivers, and even better the image you create will be pretty clean (as long as it's a generic image). Don, It's not clear from *where* you received the 7b, Was it within Windows XP? Within WinPE, or somewhere else? Be specific.
    Additionaly, the "Sysprep and Capture" Task Sequence Template is great if you *already* have the image created just the way you want. However, if you are starting from scratch, I would recommend looking into using the *full* "CLient" deployment Task Sequence
    Template. That will allow you to deploy the OS, install applications, sysprep *AND* capture all in one automated process.
    Keith Garner - keithga.wordpress.com

  • Error while tranfer photos by Adobe Send

    Hi  While Adobe Send worked without any problems until last week, now every transfer aborts with message "One or more files could not be transferred - retry"
    I thought first some of my files were corrupted and wasted a lot of time - without success...
    Now. I just tried transferring  2 other files from another computer running another OS - and got the same result--- :-(
    What to do ?
    Regards
    Charles

    We do have the same problem. Nothing works at the moment
    Best regards
    Michael

Maybe you are looking for

  • KM Subscription not always sending email notifications

    Experts, We are running EP 7.0 SP18.  We noticed recently that when certain users post forms or documents to folders that have a subscription on it, an email notification is not always sent.  We get email notifications for some users, but not others.

  • How to alternate color of rows in html cfgrid

    Hi all How can I alternate the color of rows in html cfgrid? I don't have acess to CFIDE/scripts/ajax/resources/ext/css/ext-all.css which is where according to firebug the css styles are kept Thanks

  • Do surrogate dimension keys duplicate data in the AW?

    According to AWM, level-based hierarchies must have unique dimension values across hierarchies (correct me if this is not accurate). So a dimension with two or more hierarchies that share common leaf-level dimension members will essential duplicate (

  • How to select each character of column value

    Hi All, How can i get each character separately of a column value in a select statement. LIKE i emp table if ename='Test' then i want a select statement that can give me the result like this T,e,s,t Regards, Anil R

  • Please recommend a book for basic CSS learning

    I have "CSS The Missing Manual" and even though I'd say it's a great book. It does not tell you "how to." All the books I have read gives you templates, I want to "know how it was done." Seeing a template already made up does not show you how to buil