App.config troubles RRS feed

  • Question

  • User-1602017767 posted

    Hi there,

     I'm having a few troubles with an application for work. It's been wrote in VB.NET and within the application there is a app.config. We used to have the vaules encrypted within here which was fine it all worked but we want to strip out the encryption as there is no point (or so I thought). Basically one of the lines reads


    <add name="query" value="(&(objectClass=user)(objectCategory=person)(|(cn=C*)(cn=N*)(cn=7*)(cn=V*)(cn=W*)(cn=_sup_*))(!(objectClass=computer))(sn=*)(givenName=*)(userAccountControl=512))" />

     Which is correct but....I'm getting an error within te GUI underlining &(objectClass stating expected ;

     Any ideas how to get around this? I'm confused why this is happenening as everything is within the " ". which I thought was absolute in VB.

    Thursday, May 1, 2008 5:02 AM


  • User-647234374 posted

    app.config is an xml file. It expects the ampersand to be &amp; 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 1, 2008 8:25 PM