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 929205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:07:53+00:00 2026-05-15T20:07:53+00:00

Dim id as integer = 1 Dim command as sqlcommand Dim reader as idatareader

  • 0
Dim id as integer = 1
Dim command as sqlcommand
Dim reader as idatareader

command = db.GetSqlStringCommand("select id, image, caption from profile where id = @id and image IS NOT NULL Order By NEWID()")
db.AddInParameter(command, "@id", DbType.Int32, id)
reader = db.ExecuteReader(Command)

The code is throwing an error I’ve never seen before….

SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name “/port:4544 /path:”C:\sitepath” /vpath:”/sitepath””, incorrect usage of quotes.

How do I fix that error.

  • 1 1 Answer
  • 1 View
  • 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-15T20:07:54+00:00Added an answer on May 15, 2026 at 8:07 pm

    It looks like the code is failing at a deeper level than the code you have posted. I have received a similar error from within SQLServer Management Studio when I have not correctly defined the path to my DB.
    How are you setting up the object ‘db’?

    What is your connection string? (Without password! :-))

    The error is obviously related the badly formed string in terms of the quote positions. Do you know where entlib is constructing this string and how parts of it such as “C:\sitepath” are appearing with quotes as opposed to being appended as string literals?

    I wonder if somewhere there is a declaration such as

    Dim sRootPath As String = """C:\sitepath"""
    

    ..which is leading to the quotes being inserted into the constructed string.

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

Sidebar

Related Questions

In my codebehind I have this vb: Dim reader as idatareader = includes.SelectDepartmentID(PageID) While
Public Shared Function GetData(ByVal id As Integer) As List(Of SomeClass) Dim command As New
Private Sub Command1_Click() Dim x As Integer For x = 1 To 100 List1.AddItem
Using VB6 Code. Dim posn As Integer, i As Integer Dim fName As String
Dim i as integer For i = 0 to 365 sqlinsert.InsertCommand=insert into cashdate (date)
Console application: Dim myno As Integer = 1010 Console.WriteLine(Convert.ToString(myno)) Dim sw As New StreamWriter(filename.txt,
For example Dim aInt as Integer should have the value as nothing instead of
Public Sub textcolorchanged() Dim searchword As String = RichTextBox2.Text.ToString.Trim Dim index1 As Integer =
I have the following code in vb6 - dim iFreeFile as integer iFreeFile =
Public extreme_foods As New System.Collections.ArrayList() Dim i As Integer i = 1 For Each

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.