Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
W

Wolfram Steinke

@Wolfram Steinke
About
Posts
146
Topics
82
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Does anyone know about certificates and windows services?
    W Wolfram Steinke

    I have an application that must sign SOAP requests with a certificate. As a console app it all works really well. I discovered early on the for windows services the certificates must be installed in the local computer store and not the current user store. So that is where they are. The problem is that when the app is running as a service the private keys are not being loaded and hence I get a nasty exception and nothing works. I have done all the usual things and checked permissions etc. Every user on the computer supposedly has full access. Where to look now? I hope someone has the answer.

    Happy programming!!

    The Lounge wcf cryptography xml help question

  • Explain to me about C# and X509 certificates.
    W Wolfram Steinke

    To many of you who have been dealing with the ins and outs of certificates for some time you will probably consider this rather mundane question. Initially I didn't think it to be a complex issue either, but recent events, or the people I've had to deal with made it very frustrating to say the least. When I wish to load a certificate, in my application, that needs to be used for a secure communications I call the follow function: certStore.Certificates.Find(X509FindType.FindByThumbprint, _thumbprint, true); Can someone please explain the flow of what happens when the last parameter is set to true and if it is set to false. Why would it work when set to false and not when it is set to true? It has something to do with CA certificates, but what exactly? When true does it actually go off to an external server for the validation or does it all happen locally? The reason I ask is because I've been getting conflicting information and I'd like a better understanding. Hoping someone can assist me.

    Happy programming!!

    The Lounge question csharp sysadmin cryptography help

  • VS2008 deployment not creating directories
    W Wolfram Steinke

    I am updating an old project developed with VS2008, and as part of the deployment it needs to create a directory in the root of C: and a number of subdirectories. The top level of these directories gets created in the [Targetdir] and the subdirectories in the root of C: Does anyone know way to fix this without going to Installshield? It must be possible although I can't see too many options to choose from.

    Happy programming!!

    C# sysadmin help question

  • Accessing Certificates in a windows service
    W Wolfram Steinke

    I need to be able to access a number of certificates in a windows service. The code works fine in a console app, but from a service it can't find the certificate. Is there a special way to install them and open them or both? Any help would be much appreciated.

    Happy programming!!

    C# cryptography help question

  • Window 7 and WebClient Class
    W Wolfram Steinke

    From what I have tracked down, the exception doesn't occur because the 'old' file is actually being served up. It seems that the BranchCache service is being over kind to us and even ignoring the noCacheNoStore request. I shall confirm or otherwise on Tuesday when I'm back at work.

    Happy programming!!

    C# sysadmin announcement xml help

  • Window 7 and WebClient Class
    W Wolfram Steinke

    I have come across problem for which I'm looking for permanent solution. Some software I'm working needs to have a version checking mechanism for update checking and disabling the installed version if necessary. It was decided to that a server be provided from which a small encrypted xml file is downloaded and checked. I thought, "not too complex with Webclient", simply download the file decrypt and check it and then delete it. If an Exception then status is Unverified. Works file on XP machines when the file is removed from the server the exception happens like expected. On the Windows 7 machine however it continues to succeed and even when the network is disconnected. NO exception is raised. I even took out the try/catch to confirm that - NO crash. If set

    client.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);

    just incase, because I wanted to ensure the file was downloaded every time. It is still coming from somewhere. I'm confused!!!!! If anyone has an idea about this I would be interested in knowing about it.

    Happy programming!!

    C# sysadmin announcement xml help

  • C#/OpenXML to manipulate Word files.
    W Wolfram Steinke

    A breif outline of what I need to is generated a Word Document (2003 format) by appending a series on single (A5) Word Document templates files. 1. Load the Word template 2. Do a number of search/replace operation (driven by data from another file) 3. Insert at the end of the previous document 4. repeat till last file. Using word interop is dreadfully slow this and takes at least an hour for 20 pages. So I am considering converting the templates to XML and using OpenXML to do the above. The search/replace could then even be done by treating the XML file in plain text format. What I can't find is info on how I can then insert one XML file at a bookmark in the previous and of course still have a valid Word XML doco at the finish. Someone must have done something like this before. Thanking you in advance.

    Happy programming!!

    C# csharp wpf com xml learning

  • XAML error message but it works. How can I fix it?
    W Wolfram Steinke

    I’m trying to load a combobox from an XML file. There isn’t however a direct 1:1 relation between the structure of the file and the list item. I therefore have the following code snippets. XAML

    <Window.Resources>
        <ObjectDataProvider MethodName="GetConnectionAccountNames"
                            ObjectType="{x:Type gui:ConnectionAccountHelper}"
                            x:Key="connectionAccount">
        <!--
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="Format" />
            </ObjectDataProvider.MethodParameters>
        -->
        </ObjectDataProvider>
    </Window.Resources>
    

    The combobox (which actually sits in an Infragistics Ribbon Control)

    <igRibbon:ComboEditorTool
    Id="ktsConnections"
    x:Name="connectionsCombo"
    DropDownResizeMode="VerticalOnly"
    IsEditable="False"
    EditAreaWidth="150.0"
    ItemsSource="{Binding Source={StaticResource connectionAccount}}">
    </igRibbon:ComboEditorTool>

    The work is of course done in the method in the helper class

        public static IEnumerable<string> GetConnectionAccountNames()
        {
            Dictionary<string, ConnectionAccount> accounts = HelperItems.GetSavedConnectionAccounts();
            foreach (ConnectionAccount a in accounts.Values)
            {
                yield return a.Uri + ":" + a.PortDebug;
            }
        }
    

    As far it goes it does actually build and work and give me the result I want. Only one thing I can’t explain. The designer will no longer display the window because it detects the following error on the ItemsSource="{Binding line. Could not find a part of the path 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Resources\ConnectionAccounts.xml'. The last part of the path is actually the path relative to the EXE’s location, where for the XML file. I’m at a loss as to how to get rid of that error. Does anyone have an idea? It makes no sense to me. Thanks in advance.

    Happy programming!!

    WCF and WF visual-studio wpf help question csharp

  • Excel file format saving as XMLSpreadsheet [modified]
    W Wolfram Steinke

    I'd like to use that line in my in my app, however EXcel give an exception if I specify a fileformat other then missing.

    Happy programming!!

    C# help xml

  • Binding images to an ImageButton at runtime
    W Wolfram Steinke

    Thanks for your assistance. There are heaps of examples that load images from embedded resources for sure. So far I have found only one that half works the way I need it to work.

    Happy programming!!

    WPF wpf csharp wcf hardware help

  • Binding images to an ImageButton at runtime
    W Wolfram Steinke

    How does one go about putting it on the button? It must be possible but documentation on this topic worse than ever and impossible to find.

    Happy programming!!

    WPF wpf csharp wcf hardware help

  • Binding images to an ImageButton at runtime
    W Wolfram Steinke

    I'm finally getting a chance to work with WPF. Making a Button with an Image on it is no problem as long as I don't mind embedding the image in the resource. What can't get working is to have it load the image from file in a subfolder under the Application at runtime. I don't want it in the embedded resources. Any ideas? It must be possible to do.

    Happy programming!!

    WPF wpf csharp wcf hardware help

  • Looking for an Installshield Guru
    W Wolfram Steinke

    I have been given the task to work out how to get Installshield to uninstall an instance of SQLexpress when our app is uninstalled. It was installed along with our app as a prerequisit with a silent install command line. I'm at a loss as to where/how to add the script to achieve this. I know I can get a script to call UninstallApplication, but how do I get it ad that to the uninstall script? Any assistance would be most welcome.

    Happy programming!!

    IT & Infrastructure question tools tutorial

  • Question for someone with InstallShield 2008
    W Wolfram Steinke

    That's the sort of thing I had in mind. I'm just having a problem finding the place in InstallShield where one sets that up.

    Happy programming!!

    IT & Infrastructure windows-admin help tutorial question announcement

  • Question for someone with InstallShield 2008
    W Wolfram Steinke

    I'm using InstallShield 2008 to produce an MSI project for installing and application. While the app is in use a number of things are add to the registry. What I need to do during an uninstall 1. determing wheather it is an uninstall or update 2. if it's an update popup a dialog to give the user a choice of keeping the settings or removing the registry. During a full uninstall the registry will be removed. I'm have problems finding out how to implement this process. (Complete removal always is no problem. Always leaving it is no problem.) Removing in one instance and not the other I can work out how to do. Any suggested solution would be most gratefully received.

    Happy programming!!

    IT & Infrastructure windows-admin help tutorial question announcement

  • Loading .Net DLL in MFC application problem
    W Wolfram Steinke

    Now that I have much finally building and running correctly, can you point me to an article or make a suggestion on how I can get error information when the .NET code throws an exception. try { CallToDotNetCode(); } catch(...) { // Do something here } This works fine in as much as catching the exception and I can return a value to indicate something has gone wrong. However I would like to extract the reason for the exception. If I put any sort of parameter into catch it stops working, so there must be another way of doing this which works reliably.

    Happy programming!!

    C / C++ / MFC c++ help csharp debugging

  • Loading .Net DLL in MFC application problem
    W Wolfram Steinke

    Something else I have observed that confuses me is when I select the mixed mode dll as a dependency in the MFC dll it's lib is automatically added to the linker command line. However once I selected /clr on the mixed mode dll that command line entry is automatically removed and causes unresolved externals. In the MS sample this does not seem to be case. I'm therefore thinking that my problems are to do with compiler/linker settings. If I start with the mixed mode dll as a pure MFC extension it works fine both implicit and explicitly linked at runtime. as soon as I add the /clr flag the problems start, before I even add the .NET dll to the references.

    Happy programming!!

    C / C++ / MFC c++ help csharp debugging

  • Loading .Net DLL in MFC application problem
    W Wolfram Steinke

    Yes it's the mixed mode dll I'm getting something wrong in. No there is an MFC dll accesing the Mixed mode dll which in turn accesses the .NET assembly.

    Happy programming!!

    C / C++ / MFC c++ help csharp debugging

  • Loading .Net DLL in MFC application problem
    W Wolfram Steinke

    That's interesting, cause the Microsoft example generates a lib for ".NET/MFC interface" Dll and links with it. The interface Dll uses the namespace for the .NET, yes, and that part works when I add it to the Microsoft sample. That Dll (Which is an MCF extension) then exports a C/C++ function which accesses the .NET dll. The error I'm getting now seems to be to with initialization when the dll is being loaded. It is trying to initialize both the managed and unmanaged code at the same time, and this is apparently a no-no. How can I get around this? It's much work to work to rewrite the umpteen other files in the solution.

    Happy programming!!

    C / C++ / MFC c++ help csharp debugging

  • Loading .Net DLL in MFC application problem
    W Wolfram Steinke

    I have been given a .NET Dll which I have to intergrate into and MFC solution. It sort of worked when I added it to Microsoft sample MFC04.exe sample, and imported it into one of it's Dlls. It gave a problem with passing strings to the MFC code but that should be easy to overcome. Creating a new project in the existing solution with the same settings first gave build error with unresolved external (the lib file never was built). Finally it builds but at runtime I get this: Debugger:: An unhandled non-continuable exception was thrown during process load The program '[2436] AppMgr.exe: Native' has exited with code -1073741511 (0xc0000139). Any assistance, suggestions to get round this would be most welcome.

    Happy programming!!

    C / C++ / MFC c++ help csharp debugging
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups