How to solve 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names.

Hi,
I am developing windows store 8.1 app. I need to perform unit testing of my app . When I add the project (to be tested) to unit test
library project by using Add reference I am getting these errors:
Error
5
 The .winmd file 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names. Type 'Microsoft.Advertising.WinRT.UI.AdControl'
is already registered with the in-process server 'CLRHost.dll'.
UnitTestLibrary
Error
6
 The .winmd file 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names. Type 'Microsoft.Advertising.WinRT.UI.AdSettingsFlyout'
is already registered with the in-process server 'CLRHost.dll'.
UnitTestLibrary
Error
7
 The .winmd file 'Microsoft.Advertising.WinRT.UI.winmd' contains duplicate type names. Type 
I found a blog here . I tried it but i coudn't see the xml file in this path C:\Program
Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\MSAdvertisingXaml\6.1\SDKManifest.xml
I found the file in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\MSAdvertisingXaml\8.1 . But when i tried to update it is displaying an access denied  message  

Hi Alok,
Thank you for posting in MSDN forum.
Based on your issue, to check if the issue is related to the specified unit test or the VS IDE issue. I suggest you can refer the following document to re-create a simple new unit test with windows store app and then add the windows store app as reference
to the Unit test project check this issue.
https://msdn.microsoft.com/en-us/library/windows/apps/jj159318.aspx
(1)If you did not get same error message in the new unit test project, I doubt that maybe you did not reference the windows store app successfully. So please refer the above document to reference it again check this issue.
If you still could not reference successfully, please share me the mainly code for the windows store and unit test project.
Or you could share me your solution include the reference project and unit test project.
You could upload your sample to the OneDrive and then copy link here.
(2) If you get same error message in the new unit test, I suggest you could try to repair or re-install the VS IDE and then check this issue again.
Hope it help you!
Best 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.

Similar Messages

  • How to solve this error 'This package is using an app name that hasn't been reserved for this app: "Matest"

    i already reserved app name as Ma_Test. But only one error showing "This package is using an app name that hasn't been reserved for this app: "Matest". how to solve?

    Hello,
    You need to make sure both names match exactly

  • How to solve this Error?? Error_2_Cannot implicitly convert type 'int' to 'int[]'_

    Hi,
    I created a structure. It contains 1& 2 diamensional arrays. Now I want to pass values to these arrays. But at that time I got the following error.
        Error 2 Cannot implicitly convert type 'int' to 'int[]' 
            publicstructtest
              [FieldOffset(160)]
             [MarshalAs(UnmanagedType.ByValArray,
    SizeConst = 3)]
            publicint[]
    DC;
               [FieldOffset(168)]
              [MarshalAs(UnmanagedType.ByValArray,
    SizeConst = 8)]
              publicfloat[]
    IN;
               [FieldOffset(176)]
              [MarshalAs(UnmanagedType.ByValArray,
    SizeConst = 8)]
            publicbyte[,]
    us;
    privatevoidbutton1_Click(objectsender,
    EventArgse)
    //int[] T_ADC = new int[3];
                array[0].DC =12
                array[0].IN[0] = 11;
                array[0].us[0, 0] = 1;

    @DAANNIII
    >>I wrote the code as follows
    array[0].DC[0]
    =12
    but after that I got an error that  " Object reference not set to an instance of an object".Why this type of error occurs??
    Still confused about how you define variable "array[0]".
    Based on your error information, because your DC is null. As I said before, DC is an int[]. You must assign an array to DC.
    int[] array = new int[] { 2, 43 };
    test s = new test();
    s.DC = array;
    s.DC[0] = 12;//It works fine
    Best regards,
    Kristin
    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.

  • I cannot block some advertisements in the journal De Telegraaf, in The Netherlands. When I move the mouse to blokkeren (Dutch) this blokkeren disappers. How to solve it?

    I cannot block some advertisements in the journal De Telegraaf, in The Netherlands. When I move the mouse to blokkeren (Dutch) this blokkeren disappers. How to solve it? edit

    You cannot boot an iBook from an external USB drive--only a firewire drive. Actually, the drive is just a drive--it is the enclosure that determines USB vs. FireWire. If you could find an appropriate firewire enclosure, you could remove the drive from the USB enclosure and place it in a firewire enclosure and then be able to boot from that. Or you could just purchase an external firewire drive if those are available where you are.
    FireWire external drives are quite useful. One option would be to mount the external drive on the good iBook, format it properly for OS X with Disk Utility, and then use a program like Super Duper to make an exact clone of your internal hard drive. This is a popular way of backing up your stuff. You can boot from either the internal or the external. This means that if your internal hard drive were to die, you would have all your stuff on the external, and could run off of that. Since you are already using the USB for backup, it would probably be best to acquire a new firewire drive for troubleshooting and testing if you decide to go this route, since you really don't want to lose your existing backup.
    If you did have a bootable clone, you could see if the sick iBook would boot from it or not. However, it may be more productive to pursue your other thread about the boot problem. I see that Richard has joined the thread as I had hoped he would. He actually works on iBooks and is very knowledgeable.
    Also, if you do get the second ibook working and want to install OS9, you might want to post a question in the "Mac OS X v 10.3 Panther and earlier" forum. I'm not up on this myself, but I believe there is something about installing OS 9 drivers while formating or something like that. I believe the smart guys on that forum could give you some guidance so that you can avoid the problems you encountered earlier.
    Good luck!

  • How to Solve This in Win8: "Photoshop CS6 has stopped working ... ..."

    Anyone know how to solve this problem?? Please help. It's given me a lot of headache and I need it fixed as soon as possible.
    I have re-installed. And system restore. Everything is up-to-date. And I cannot find the problem to solve it.
    Computer Details:
    Tech Support Guy System Info Utility version 1.0.0.2
    OS Version: Microsoft Windows 8 Pro, 64 bit
    Processor: Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz, Intel64 Family 6 Model 26 Stepping 5
    Processor Count: 8
    RAM: 6142 Mb
    Graphics Card: NVIDIA GeForce GT 240, 1024 Mb
    Hard Drives: C: Total - 122001 MB, Free - 14560 MB; D: Total - 953866 MB, Free - 176631 MB; F: Total - 296441 MB, Free - 8907 MB;
    Motherboard: Gigabyte Technology Co., Ltd., X58A-UD3R
    Antivirus: Windows Defender, Disabled
    Other Details:
    Faulting application name: Photoshop.exe, version: 13.0.0.0, time stamp: 0x4f61c045
    Faulting module name: SelectivePalette.8li, version: 2.1.4.131, time stamp: 0x529e6913
    Exception code: 0xc0000005
    Fault offset: 0x0000000000009582
    Faulting process id: 0x3ac
    Faulting application start time: 0x01cf08a96051f5a5
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Photoshop.exe
    Faulting module path: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\Google\Selective Tool\SelectivePalette.8li
    Report Id: a1a5ffce-749c-11e3-bf7b-1c6f65365a00
    Faulting package full name:

    Your Nik/Google SelectivePalette plugin crashed.
    Disable the Nik/Google plugins for now, and contact Nik/Google for updates/bug fixes.

  • Working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??

    Try http://www.microsoft.com/mac/support.

  • Saving from Safari as PDF results in an icon with 0 byte volume that fails to open as it is "damaged" Why and how to solve?

    saving from Safari as PDF results in an icon with 0 byte volume that fails to open as it is "damaged" Why and how to solve?

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print PDF's displayed in Safari, you may be able to print by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar may appear under the cursor. Click the printer icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • All my games show that: This app is no longer published. How to solve it . My account seems blocked

    all my games show that: This app is no longer published.   How to solve it . My account seems blocked
    my accout:
    [email protected]

    best is to contact support from your dev center
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • How to solve Ajax problem in Tomcat server

    we are using Tomcat 5.0.27 server and my sql server. we using AJAX Techniques in my projects. but its some times working fine but sometimes not working the code sample is given by
    var req;
    var names;
    function initRequest(url) {
    if (window.XMLHttpRequest)
         req = new XMLHttpRequest();
    else if (window.ActiveXObject)
    isIE = true;
    req = new ActiveXObject("Microsoft.XMLHTTP");
    if (req==null)
              alert("Your browser does not support XMLHTTP.")
    function loadPurchase(startLetter)
         var mon=document.getElementById('month').value;
    var yea=document.getElementById('year').value;
    var url = "../inventory?actionS=INVPurchase&month="+escape(mon)+"&year="+escape(yea)+"&id="+escape(startLetter);;
         initRequest(url);
         req.onreadystatechange = PurchaseRequest;
         req.open("GET", url, true);
         req.send(null);
    function PurchaseRequest() {
              0 (Uninitialized) The object has been created, but not initialized (the open method has not been called).
              1 (Open) The object has been created, but the send method has not been called.
              2 (Sent) The send method has been called, but the status and headers are not yet available.
              3 (Receiving) Some data has been received.
              4 (Loaded) All the data has been received, and is available
    alert(re.readyState)
         if(req.readyState == 4)
    alert("Inside Ready State");
    document.getElementById('Edit').disabled=true;
    document.getElementById('Delete').disabled=true;
    if (req.status == 200)
    PurchaseMessages();
         else
              alert("Problem retrieving XML data")
    function PurchaseMessages()
    var batchs = req.responseXML.getElementsByTagName("purchases")[0];
    var str="";
    for(loop = 0; loop < batchs.childNodes.length; loop++)
    var batch = batchs.childNodes[loop];
    var Refid = batch.getElementsByTagName("Refid")[0];
    str = str +Refid .childNodes[0].nodeValue;
    var tb=document.getElementById('PurchaseTable');
    tb.innerHTML=str ;
    the alert coding( req.readyState) is always 1
    how to solve for that
    please any one help me

    Sorry, I've never done this. I went to the Tomcat site and pulled down the CGI docs, which you might have seen:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html
    No other help available from me. Sorry.

  • How to solve error -1450?

    I have been re-installed iTunes, and it keeps pop-up with the error -1450 ( cannot save music library ), and it reloads all the playlist each time I switch on the computer and open iTunes.
    I have been re-install iTunes after the error appear, and it seems although I have re-install iTunes, the problem doesn't solve and keeps repeat.
    For any kindness, please tell how I can fix this error, as I cannot find any articles on support page about this.
    Thanks

    Does anyone know how to solve error 1450 or even what
    caused it!? This problem is killing me.
    I found this by doing a search on Google for "Error 1450": http://support.microsoft.com/kb/236964/EN-US/

  • How to install Microsoft Lync on Curve 9380

    Hi All,
    I recently got my BB Curve 9380, ever since I got my BB I have been trying to install Microsoft Lync on my device with no luck at all. I did some searching on Google and ended up at http://us.blackberry.com/apps-software/server/exchange/ocs2007.jsp.
    I did the things as mentioned in above URL but couldn't quite successful yet.
    Can someone please help me out on how to install Microsoft Lync on my deive PLEASE.
    Thanks in advance !!
    Srini
    Solved!
    Go to Solution.

    Hi Srinivas_akyana,
    Please copy paste downloaded file in your memory card of device.
    & access it on your devcie, you will find a folder naming OC2007 > there will be many folder inside, so you have to select the folder according to your devcie OS (Suppose you have OS 7 then open folder for_7.0.0 > Click on .jad file of language in which you want to install the app (Suppose you want English so select oc2007_700_en.jad)
    Once you click on .jad file, it will prompt you to download and install the app.
    Good luck...

  • HT1338 trying to update from 10.6.8 to Lion. Refuses to load because HD used for Time Machine updates. Anyone know how I solve this? Chris

    trying to update from 10.6.8 to Lion. Refuses to load because HD used for Time Machine updates. Anyone know how I solve this? Chris

    What do you mean you're in the process of "downloading the installer for 10.7.3"? If you mean the software update combo, you won't be able to use that to go from 10.7.4 to 10.7.3. The only way you could do that is to reinstall the whole OS from the App Store IF that version is 10.7.3. I don't know if the App store Lion installer includes 10.7.4 already, but if it does, you can't get to 10.7.3 at all.
    As for what you do about your slow machine, there are tips all over the internet. I wrote up some of the basic one's to try here:
    http://applehelpwriter.com/2011/12/05/why-is-my-mac-running-so-slow/
    Other possibilities not mentioned there are either a corrupt install of Lion (solution; re-install from the Recovery disk) or hardware failure (old hard disks and other hardware components can sometimes give out there last after the strain of a new install).
    (ToU Disclaimer: my link contains links to other pages which advertise my services as a technical writer).

  • How to solve this BIOHD-8?

    My pc showing BIOHD-8 this message how to solve this? My pc components are
    dual core processor E5400
    1 gb ram
    320 gb hard drive
    This question was solved.
    View Solution.

    If you are able to boot into Windows, go to an elevated priveleges command prompt.
    Type in chkdsk /f and press the enter key.  Let it run to completion.
    The chkdsk utility may be able to repair the issue if it is bad sector related. If the repair is not successful you will have to replace the hard disk and use recovery media to reinstall the operating system and drivers.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • How to solve this problem, pls help when I try to see remote camera system from home."Dual streaming is required for HTML viewing"

    How to solve this problem, pls help when, I try to see remote camera system(spec dvr) from home. The Error I get is "Dual streaming is required for HTML viewing"

    I had the same probelm and found that the problem lies with 64bit programs such as safari and microsoft internet explorer. I have resolved the issue on my PC based server by using a 32 bit ie and same on my mac by using the same running windows under parallels.
    So far the problem with the 64 bit side of it is still to be resolved.
    Hope this helps and gets you guys up and running until suchtime a 64 bit solution is found.
    Craig

  • Error code(A12E5) is being shown while downloading Muse. How to solve it ?

    Error code(A12E5) is being shown while downloading Muse. How to solve it ?

    I grappleed with this problem since August 2013 and only found a solution two weeks ago.
    Forget the Adobe people - they haven't got a clue about this and will send  you on a circular wild goose chase over ever decreasing circles.
    By chance, I found the solution with Microsoft.
    Follow this link and the instructions. It seems a little daunting at first but step by step it is easy. And if you make a snaffoo you can teset your machine to normal in four dead simple steps.
    www.support.microsoft.com/kb/929135
    I followed this and was immediately able to download Photoshop CC and Bridge CC and they both work perfectly. (I haven't tried any updates yet.)
    Ken

Maybe you are looking for