InteropForm Toolkit User Control deployment dependencies

I have built an InteropForm User Control which I have successfully tested in .NET and, as desired, in VB6. I would like to deploy this VB6 (legacy) application but regardless of which DLL's I include in the installer, running the app always generates error
339:
It is referring to the User Control that I built and, yes, MediaGunUserControlLibrary.tlb is in the same folder as the .exe - along with all other possible DLL and dependencies I can track down.
Perhaps I'm not smart enough, but I read this and frankly I don't understand it:
http://blogs.msdn.com/b/vbteam/archive/2007/06/04/deploying-applications-with-the-interopforms-2-0-toolkit.aspx
Could someone please distill this into simpler language or at least provide a working example that does deploy? Just a simple list of required DLL's would be very helpful indeed. If, it turns out, that I have all the required DLL's and it still does not
work then at least I can be sure it is something I'm using in addition that is causing the problem.

Still no joy.
Using WordProcessor from Toolkit SDK Samples on W7 x64 virgin VM.
Iinstalled the Toolkit redist but still getting error:
Here is what the folder looks like on the test machine:
Process Monitor shows no unsuccessful image loads:
"Time of Day","Process Name","PID","Operation","Path","Result","Detail"
"8:34:41.9714101 PM","WordProcessor.exe","1328","Load Image","C:\Users\Administrator\Desktop\WordProcessor\WordProcessor.exe","SUCCESS","Image Base: 0x400000, Image Size: 0x9000"
"8:34:41.9715318 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\ntdll.dll","SUCCESS","Image Base: 0x76e00000, Image Size: 0x13c000"
"8:34:41.9721159 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\kernel32.dll","SUCCESS","Image Base: 0x75970000, Image Size: 0xd4000"
"8:34:41.9723103 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\KernelBase.dll","SUCCESS","Image Base: 0x75050000, Image Size: 0x4b000"
"8:34:41.9734196 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\msvbvm60.dll","SUCCESS","Image Base: 0x72940000, Image Size: 0x153000"
"8:34:41.9736075 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\user32.dll","SUCCESS","Image Base: 0x76d30000, Image Size: 0xc9000"
"8:34:41.9737420 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\gdi32.dll","SUCCESS","Image Base: 0x75db0000, Image Size: 0x4e000"
"8:34:41.9738705 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\lpk.dll","SUCCESS","Image Base: 0x76f70000, Image Size: 0xa000"
"8:34:41.9740046 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\usp10.dll","SUCCESS","Image Base: 0x75cb0000, Image Size: 0x9d000"
"8:34:41.9740989 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\msvcrt.dll","SUCCESS","Image Base: 0x758c0000, Image Size: 0xac000"
"8:34:41.9745801 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\advapi32.dll","SUCCESS","Image Base: 0x75eb0000, Image Size: 0xa0000"
"8:34:41.9751203 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\sechost.dll","SUCCESS","Image Base: 0x75180000, Image Size: 0x19000"
"8:34:41.9753008 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\rpcrt4.dll","SUCCESS","Image Base: 0x75e00000, Image Size: 0xa2000"
"8:34:41.9755752 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\ole32.dll","SUCCESS","Image Base: 0x751a0000, Image Size: 0x15c000"
"8:34:41.9758232 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\oleaut32.dll","SUCCESS","Image Base: 0x75580000, Image Size: 0x8f000"
"8:34:41.9784196 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\imm32.dll","SUCCESS","Image Base: 0x76f50000, Image Size: 0x1f000"
"8:34:41.9787334 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\msctf.dll","SUCCESS","Image Base: 0x754b0000, Image Size: 0xcc000"
"8:34:42.0004868 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\cryptbase.dll","SUCCESS","Image Base: 0x74d40000, Image Size: 0xc000"
"8:34:42.0012378 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\uxtheme.dll","SUCCESS","Image Base: 0x73ae0000, Image Size: 0x40000"
"8:34:42.0032400 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\sxs.dll","SUCCESS","Image Base: 0x74d50000, Image Size: 0x5f000"
"8:34:42.0065598 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\clbcatq.dll","SUCCESS","Image Base: 0x75c20000, Image Size: 0x83000"
"8:34:42.0089497 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\mscoree.dll","SUCCESS","Image Base: 0x70ef0000, Image Size: 0x4a000"
"8:34:42.0105476 PM","WordProcessor.exe","1328","Load Image","C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll","SUCCESS","Image Base: 0x6ed40000, Image Size: 0x7b000"
"8:34:42.0147898 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\shlwapi.dll","SUCCESS","Image Base: 0x75f50000, Image Size: 0x57000"
"8:34:42.0186396 PM","WordProcessor.exe","1328","Load Image","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll","SUCCESS","Image Base: 0x68be0000, Image Size: 0x5ae000"
"8:34:42.0203225 PM","WordProcessor.exe","1328","Load Image","C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_d08cc06a442b34fc\msvcr80.dll","SUCCESS","Image Base: 0x6b5b0000, Image Size: 0x9b000"
"8:34:42.0380716 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\shell32.dll","SUCCESS","Image Base: 0x75fb0000, Image Size: 0xc4a000"
"8:34:42.0397372 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\profapi.dll","SUCCESS","Image Base: 0x74e60000, Image Size: 0xb000"
"8:34:42.0434235 PM","WordProcessor.exe","1328","Load Image","C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\38bf604432e1a30c954b2ee40d6a2d1c\mscorlib.ni.dll","SUCCESS","Image Base: 0x66fc0000, Image Size: 0xaf9000"
"8:34:42.0500993 PM","WordProcessor.exe","1328","Load Image","C:\Windows\assembly\GAC_MSIL\Microsoft.InteropFormTools\1.0.0.0__b03f5f7f11d50a3a\Microsoft.InteropFormTools.dll","SUCCESS","Image Base: 0x72be0000, Image Size: 0xe000"
"8:34:42.0501160 PM","WordProcessor.exe","1328","Load Image","C:\Windows\assembly\GAC_MSIL\Microsoft.InteropFormTools\1.0.0.0__b03f5f7f11d50a3a\Microsoft.InteropFormTools.dll","SUCCESS","Image Base: 0x560000, Image Size: 0xe000"
"8:34:42.0509012 PM","WordProcessor.exe","1328","Load Image","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorsec.dll","SUCCESS","Image Base: 0x580000, Image Size: 0x13000"
"8:34:42.0520925 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\wintrust.dll","SUCCESS","Image Base: 0x74fe0000, Image Size: 0x2e000"
"8:34:42.0522316 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\crypt32.dll","SUCCESS","Image Base: 0x74ec0000, Image Size: 0x120000"
"8:34:42.0523894 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\msasn1.dll","SUCCESS","Image Base: 0x74e50000, Image Size: 0xc000"
"8:34:42.0533939 PM","WordProcessor.exe","1328","Load Image","C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5\comctl32.dll","SUCCESS","Image Base: 0x71c00000, Image Size: 0x84000"
"8:34:42.0551571 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\riched20.dll","SUCCESS","Image Base: 0x6e100000, Image Size: 0x76000"
"8:34:42.0569999 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\cryptsp.dll","SUCCESS","Image Base: 0x74860000, Image Size: 0x16000"
"8:34:42.0636055 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\rsaenh.dll","SUCCESS","Image Base: 0x74600000, Image Size: 0x3b000"
"8:34:42.0815075 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\imagehlp.dll","SUCCESS","Image Base: 0x76f80000, Image Size: 0x2b000"
"8:34:42.0888979 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\ncrypt.dll","SUCCESS","Image Base: 0x74990000, Image Size: 0x38000"
"8:34:42.0895824 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\bcrypt.dll","SUCCESS","Image Base: 0x74970000, Image Size: 0x17000"
"8:34:42.0903967 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\bcryptprimitives.dll","SUCCESS","Image Base: 0x74540000, Image Size: 0x3d000"
"8:34:42.0969152 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\userenv.dll","SUCCESS","Image Base: 0x74ea0000, Image Size: 0x17000"
"8:34:42.1083597 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\gpapi.dll","SUCCESS","Image Base: 0x74440000, Image Size: 0x16000"
"8:34:42.1408909 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\cryptnet.dll","SUCCESS","Image Base: 0x72450000, Image Size: 0x1c000"
"8:34:42.1411374 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\Wldap32.dll","SUCCESS","Image Base: 0x75830000, Image Size: 0x45000"
"8:34:42.1423134 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\SensApi.dll","SUCCESS","Image Base: 0x6df60000, Image Size: 0x6000"
"8:34:42.1532369 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\winhttp.dll","SUCCESS","Image Base: 0x73220000, Image Size: 0x58000"
"8:34:42.1539739 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\webio.dll","SUCCESS","Image Base: 0x73010000, Image Size: 0x4f000"
"8:34:42.1544509 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\ws2_32.dll","SUCCESS","Image Base: 0x75880000, Image Size: 0x35000"
"8:34:42.1546288 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\nsi.dll","SUCCESS","Image Base: 0x75170000, Image Size: 0x6000"
"8:34:42.1574669 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\sspicli.dll","SUCCESS","Image Base: 0x74cd0000, Image Size: 0x1b000"
"8:34:42.1590392 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\credssp.dll","SUCCESS","Image Base: 0x74500000, Image Size: 0x8000"
"8:34:42.1660798 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\mswsock.dll","SUCCESS","Image Base: 0x74820000, Image Size: 0x3c000"
"8:34:42.1671349 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\wshqos.dll","SUCCESS","Image Base: 0x724a0000, Image Size: 0x6000"
"8:34:42.2031064 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\WSHTCPIP.DLL","SUCCESS","Image Base: 0x74390000, Image Size: 0x5000"
"8:34:42.2038510 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\wship6.dll","SUCCESS","Image Base: 0x74810000, Image Size: 0x6000"
"8:34:42.2047250 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\IPHLPAPI.DLL","SUCCESS","Image Base: 0x72630000, Image Size: 0x1c000"
"8:34:42.2054123 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\winnsi.dll","SUCCESS","Image Base: 0x72b30000, Image Size: 0x7000"
"8:34:42.2063761 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\dhcpcsvc6.dll","SUCCESS","Image Base: 0x5c0000, Image Size: 0xd000"
"8:34:42.2560131 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\dhcpcsvc.dll","SUCCESS","Image Base: 0x72840000, Image Size: 0x12000"
"8:34:42.2876159 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\cfgmgr32.dll","SUCCESS","Image Base: 0x75010000, Image Size: 0x27000"
"8:35:06.2412618 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\dnsapi.dll","SUCCESS","Image Base: 0x746e0000, Image Size: 0x44000"
"8:35:06.2713023 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\rasadhlp.dll","SUCCESS","Image Base: 0x6f570000, Image Size: 0x6000"
"8:35:07.2103236 PM","WordProcessor.exe","1328","Load Image","C:\Windows\assembly\GAC_MSIL\Microsoft.InteropFormTools\1.0.0.0__b03f5f7f11d50a3a\Microsoft.InteropFormTools.dll","SUCCESS","Image Base: 0x72be0000, Image Size: 0xe000"
"8:35:07.2144422 PM","WordProcessor.exe","1328","Load Image","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll","SUCCESS","Image Base: 0x6ece0000, Image Size: 0x5b000"
"8:35:07.2415846 PM","WordProcessor.exe","1328","Load Image","C:\Windows\assembly\NativeImages_v2.0.50727_32\System\95854f4f1f37b8eab1b1e3d7103b48ef\System.ni.dll","SUCCESS","Image Base: 0x66810000, Image Size: 0x7a2000"
"8:35:07.2437036 PM","WordProcessor.exe","1328","Load Image","C:\Windows\assembly\NativeImages_v2.0.50727_32\Microsoft.VisualBas#\d941c7e0001a4d98e39785da42b57341\Microsoft.VisualBasic.ni.dll","SUCCESS","Image Base: 0x6a3d0000, Image Size: 0x19b000"
"8:35:07.2674085 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\RpcRtRemote.dll","SUCCESS","Image Base: 0x74db0000, Image Size: 0xe000"
"8:35:07.2759971 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\dwmapi.dll","SUCCESS","Image Base: 0x737b0000, Image Size: 0x13000"
"8:36:00.6718147 PM","WordProcessor.exe","1328","Load Image","C:\Windows\System32\version.dll","SUCCESS","Image Base: 0x74300000, Image Size: 0x9000"

Similar Messages

  • Where do the files go when we deploy a user control, application page and event receiver?

    I have read that the files go into the HIVE\TEMPLATES\CONTROL TEMPLATES or \FEATURES once deployed.. 
    I have also read that we can right click on project and choose add mapped folder and select whether we want to put the page/user control under CONTROL TEMPLATES or FEATURES, etc?
    Which method is to be followed?

    The files in mapped folder created using Visual studio is copied to the appropriate folder in 14/15 hive on WSP deployment. Refer to the following articles for more information
    http://www.informit.com/articles/article.aspx?p=1626325
    http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/03/12/deploying-files-using-mapped-folders.aspx
    http://msdn.microsoft.com/en-us/library/ee231544.aspx
    --Cheers

  • How to deploy user controls containing licensed components?

    I have a custom control incorporating licensed components from NationalInstruments.UI.WindowsForms. 
    I want to take the custom control to a computer that does not have Measurement Studio installed, add it to the toolbox, and drop the control onto a form.
    I am using Measurement Studio 2013, Visual Studio 2010, and targeting the x86 CPU, and using the .NET 3.5 framework.
    The ability seems to work only when Measurement Studio is also installed and licensed on the other machine.
    The following descries what happens.
    Reproduction
    On a computer with Measurement Studio 2013 Standard installed:
    Start Visual Studio 2010
    Create a new Class Library
    Create a new User Control
    Add a waveFormGraph and Legend in the designer
    Compile the project
    Deploy the library according to the help topic "Measurement Studio .NET XCOPY Deployment Files"
    On another computer without Measurement Studio:
    Get the deployed library
    Start Visual Studio 2010
    Create a new Windows Forms Application
    Open the Form in design mode
    Add the deployed User Control to the toolbox items
    Drag a new User Control into the form
    I see the following message popping up:
    The control is not actually added as a consequence.
    Am I missing some licensing detail or making a mistake during deployment/redistribution?
    I have seen a previous post on this here in this forum , however, it is over a year old now and there was no solution posted.
    Some guidance or clarification would be greatly appreciated.  
    Thank you
    -Steve

    Hello GGS-AKR
    I have been able to reproduce the issue in my end by only de-activating the license in the License Manager. What happens is that if you are going to use a Measurement Studio in a "design time" context, it will ask you for a license. According to NATIONAL INSTRUMENTS SOFTWARE LICENSE AGREEMENT, it states:
    E. "Authorized Applications." Means ( i) those applications that you create with development versions of the
    SOFTWARE that you have validly licensed (including such applications that you create with third party
    software using real-time operating system components of the LabVIEW Real-Time Module and the
    LabWindows/CVI Real-Time Module in accordance with the licenses for such modules), and (ii) those
    applications that you create with third party software development environments and that utilize Driver
    Interface Software, if such software development environment is supported by such Driver Interface
    Software as indicated in the applicable Documentation for such Driver Interface Software. Notwithstanding
    the foregoing, (a) any application created with the Measurement Studio SOFTWARE is not an Authorized
    Application if it uses any Measurement Studio controls in a "design time" context, and (b) any application
    created with any SOFTWARE acquired under an evaluation license is not an Authorized Application.
    I hope this information helps you.
    Regards,
    Carmen Chan | Applications Engineering | National Instruments| 

  • VB ActiveX User Control fails to install on Windows 8 using IE10 with Code Download Error: (hr = 80070005) Access is denied.

    I have a VB VS2008 (.Net 2.0) ‘pure’ .NET based user control which used to be hosted in Internet Explorer.
    Because that approach is no longer possible in VS2013 (.Net 4.5) I have converted it to an VB ActiveX user control.
    This process involves digitally signing the user control DLL.
    Creating a setup project resulting in a setup.exe and MyUserControl.msi.
    Digitally signing both those components and then producing a cab file (which again is digitally signed).
    IE10 should then be able to install this using an object tag as follows
    <object id="editor" height="100%" width="100%"
     classid="clsid:EA47DB16-9272-4CB3-A800-C369A479396A" codebase="cab\MyUserControl.cab#Version=6,0,11,1" VIEWASTEXT>
    If I use the setup.exe and MyUserControl.msi directly on the client windows 8 machine before starting IE10 then the control is already installed (shows up in Programs and Features) and it works.
    If I don't do this and let IE install the control then it doesn't work.
    What I see is the IE prompt
    This website wants to install the following add-on: 'MyUserControl.cab'
    Clicking on install produces the User Account Control MsgBox
    Do you want to allow the following program to make changes to this computer
    Clicking yes doesn't install the control as expected
    The inf file that I'm using is currently
    [version]
    signature="$CHICAGO$"
    AdvancedINF=2.0
    [Add.Code]
    setup.exe=setup.exe
    MyUserControlSetup.inf=MyUserControlSetup.inf
    MyUserControlSetup.msi=MyUserControlSetup.msi
    [setup.exe]
    file=thiscab
    [MyUserControlSetup.inf]
    file=thiscab
    [MyUserControlSetup.msi]
    file=thiscab
    [Setup Hooks]
    RunSetup=RunSetup
    [Deployment]
    InstallScope=user
    [RunSetup]
    run="%EXTRACT_DIR%\setup.exe"
    I have defined the registry setting ForceCodeDownloadLog
    Examining the temporary internet files location after trying to install using IE10 I can see the following
    *** Code Download Log entry (15 Jan 2015 @ 11:49:18) ***
    Code Download Error: (hr = 80070005) Access is denied.
    ERR: Run Setup Hook: Failed Error Code:(hr) = 80070005, processing: %EXTRACT_DIR%\setup.exe
    LOG: Reporting Code Download Completion: (hr:80070005 (FAILED), CLASSID: ea47db16...,

    The problem here was the cab file.
    Using ProcessMonitor I found that the following entry was generated at the time of failure
    16:48:00.9222751            2920      IEInstal.exe         CreateFile              
    C:\Users\Jim\AppData\Local\Temp\IDC2.tmp\setup.exe             NAME NOT FOUND               Desired Access: Read Attributes, Read
    Control, Synchronize, Dis, Options: Synchronous IO Non-Alert, Non-Directory File, Disallow Exclusive, Attributes: n/a, ShareMode: None, AllocationSize: n/a
    Analysis of the contents of the cab file using PeaZip indicated that it didn't contain setup.exe which confused me for a while as the makecab /f MyUserControlSetup.ddf produced no errors.
    The MyUserControlSetup.ddf contained
    .Set DiskDirectoryTemplate=cab
    .Set CabinetNameTemplate=DocEditor.cab
    MyUserControlSetup.inf
    MyUserControlSetup.msi
    setup.exe
    Using makecab /f MyUserControlSetup.ddf /v3 I saw that the output was being written to 3 'disk' files but only one was present in explorer after it finished.
    So I guessed that the output was for floppy disks and changed MyUserControlSetup.ddf to contain
    .Set MaxDiskSize=CDROM
    .Set DiskDirectoryTemplate=cab
    .Set CabinetNameTemplate=DocEditor.cab
    MyUserControlSetup.inf
    MyUserControlSetup.msi
    setup.exe
    PeaZip now indicated that the cab file contained the 3 files I expected and using that cab in the codebase attribute installed my ActiveX control

  • Problem when adding ascx user control in the MasterPage: Parser Error Message: The referenced file ... is not allowed on this page.

    Hello,
    I have to maintain a SharePoint 2010 project, in which a TopNavigation User Control for SiteCollection is registered in the MasterPage in this way:
    <%@ Register TagPrefix="ABC" TagName="TopNavigation" src="~/_layouts/ABCApplication/MainSite/Navigation/TopNavigation.ascx" %>
    <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
                                        <ABC:TopNavigation ID="TopNavi" XMLDataLocation="/_layouts/ABCApplicatopm/MainSite/TopNavigation.xml" IsRoot="true"
    runat="server" />
    </asp:ContentPlaceHolder>
    </asp:ContentPlaceHolder>
    When I deploy the SiteCollection, the TopNavigation user control is working correctly. Unfortunately when i modify the masterpage over SharePoint Designer, the following error message comes allways, regardless of the art of changes i did in the MAsterPage
    ( even if I open the MasterPage, add an space and do save/close the MasterPage).
    "Problem when adding user control in my custom master page, Parser Error Message: The referenced file '/_layouts/Navigation/TopNavigation.ascx' is not allowed on this page."
    Any ideas?

    Hi Simon,
     When we use UserControl in SharePoint Page or MasterPage, and the UserControl is kept in any folder other than ControlTemplates, we will got the error. Here is an article about this issue and provided the solution:
    http://sharepoint-tina.blogspot.com/2009/07/referenced-file-pathxyzascx-is-not.html 
    The solution can also be used in SharePoint 2010.
    Qiao Wei
    TechNet Community Support

  • User control to masterpage in sitedefintion

    Hi,
    I would like to add a usercontrol to my masterpage present in solution which has the site definition. The links on internet show only about creating a basic solution which contains only usercontrol , then signing it and putting safe control attribute and deploying
    and after that adding it on masterpage in designer. But in my solution, where the usercontrol will be a part of another project in the solution,
    1) how do I go about doing this ?
    2) Is using Modules item a preferred way to deploy this or using mapped control template folder better?

    You can build the user control and add the reference to your master page.
    SP2013:
    Adding a custom usercontrol to masterpage using Design Manager
    also refer these links
    OTB
    Delegate controls and Content Placeholders in SharePoint 2013 Publishing Master Page
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • User Control in Sandboxed Solutions

    Is it possible to create user controls in sand boxed solutions like we do in farm solutions by adding  user control under control templates folder in our code solution??

    Application pages, mobile pages, and user controls (.ascx files) cannot be deployed in a sandboxed solution
    http://msdn.microsoft.com/en-us/library/office/gg615454%28v=office.14%29.aspx
    http://technet.microsoft.com/en-in/library/ee721992%28v=office.14%29.aspx
    You can plan to localize these solutions
    http://msdn.microsoft.com/en-us/library/office/gg615460%28v=office.14%29.aspx

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • The newest version of iTunes is awful when it comes to Cloud syncing-file management. I'm constantly frustrated with what iTunes 'chooses to eliminate from my mobile device and settings aren't fine-grained enough to allow for real user control.

    I'm endlessly frustrated with iTunes Cloud syncing, something that was supposed to make lenjoying my music easier. I routinely find that, though itunes and podcasts have been split, iTunes arbitrairily removes music files or in progress podcast in favor of 'new' podcasts. The settings are just not fine-grained enough to allow true user control and so we are instead subjected to 'Apple knows best' protocols. I understand and appreciate the level of exacting control Apple excercises over their ecosystem, however, more and more often I see them tightening control over things that should be user control while dropping the ball on aesthetic desisions made in producing their own software (see the hideous pull down tab for iTunes to access Podcast, TV shows, Music, etc.
    I would like to see features like those in Mail and the Podcasting apps implemented in iTunes afor the management of content on mobile devices, for instance it would be great to swipe to delete files that you know longer want on your device, at both the album and song level. Another issues is the new pushiness of iRadio and iTunes Store, the app now seems to default to the iRadio page (versus the last page Albums, songs, etc. that the user was navigating, or in the instance of the iTunes Store push, if I doon't have all the tracks of an album i own on my mobile device 'complete my album' takes you to iTunes store rather than showing the 'cloud' download icon next to missing tracks. These are the tactics I expect from Google, not Apple (pushing commerce over quality user experience).
    Fix these things Apple, please.

  • How to show the text in a textBlock in my user control?

    in my UC i have a textBlock . the text that i put through the xaml or the text that i put through the C# doesn't show:
    <local1:Cell x:Class="UserControls.HintCell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local1="clr-namespace:UserControls"
    mc:Ignorable="d" d:DesignHeight="130" d:DesignWidth="130" Loaded="UserControl_Loaded" >
    <Grid x:Name="hintGrid" MouseLeave="hintGrid_MouseLeave">
    <Grid x:Name="topTriangle" x:FieldModifier="public">
    <Polygon Name="triangle_top" Points="0,0 130,0, 130,130" Stroke="Black" Fill="Red" MouseEnter="triangle_MouseEnter" MouseLeave="triangle_MouseLeave" />
    <TextBlock Name="text_top" Margin="82,20,20,76" FontSize="25" Text="55" Foreground="Black" x:FieldModifier="public"/>
    </Grid>
    <Grid x:Name="bottomTriangle" x:FieldModifier="public">
    <Polygon Name="triangle_bottom" Points="0,0 130,130, 0,130" Stroke="Black" Fill="Red" MouseEnter="triangle_MouseEnter" MouseLeave="triangle_MouseLeave"/>
    <TextBlock Name="text_bottom" Margin="15,80,77,16" FontSize="25" Text="88" x:FieldModifier="public" />
    </Grid>
    </Grid>
    </local1:Cell>
    and the designer:
    but, when debugging the text doesn't show:
    i was told maybe to define the user control or the  text as a dependency property, i don't know how to do it and maybe someone has a better solution?
    thanks.

    thanks. but i didn't really understand, maybe you can give an example with my parameters?
    The text dependency property is called LabelFor.
    It's this bit.
    public string LabelFor
    get { return (string)GetValue(LabelForProperty); }
    set { SetValue(LabelForProperty, value); }
    public static readonly DependencyProperty LabelForProperty = DependencyProperty.RegisterAttached(
    "LabelFor",
    typeof(string),
    typeof(EditRow));
    You would substitute the name of your usercontrol for EditRow when you cut and paste that into it.
    There is a style which defines what EditRow looks like by giving it a template.
    <Style TargetType="{x:Type local:EditRow}">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type local:EditRow}">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="{Binding RelativeSource={
    RelativeSource FindAncestor,
    AncestorType=local:EditRow},
    Path=LabelWidth, TargetNullValue=2*}"/>
    <ColumnDefinition Width="{Binding RelativeSource={
    RelativeSource FindAncestor,
    AncestorType=local:EditRow},
    Path=PropertyWidth, TargetNullValue=3*}"/>
    </Grid.ColumnDefinitions>
    <TextBlock Text="{Binding RelativeSource={
    RelativeSource FindAncestor,
    AncestorType=local:EditRow},
    Path=LabelFor}"
    HorizontalAlignment="Right"
    Margin="0,4,0,0"/>
    <Border Margin="6,2,6,2" Padding="0,2,0,2" Grid.Column="1" >
    <ContentPresenter HorizontalAlignment="Stretch"/>
    </Border>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    That uses binding to give the textblock text property the value of LabelFor.
    You could instead put your markup directly in your usercontrol and bind it like that.
    This bit would then pretty much cut and paste in
    <TextBlock Text="{Binding RelativeSource={
    RelativeSource FindAncestor,
    AncestorType=local:EditRow},
    Path=LabelFor}"
    You would need two of course if you have two textblocks.
    ps
    People have suggested dependency property to you because this is how properties on wpf controls work.  
    If you instead chose to use properties then you lose the ability to set value by style, animation, binding etc Your usercontrol will not behave like a wpf control.  This might not really concern you if you're just working on your own on an app.
    It would if you were working in a team though.
    Personally, I would reject code which exposed regular properties from a usercontrol at walk through.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How to Add a User Control to a SharePoint 2013 Visual Web Part ?

    Hi,
    1.I have created SharePoint 2013 Farm Solution through VS 2012.
    2.Added visual Web part
    3.Created a User control (Farm Solution ) and added some Control From tool Box.
    4.Drag and drop user control from solution explorer to visual web part.
    so its  Register tag and with prefix tag user controls automatically added on visual web part source. when i try to build solution it throws Exception:
    Exception :The name 'InitializeControl' does not exist in the current context.
    Please Provide solution after try/or proper workaround.
    Thanks,
    Siddheshwar

    Site name=http://sitename:22222/
    Visual Web part:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Src="~/_controltemplates/15/SP2013Controls/SPControls.ascx" TagPrefix="uc1" TagName="SPControls" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPWebpart.ascx.cs" Inherits="SP2013Controls.SPWebpart.SPWebpart" %>
    <uc1:SPControls runat="server" id="SPControls" />
    User Control Code:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPControls.ascx.cs" Inherits="SP2013Controls.ControlTemplates.SP2013Controls.SPControls" %>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="Button" />
    Deployement Location:{SharePointRoot}\Template\ControlTemplates\SP2013Controls\
    After User controls added on webpart .g.cs file getting blank.
    After 1st Build:
    'InitializeControl' does not exist in the current context
    The file '/_controltemplates/15/SP2013Controls/SPControls.ascx' does not exist.
    after 2nd Build Try:
    'InitializeControl' does not exist in the current context

  • Is there any user control on the iphone anymore?

    Ok so I hate the new OS 7 but before you write me off as just complaining please read further:
    I have a very hard time reading the phone because of the white backgrounds on everything , I understand some like this. Is there any way to change this?
    I also can't read my text very well because of the white on green text bubbles ... Any way to change this?
    Can someone please tell me what apple really did to enhance the user experience? And what is an important feature they have added to the new OS that really stands out over the 6 aside from the horrible layout change? I read what they said the new features were and I didn't see anything that wasn't just a cheap trick. Maybe someone can show me something that will revive some bit of like into the phone again?
    But back to the settings change. I went to accessibility and upped the contrast and bolt text but that only helps slightly . I inverted the colors and thought awesome but then realized it inverts everything so that won't work. I could deal with black back grounds on everything .
    Any help please ? I'm not made of money so I'm stuck with the 5 for a few weeks at least. Every time I use the phone it angers me so it's not a very pleasant experience !!!
    Some people really have issues with the eyes and I just want to have a little control over the look of the phone. Really not digging the way it's swiped to delete now and the way they have the search and control panel I can't get a good swipe on those to save my life. Hate is a good word right now.

    Those minimal changes do nothing that I asked. I'm not sure why you linked that. I have read the very simplistic, almost null, options of the ios7 . I appreciate the attempt to help. It seems that the answer is NO, there is no user control over the new layout.
    My ultimate answer to gaining user control over their phone is to sell the iPhone and buy a galaxy .
    <Edited By Host>

  • I cannot get a WindowsForms user control hosted in WPF/C# to show() PDF please help

    I have a WPF C# .NET 4.0. solution in VS2010 on Windows 7.   It contains a WPF hosting project and a WindowsFormsControl project where I've created a UserControl that should display an Acrobat CAcroAVDoc object from the Interop.Acrobat SDK com object (latest).
    The WPF Project contains this code to open a file which actually creates a new WindowsFormsUserControl (PDFViewerControl) that in turns opens the file, the UserControl is then added to a WindowsFormHost object in WPF main form.
    private void OpenFile(FileItem file)
    if (file.Extension.ToLower() == ".pdf")
      System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();
      WindowsFormsControls.PDFViewerControl viewer = new WindowsFormsControls.PDFViewerControl();
      viewer.Show();
      Boolean result = viewer.OpenFile(file.Path);
      if (!result)
       MessageBox.Show("Error opening document");
      host.Child = viewer;
      this.pdfViewWpf.Children.Add(host);
      viewer.Show();
    The PDFViewerControl OpenFile method contains this code and returns True when opening a PDF document via OpenInWindowEx.
    public Boolean OpenFile(String filename)
    CAcroAVDoc doc = Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AVDoc")) as CAcroAVDoc;
    bool res = doc.OpenInWindowEx(filename, this.Handle.ToInt32(), 2, 1, 0, (short)Acrobat.PDViewMode.PDUseBookmarks, (short)Acrobat.AVZoomType.AVZoomFitWidth, 0, 0, 0);
    return res;
    Unfortunately though the PDF cannot be seen in WPF Host object.  If I place a LABEL on the windows forms user control, the label will show in WPF.  It seems the OpenInWindowEx is not loading a PDF object onto the user control.  Perhaps I need a resize method and event?
    I cannot locate any object on the PDFViewerControl user control that resembles a PDF document through debug.
    Any help/pointers much appreciated.
    this.Handle.ToInt32() does have a seemingly valid value (ie window handle).
    this.pdfViewWpf is a XAML <Grid>
    Dominic

    On further testing, I found the above code does actually work, BUT the HOST or the VIEWER or the DOC object disappear after the routine is finished.  I placed a label on the UserControl and noticed a flicker on the crseen draw which I capture on camtasia the result can be viewed here.  http://www.screencast.com/t/Z49gUTb3Xt
    Given the label is still around after the file open routine completes suggests the HOST and VIEWER objects are still exposed, just the DOC object resizes to zero height and width or just plain gone.
    Without the Label, same result.
    Any thoughts on how to retain the display of the CAcroAVDoc object would be much appreciated.

  • User Control screwed up but unable to click on icons with Mouse on OSX 10.8

    I dont know what has happened, but today user control with mouse and trackpad on my macbookpro is screwed up.
    I rebooted twice, it made no difference.
    The trackpad moves the cursor okay, but I cannot get tapping or clicking the trackpad have any effect.
    With my mouse I can access menubars, but the left and right buttons are swapped round, or it might be that the right button is acting as both left and right button.
    I then went to the System Preferences screen to try and fix the mouse preferences, but clicking on any icon with left or right button has no effect.
    I then found no icons of that type seem to work, I thought Id try and just update OSX with any updates available hoping that would fix anything that has got corrupted. But although I can get to the Appstore Update screen and there are two updates available I cannot get the updates installed. Clicking with the left button does nothing, clicking with right button changes the colour of the button slightly so the bottom half is in gray but nothing else happens.
    As there is no menu option to install the updates I thought I tried and install the updates using the keyboard but I cannot work out how to do this.
    Does this sound like a hardware or software problem
    Help Please !

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to create a cluster with a User control (.ctl) programatically using VI scripting?

    Solved!
    Go to Solution.

    It seems that you hit the Post button before you had a chance to use the body of the message to give more detail on what you are trying to do.
    Perhaps you can post whatever VI you have so far and also the user control you are trying to use.

Maybe you are looking for

  • MBP 15' 2011 Mini display port to LED monitor/TV resolution issue

    Hello, I have just bought  a Mini Display - VGA adaptor which I am plugging to a Samsung 23' LED monitor via a VGA/DVI adaptor. I manage to get a clone view but unfortunately, the maximum resolution offered is 1650x1050 when my Samsung LED monitor ha

  • Connecting a Vista notebook to an iMac using airportcard

    I have an iMac running Tiger with an airport card installed. This is connected to the internet with an ethernat cable. Until recently, my wife had an iBook with airport card and was able to connect wirelessly to my iMac to print, share files and conn

  • Javascript/HTML question

    I've been teaching myself Java on and off for the past couple years with the help of these forums and other tutorials. Now I've decided to take on a project that requires the use of HTML and Javascript and I can't seem to find the information I need.

  • It is possible to add a defined sized Digital Signature field at a certain location on the document using the Adobe SDK?

    I have a need to create a Digital Signature field of the same size, in the same location, on many PDF documents over and over.  I would like to do this automagically through the Adobe SDK if that is possible.  Has anyone done something like this befo

  • Last Char on a line

    I have a file that cat -e shows that the last char of each line is M-J. (" Non-ASCII characters (with the high bit set) are printed as `M-' (for meta) followed by the character for the low 7 bits.) Now, I can remove this with sed 's/.$//' but, what i