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
R

Roland Bar

@Roland Bar
About
Posts
181
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WMI and SNMP
    R Roland Bar

    Hi I am looking for a solution to have self-written services supervised by a Network Management System using SNMP. From the second picture in the Article A simple guide to WMI providers it should be possible to use the WMI mechnism inside the services and expose the data through the SNMP service. But I din't find any useful ressource in the web. All I found were describing the SNMP Provider to access devices with a running SNMP agents. Can you give me some useful ressources about exposing the data through the SNMP service? Maybe you've done it already and can give me an example? Or is it not possible? Thanks for your help! Greetings Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# tutorial php database com sysadmin

  • XML Serialization of derived classes
    R Roland Bar

    Hi I wanted to ask if it is possible to do something like this and how to do it: I would like to have a xml structure like this:

    <root>
    <collection>
    <element />
    <element attribute="value" />
    <element />
    </collection>
    <something />
    <somethingother />
    </root>

    The elements in the collection should be of the type ElementBase if the attribute is not set or of the type ElementDerived if the attribute is set to a value (the second element). So the Deserialized collection should be something like: List<ElementBase> collection = new List<ElementBase>() { new ElementBase(), new ElementDerived(), new ElementBase() }; ElementDerived would be derived from ElementBase:

    class ElementDerived : ElementBase {}

    I hope my question is described clearly. Thanks for your help :rose: Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# question php database com xml

  • sp_helpsubscriberinfo returns empty table on MS SQL 2008
    R Roland Bar

    In my Application I use the stored procedure sp_helpsubscriberinfo. On a Microsoft SQL Server 2000 this works as it should. But on a SQL Server 2008 it returns me an empty table. This happens also through the SQL Server Management Studio, so it is no error in my Application. Has anything chaged in accessing/using this stored procedure? [Update] The return code of sp_helpsubscriberinfo is 0, means no error. The stored procedure sp_helpmergesubscription returns a non-empty table with the same user account. [/Update] Thanks for your help! Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    Database database help php sharepoint sql-server

  • system table sysmergesubscriptions: replacements for distributor and srvid
    R Roland Bar

    Hi The system table sysmergesubscriptions has changed from SQL Server 2000 to SQL Server 2005. The columns distributor and srvid are no more available. I have a stored procedure that used this columns that is not working when it should be used on an SQL Server 2005 or 2008. Are there any replacements for this columns and is it possible to use them also on SQL Server 2000? Here is the query that uses this columns:

    DECLARE repl_cur CURSOR FOR
    SELECT
    mp.name,
    me.srvname,
    mp.publisher,
    mp.publisher_db,
    ms.db_name,
    ms.subscription_type,
    ms.distributor
    FROM
    sysmergepublications mp
    INNER JOIN
    sysmergesubscriptions ms
    ON ms.pubid = mp.pubid
    INNER JOIN
    master.dbo.sysservers me
    ON ms.srvid = me.srvid
    INNER JOIN
    sysmergearticles ma
    ON ma.pubid = ms.pubid
    WHERE
    ma.name = 'PasswordCounter'
    AND ms.subscription_type = 1

    Thanks for your help Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    Database database php sql-server com sysadmin

  • DefaultValue in DataObject used in Webservice [modified]
    R Roland Bar

    Hi we have a data object that is used in WindowsForm applications and should now be used also in a webservice. The data object has fields that have the attribute DefaultValue. With this attribute, accessing the web service fails with an error. Without the attribute it works. This is the code (example code that causes the same problem):

    using System;
    using System.Web;
    using System.Web.Services;
    using System.Web.Services.Protocols;

    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class Service : System.Web.Services.WebService
    {
    public Service ()
    {
    }

    \[WebMethod\]
    public Foo Test1(Foo foo) 
    {
        return foo;
    }
    

    }

    public class Foo
    {
    private char bar;

    \[System.ComponentModel.DefaultValue(',')\]
    public char Bar
    {
        get { return bar; }
        set { bar = value; }
    }
    

    }

    And this is the error: Server Error in '/TestWebService1' Application. -------------------------------------------------------------------------------- The default value type, System.Char, is unsupported. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Exception: The default value type, System.Char, is unsupported. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. How can I fix this without removing the attrribute, as it is used for changing the properties of a Control that is using this data object in the Visual Studio. Thanks and greets Roland Additional Note: The XmlIgnore attribute should not be used as it should be still serializable to an xml file.


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    modified on Thursday, February 5, 2009 8:26 AM

    Web Development help question csharp php database

  • Object of type 'A' cannot be converted to type 'A' with own Control.
    R Roland Bar

    Thank you very much! Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# help php database com question

  • Object of type 'A' cannot be converted to type 'A' with own Control.
    R Roland Bar

    Hello, I have here and than the following Problem: I have a self-made control in a library that I use in my application. After a while the designer tells me, when I want to open the Form containing the Control, that he cannot convert type 'A' to type 'A', where 'A' is a own class that contains Data that can be changed with the control. In the InitializeComponent() of the Form there is the call this.theControl.TheA = ((A)(resources.GetObject("theControl.TheA"))); that I think causes the Problem. As with this the Data is serialized and deserialized, I believe that after changing the library that contains the control this serialize does not work in the same way (maybe the assembly version number is included?). Is there a way to take control over the storing of complex data to not have it serialized in the .resx file? Thanks for your help. Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# help php database com question

  • [Serializable] for class inside class
    R Roland Bar

    OK, found the Problem: My class contains an IPAddress that can not be serialized by the XML Serializer because there is no default constructor. I only looked if the Attribute Serializable is set... I tested and saw that with a simple class like the onein my example there is no problem with serializing a class inside a class... Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# help php database com xml

  • [Serializable] for class inside class
    R Roland Bar

    Hi, I have some Problems with Serialization: I have a class B that is inside a class A:

    public class A
    {
        [Serializable]
        public class B
        {
            public int Number;
        }
    }
    

    When I try to serialize/deserialize it with the XML Serializer it does not work. Is it possible to serialize a class that is inside a class (so I have to search the bug elsewhere) or is it impossible (so I have to change the structure of the classes)? Thanks Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# help php database com xml

  • Need some Advice for Job decision
    R Roland Bar

    Chris Losinger wrote:

    as a project manager you probably won't be coding any more

    As a Project Manager I won't be coding any more, only maybe in some special situations.

    Chris Losinger wrote:

    is that what you want ?

    For me coding is not a 'holy cow', but now I don't know for sure that I won't miss it or that I will miss it... Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    The Lounge csharp php database com collaboration

  • Need some Advice for Job decision
    R Roland Bar

    Hi I need some advice to get to a decision: I work now as a C# developer in a middle size (~300 people) company. Now there are two open jobs available: - C# Software Developer and Team Leader - Project Manager What are the questions I should ask myself to get some information, which of these 2 jobs is the right one or should I keep my current one? Thanks for your input Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    The Lounge csharp php database com collaboration

  • record sound on client and transfer to server
    R Roland Bar

    Hi, is it possible to record inside a web application the input from the microphone and send this data to the web server? Maybe with adobe flash or a java applet? Has anybody created something like this? Thanks Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    Web Development adobe java php database com

  • converting string to decimal shows error
    R Roland Bar

    string a = "12.85"; decimal da = System.Convert.ToDecimal(a, System.Globalization.CultureInfo.InvariantCulture); string b = "12,85"; decimal db = System.Convert.ToDecimal(b, new System.Globalization.CultureInfo("de-DE")); hope that helps Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    ASP.NET help

  • converting string to decimal shows error
    R Roland Bar

    FormatException in System.Convert.ToDecimal(String value) means: value does not consist of an optional sign followed by a sequence of digits (zero through nine) and an optional decimal point symbol. Check if: - the String to convert has no invalid chars (letters etc.) - the String has the right delimiter for the used local settings (you can set the Culture with Convert.ToDecimal Method (String, IFormatProvider) ). Maybe just put the string before converting to the trace so you can see the value used (or set a breakpoint). Hope that helps Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    ASP.NET help

  • Include IIS in Windows Service
    R Roland Bar

    Maybe I have to explain a little bit better (or at least I try to...) I have a windows service that starts when the server is started. This windows service does its job in the background, receives data, makes function calls etc. and is allways running as it should. The windows service makes some function calls through web services. Now I want to create a web GUI that shows the state of the windows service, using asp.net, ajax etc. One way to get the data would be to communicate with the windows service through .net remoting. But as the other Interfaces are web services and therefor are easy to call for testing I would like to be able to receive the data from the windows service through a web service interface. But to be able to provide the interface as an web service I need a web server inside my windows service (or at least I think it could work like that). Hope my idea is now clearer. Thanks and Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# csharp php database com windows-admin

  • Include IIS in Windows Service
    R Roland Bar

    Is it possible to include the IIS into a Windows service? I would like to provide from my Windows Service also a Web Service Interface (maybe running on another port) that can use the objects in the Windows Service. I know that I could use .net remoting but I don't want to have another Interface, if it can be avoided. Thanks and Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    C# csharp php database com windows-admin

  • client certificate for all users
    R Roland Bar

    Hi, is it possible tjo install an client certificate in the internet explorer that it is available fo all users? Or do I have to install it for each user again? Thanks for your help Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    Web Development php database com cryptography help

  • Lazy IE
    R Roland Bar

    3. You still work with Windows 2000 :-O Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    The Lounge com sysadmin help question

  • Where to get information about dll source
    R Roland Bar

    Hi Do you have some sources where I can get information about a certain version of a dll that is part of the microsoft products? I know already http://support.microsoft.com/dllhelp/[^], but the updates of the dll's that are from a security update are not included. For example I have on a XP professional system the dll jscript.dll in the version 5.6.0.8825 and on another the version 5.6.0.8831. In dllhelp, the shown versions are .8820 and .8827. I would like to know what patch is needed to get to 8831 or what could have caused that there is still the version 8825. Thanks and greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    The Lounge announcement php database com security

  • Client Certificate without Active Directory
    R Roland Bar

    Hi For a web application that can be used by several customers, one of our customers want, that their users can access the application only from some defined computers. For that we wanted provide to access points to the application: one normal access and one access that requests a client certificate. In the database is a field with a windows username for every customer. If the user accesses the application through the client certificate access the mapped user must be matching the username in the database. The whole application has to be of course secured by SSL and should use a trusted certificate (from verisign or some other trust center). I have been told that, to create Client Certificates on this computer the active directory has to be installed. But I want to avoid to install AD on a Computer that is connected to the internet. Do you have some expirience with Client Certificates and can you acknowledge or disprove the the information about the needed Active Directory? Thank you very much! Greets Roland


    Hi! I'm a signature virus. Copy me into your sig file and help me spread!

    Follow your Euro notes in their tracks

    System Admin database php com windows-admin security
  • Login

  • Don't have an account? Register

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