Lumia Imaging SDK and PubCenter on WP8.1 RT : System.TypeLoadException

Hello, i'm developping a WP8.1 RT app using the Lumia imaging SDK for 8.1 and it's working like a charm. Recently, I had to put some PubCenter ads on my layout. When navigating to a page that is making calls to Imaging library, I catch an exception : "Requested
Windows Runtime type 'Lumia.Imaging.RandomAccessStramingImageSource' is not registered".
I tried reinstalling the Imaging SDK through nuget. The only way to make my code work again is to delete the reference 'Microsoft Advertising SDK for Windows Phone 8.1 (XAML)'.
I also tried to add this reference on a Lumia Imaging Sample from the official website, same problem but on different methods from the Lumia.Imaging namespace.
Do you guys already experienced this kind of errors ? Is PubCenter known to work with the Lumia Imaging SDK ? If not, is there any other good ad provider on WP8.1 RT (since Admob is no longer supported...)

This looks like is a Visual Studio 2013 update 4 issue, or if you are using Community Edition which includes this update. 
The "Requested Windows Runtime type <class> is not registered" exception is caused by that fact that the appxmanifest is file is not correctly generated in VS2013 update 4. There is a bug in Microsoft.Build.AppxPackage.dll, creating an incomplete
list of classes to be registered. This is supposed to be fixed in VS2013 update 5.
Workaround:
Replace the AppxPackage files with VS2013 update 3 version. 
- Microsoft.AppxPackage.Targets
- Microsoft.Build.AppxPackage.dll
Replace the two files located at VS2013 installation path (e.g. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\ ) with the update 3 version. 
The update 3 files are available here (patch.zip):
https://onedrive.live.com/redir?resid=99B45FF02D12B84D!60194&authkey=!ACQoovyOLV-_7LQ&ithint=file%2czip 
Hope this helps!

Similar Messages

  • Lumia Imaging SDK Issues

    https://msdn.microsoft.com/en-us/library/dn859600.aspx
    i am following the instruction in the link above, however, when it runs to
    // A cartoon effect is initialized with the selected image stream as source. 
            var imageSource =
    new RandomAccessStreamImageSource(fileStream); 
    in the method private
    async Task<bool> ApplyFilterAsync(StorageFile file)
    it always had an exception says Requested Windows Runtime type 'Lumia.Imaging.RandomAccessStreamImageSource' is not registered
    i have a Lumia Imaging SDK of version 2.0, which i download using the Nuget Manager in vs
    and VS 2013 Express update 4
    Could anyone please resolve my problem?
    Appreciated!

    Hello,
    I’ve tested to add and use lumia imaging SDK in universal app project, the project did not produce such exception. Please try follow ken’s suggestion to check the type of your project and try narrow down this problem.
    If you don’t know how to do, please submit a repro project to show the problem in detail on your OneDrive, then share a link here.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Lumia Imaging SDK (RedEye)

    Trying to use the Lumia Imaging SDK to remove redeye from images. I have been successful in removing redeye from one eye in an image using the code in the examples:
    List<Rect> eyes = new List<Rect>();
    eyes.Add(new Rect(0,0,1,1));
    filterlist.Add(new Lumia.Imaging.Adjustments.RedEyeRemovalFilter(eyes, Lumia.Imaging.Adjustments.RedEyeRemovalMode.Normal));
    effect.Filters = filterlist;
    await writableBitmapRenderer.RenderAsync();
    Can anyone help me in understanding how you get the rect for each eye, I thought I could use a drawn rectangle on the eye then use this to feed the eyes collection but the values range between 0 and 1.
    I would appreciate some pointers as to how I should proceed with detecting where the eyes are red or transferring the values from the rectangle drawn around the eyes to the Rect structure.
    Mal

    Hi,
    The coordinates are fractions of the image size, so if your image size is (100, 200) and your eye rect in pixels is at position (50, 50) with size (10, 10), the input to the filter should be (0.5, 0.25, 0.1, 0.05).
    Regards,
    Jonas
    Jonas
    I am very close to sorting this, using the code I posted I can now sort redeye but if I make a rectangle around two eyes it only does one of them, if I make a rectangle around the one that's left and try again, it does that one but undo's the other.
    Any ideas as to why this would happen?
    Mal

  • Lumi Imaging SDK Issue

    Hi,
    I've recently updated Lumia Imaging SDK to v 2 in my app and sometimes I started to get the below exception:
    [TypeLoadException: Requested Windows Runtime type 'Lumia.Imaging.JpegTools' is not registered.]
        System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD):0
        Lumia.Imaging.JpegTools.AutoResizeAsync(IBuffer jpegSource, AutoResizeConfiguration autoConfiguration):0
        Snaps23.Shared.Helpers.PhotoModel.<ResizeStreamAsync>d__13.MoveNext():0
    [COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))]
    I don't have Any CPU or x64 build configuration in my active solution configurations. The weird thing is that sometimes it works on simulator sometimes not, but it always throws that exception when the app is deployed on device.

    Hi,
    Some of you may have noticed a problem in Visual Studio 2013 Update 4: when consuming an SDK you may sometimes get a TypeLoadException; a type from the SDK could not be found during runtime and an exception was thrown.
    This problem can be found described online in several places. If this is an active obstacle for anyone, the workaround is to grab the C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\ Microsoft.Build.AppxPackage.dll
    from a machine with VS 2013 Update 3 (where it was working), and replace it on a machine with VS 2013 Update 4.
    This is effectively just copying a file from VS2013Update3 and using it from Update 4.
    Just note, this fix is needed at App build time. If you are shipping an SDK, the consumers of the SDK need to apply this fix.

  • Can't find Lumia SensorCore SDK

    For some reason Nokia Developer and its community and wiki seem to be gone, I've looked everywhere on the MSDN and can't find any information regarding Lumia or any other Nokia platform, if this is a move by Microsoft it's a lousy and developer unfriendly move, why did they do this? You'd think that they'd use the MSDN which still has archives for Windows Mobile and even MS-DOS development, but for some reason Microsoft just has to delete years and years of work, this move would've never happened under Ballmer, the Microsoft-Nokia deal had so much potential, but Microsoft completely ruined it, I won't be surprised if they'd delete all Lumia features and then take 5 years so build them from the ground up and waste money and hire new people because they had to fire the old talented workers (oké, maybe this accidently turned into a rant, but I really just want Microsoft to make MICROSOFT Mobile's operating systems's and devices' developer software and wiki's available from the Microsoft DEVELOPER Network).
    Likewise Microsoft claims that S40, S60, Asha, and Nokia X development details can be found on the Opera site but there's literally nothing there, it would've been way easier to have just migrated and archived information and Wiki's to the MSDN which still lists articles relevant to Windows 95, but can't list something about the Lumia Imaging SDK which works with the Microsoft Lumia 640 XL released in 2015.

    TulaTheQuang wrote:
    this accidently turned into a rant
    I am a external developer like you, and I do not understand that closure either. Furthermore, the Microsoft Mobile Community is not leveraged as feedback channel. Therefore here, your comments drown in the Internet swarm. Officially, you should ask such questions in the Microsoft Developer Network (Lumia) or Opera (rest).
    TulaTheQuang wrote:
    Asha, and Nokia X development details can be found on the Opera site
    Does this help?
    TulaTheQuang wrote:
    Where is the Lumia SensorCore SDK?
    Please, continue there …
    Currently, Google still has Developer Nokia in its cache, if you look for the Blogs, Wiki, or Discussion Board.
    Furthermore as of today, the Wayback Machine is not blocked by a robot.txt, yet.
    If you look for something special, please, say so and I double-check for you.

  • Anddroid-sdk and the missung libs?

    Hi friends. I downloaded the "android-sdk r09-1" from AUR and the Android SDK and AVD manager installed on my system succesfully. but when I command:
    $ adb
    the result is
    adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
    and when I do:
    $ cd /opt/android-sdk/platform-tools/
    $ sudo ./adb
    It says:
    ./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
    . What should I do?

    No effect at all. It says prevoius thing again even after installing gcc-libs

  • Kinect for windows v2 SDK and v1 sensors

    Before upgrading to win 8 to utilize the Kinect for Windows SDK 2.0  I want to know if it is backwardly compatible with the v1 of the sensors.
    Thanks

    There are technical ways of doing it but requires that you create your own separate .dll's that will wrap the v1 and v2 libraries in their own wrapper so the namespace collisions don't occur. Then you use your .dll within your application. I have a snippet
    of code of how to do this in my GitHub account:https://github.com/carmines/workshop/tree/master/WPF/KinectV2andV1
    Then there are the image resolution and camera intrinsic values you need to concern yourself with if you intend to try and mix the values together.
    Carmine Sirignano - MSFT

  • Image Capture and Preview "folder not writable" error importing to shared folder

    I'm running 10.8.5 on a Late 2012 model Mac Mini. I'm trying to create a folder under my home directory where my wife can import pictures using Image Capture or Preview while logged into her account. I've tried setting permissions on the folder by setting POSIX permissions and ACLs from the command line, and also by setting ACLs using Get Info in Finder, but it seems as though both Image Capture and Preview ignore the ACLs and instead rely solely on the POSIX permissions for everyone/other (even when a relevant group is set). Unless the POSIX permissions for everyone/other are "rwx" Image Capture and Preview both give an error that the import failed, and /var/log/system.log shows errors that the "folder is not writable". I'd like to be able to set this up without making the folder and the files in it writable by everyone. My understanding was that ACLs should take precedence over POSIX permissions, but even the POSIX permissions don't seem to be getting handled properly, because the group is ignored. Any help or explanation of what's happening would be appreciated.
    Here's an example with details:
    Suppose we have the users alice and bob. We want to set permissions on the directory /Users/bob/importdir such that Alice can import files from a camera there using Image Capture (or Preview, either would do), but don't want to relax the permissions more than necessary.
    We create a group named bob_and_alice
    We set the following permissions on /Users/bob:
    POSIX: rwxr-xr-x, owner=bob, group=staff (i.e. default POSIX permissions)
    ACLs:
    0: group:everyone deny delete
    1: group:bob_and_alice allow list,search,readattr,readextattr,readsecurity
    2: user:alice allow list,search,readattr,readextattr,readsecurity
    "Get Info" shows "Read & Write" for bob and "Read Only" for alice, bob_and_alice, staff, and everyone
    We set the following permissions on /Users/bob/importdir:
    POSIX: rwxrwxr-x owner=bob, group=bob_and_alice
    ACLS: (these are already probably more permissive than should be necessary)
    0: group:bob_and_alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    1: user:alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    "Get Info" shows "Custom" for both alice and bob_and_alice, "Read & Write" for bob, and "Read Only" for everyone
    Alice opens a Terminal and cd's to /Users/bob/importdir. Alice can create and delete files in this directory.
    Now Alice opens Image Capture and with our camera connected we try to import a photo to /Users/bob/importdir. Image Capture shows an error dialog with the text "Import error. An error occurred while importing. The item 'foo.jpg' was not imported." /var/log/system.log shows the message: "Jul 20 22:12:34 computer_name.local Image Capture[32804]: Document destination folder is not writable" If instead Alice uses Preview it shows an error dialog with the text "The selected folder is not writable" and /var/log/system.log shows two error messages:
    Jul 20 22:23:45 computer_name.local Preview[33280]: Document destination folder is not writable
    Jul 20 22:23:45 computer_name.local Preview[33280]: Encountered error during image import: Error Domain=com.apple.ImageCaptureCore Code=-9934 "The selected folder is not writable" UserInfo=0x7ffda4881f00 {NSLocalizedDescription=The selected folder is not writable}
    Now we change the POSIX permissions on /Users/bob/importdir to: rwxrwxrwx
    The import succeeds with both Image Capture and Preview
    Can anyone explain what's going on here? Is there another reasonable way to do this without, moving this shared directory to /Users/shared?

    Did you figure out how to fix this?

  • Image Processing and machine vision don't appear in Function Palette

    Hi,
    I have problem and I can't solve it
    Image Processing and machine vision don't appear in Function Palette, Although I set up NI imaq and NI Vision Acquisition Why??
    Anyone can help me?
    Solved!
    Go to Solution.

    If the image is already a Grayscale U8 image you would just have to save it to a bitmap file using the IMAQ WriteFile VI. If not, use the IMAQ Cast Image VI to convert it to a Grayscale U8 and then save it.
    Also, it would probably be better to create a new thread for questions like these.
    Cameron T
    Applications Engineer
    National Instruments

  • Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now som

    Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now some of my images have disappeared from Light room 4.4, but I can find them in CS4 and Bridge now shows some thumb nails as images and some as an icon with CR2. I have spent two weeks going through preferences etc. to find how to resolve my problem. Please can you Help? Meany thanks in advance
      Derek Randall

    I don't use LR and rarely use the bridge so I can not answers about thumbnails in them,  However thumbnails in windows file explorer and windows dialog for CS2 files will only show if you have installed codec into windows that will produce them. Windows does not do CR2 thumbnails on its own. I use FastPictureViewer Codec package for RAW File and PSD files thunbmail support.

  • Firefox mage quality and resolution was superb when I used XP and Vista. Now that I have Windows 7, however (with the Firefox 3.6.3 version), the image quality and resolution is poor. Please help me!

    I am using the Firefox 3.6.3 version with my new Windows 7 operating system. When I used all the previous Firefox versions in my XP and Vista operating systems, image quality and resolution was excellent! However, now that I have upgraded to Windows 7 and Firefox 3.6.3, the image quality and resolution is poor (unacceptable for downloading purposes).
    == This happened ==
    Every time Firefox opened
    == I first activated my new computer and installed the Firefox 3.6.3.

    All my images are pixelated in firefox 3.6.3
    http://www.dcgdcreative.com
    Not only on my site but on most sites I view.
    The issue is not solved by resetting the zoom text view (ctrl+0)
    The issue is not resolved by starting in safemode with add-ons disabled
    The problem seems to only affect .jpeg files and only on Windows 7 on my desktop; as I have viewed several sites using windows XP with my laptop, no issues.
    I had the same issue with IE8 and was able to fix the problem with by setting up the compatibility view for all sites. Issue fixed no problems at all. But nothing similar for firefox?
    Whats the deal?

  • Hello apple guys, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    hello apple guys, after installing OS X Mavericks, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    So is this the way Apple works now? Not solving customers problems? I'm sure so many users have had this problem. I've had, and I reinstalled Mavericks 3 times. Works fine for some days and then several Apple Apps stop working. Is that a way to force us ti update to Yosemite? (I don't want to) and then pay to update some third party programs (i.e. Pro Tools). Also, there are so many 15" MacBooks Pro with graphic problems and of course the guys at the Apple Service Centers always say: "It's the logic board, you can have it replaced, but it's so expensive I would recommend a new Mac".  I really, really miss Steve Jobs!

  • Image Capture and Preview have trouble finding scanner. Photoshop no problem.

    Image Capture and Preview have trouble finding the scanner wirelessly unless it is on when the Mac starts up. Photoshop finds the scanner no problem. Any suggestions for Image Capture or Preview?
    The scanner is Canon MP620. Mac is MBP, running 10.8.2
    I have done all the uninstall, reinstall, update drivers, etc. Please don't bother suggesting that stuff.
    Thanks.

    As for the scanner - so is this new one wireless? When I hooked up my Epson All-in-One, I had to install it via USB first before I could install the wireless (per their instructions).  With Snow Leopard, I simply installed the driver and it covered and recognized both the print and scan function - not so in Lion; I had to go through hoops with the scanner part and it finally showed up as a separate unit. I thought that is silly, but - as long as it works.....  I'm trying to think of possibilities since I'm about out of ideas, so you might want to consider that (if it applies). The other troubleshooting suggestions usually include redoing the "add" function after a reboot.
    As for Image Capture, I am out of ideas. FWIW, I never use it - in my workflow, there is no need for it. Not sure if this would have an impact, but make sure that you choose Image Capture in the CDs&DVDs Preference Pane (mine is set to ignore or ask purposely):
    If that does not work, I'd suggest reinstalling the OS over the top of what you have.

  • I have upgraded to Mountain Lion and have found that some of my software no longer works, notably Image Browser and also the Epson Scanner Perfection 3490 software. Is there a 'patch' or way to allow me to use these programmes especially the scanner.

    I have upgraded to Mountain Lion and have found that some of my software no longer works, notably Image Browser and also the Epson Scanner Perfection 3490 software. Is there a 'patch' or way to allow me to use these programmes especially the scanner.

    Apple discontinued support for PowerPC apps with Lion, I think, so you're out of luck there. No patch coming, unfortunately. Best to upgrade whatever old applications you have or, since it seems like you're using some relatively old software, scout around for replacements that give you the functionality you need.
    Go to Apple menu > System Preferences > Print & Scan and select your scanner from the list--if it's not there you'll need to add it (start with the little plus icon). Once you have it in the list you can click on the Open Scanner button and a pretty barebones scanner driver will load for you. But Image Capture (as mentioned previously), found in your Applications folder, will probably do the job as adequately, or better, than your old scanner software.

  • I imported about 300 RAW images yesterday and worked with them for about an hour. iPhoto locked up on me and I rebooted. After I did the event icon is now gray and it says there are no photos. I know the photos are there. Any idea how I can recover them?

    I imported about 300 RAW images yesterday and worked with them for about an hour. iPhoto locked up on me and I rebooted. After I did the event icon for that event is now gray and it says there are no photos. I know the photos are there. Any idea how I can recover them?

    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 then 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
    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    LN

Maybe you are looking for

  • NFe de Serviço - NFSe: Modelos NacionalxMunicipal

    Bom dia PessoAll, Gostaria de saber se algum de vocês sabem explicar como ter certeza da utilização dos Municipios abaixo: -Salvador -Belo Horizonte -Recife -Rio de Janeiro -Curitiba para com o modelo Nacional e o Modelo Municipal, descobri que cada

  • Possible bug with TREAT and EXECUTE IMMEDIATE

    Hello, i experienced a strange behavior which seems to be a bug. Consider following definitions: CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT (   DummyProperty NUMBER ) NOT FINAL; CREATE OR REPLACE TYPE T_Child UNDER T_Base (   AnotherDummyProperty 

  • How to set content type for the attachment?

    Hello Everybody, I was trying to do the following in my send mail program:- 1. I am making a file using FileWriter: FileWriter fw = new FileWriter(f); fw.write(str); 2. I now want to attach this file with my mail. but before that I want to set the Co

  • Passing input to Terminal from app

    Hi, i'm pretty new to Objective-C and I was wondering how one could open the Terminal and send it commands from a Foundation Tool or Cocoa App. I did a bit of research and found some useful example code on stackoverflow.com: -(void) runScript:(NSStri

  • 13" MBP Mid 09 Battery problems with snow leopard

    Last night i decided to upgrade my wifes 09 macbook from the stock 160GB harddisk to an Intel 320 series HDD. I had gotten the Snow Leopard upgrade when i bought the mac in 09, but never bothered to install it. (Leopard worked just fine for my wifes