Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6791243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:49:22+00:00 2026-05-26T17:49:22+00:00

I am running a simple test app that opens an OLEDB connection, retrieves a

  • 0

I am running a simple test app that opens an OLEDB connection, retrieves a single value, then closes. The compiled (console) app works fine, but running it from the IDE causes either a silent close (if it’s a winforms app) or a crash of vshost32.exe if it’s a console app.

The devenv is VB 2010 Express on Windows x64, but I have the configuration manager on the solution set to “Debug” – “x86”.enter image description here

Imports System.Data.OleDb

Module Module1

    Sub Main()
        Dim server As String = "xxxxx"
        Dim username As String = "xxxxx"
        Dim password As String = "xxxxx"
        Dim schema As String = "xxxxx"

        Dim connectionString As String = String.Format( _
            "Provider=SLXOLEDB.1;Data Source={0};Initial Catalog={3};User ID={1};Password={2};Extended Properties=LOG=ON;Connect Timeout=5;", _
            server, username, password, schema)

        Dim con As OleDbConnection = New OleDbConnection(connectionString)
        con.Open()

        Dim query As String = "SELECT USERID FROM USERSECURITY WHERE USERCODE=?"
        Dim cmd As New OleDbCommand(query, con)
        cmd.Parameters.AddWithValue("usercode", username)
        Dim userid As String = cmd.ExecuteScalar.ToString

        Console.WriteLine("UserID is {0}", userid)

        cmd.Parameters.Clear()

        con.Close()
        con = Nothing

    End Sub

End Module
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:49:23+00:00Added an answer on May 26, 2026 at 5:49 pm

    Solution was simple.

    The SalesLogix OLEDB provider works fine, but you can only debug if the IDE is launched with Administrator permissions.

    Some digging around with procmon would probably tell which keys/files are being accessed, but in our case I can just debug with an elevated IDE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The question is simple - we have a sample / test Solr app running
I have a simple test app running on heroku. But there is an issue
I have a very simple test program, running on Solaris 5.8: #include <stdio.h> #include
I've gotten a simple WatiN web test running on my dev environment and am
Is there a simple Web interface to running PHPUnit test suites? i.e. a PHP
Let's say I'm running a simple server and have accept() ed a connection from
I'm building a simple app and trying to test DB result output. But unfortunately
Purpose of the app: A simple app that draws a circle for every touch
I am working on a simple console app to get my feet wet with
I'm part way through building a fairly complex HTML5 web app, that retrieves its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.