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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:26:54+00:00 2026-05-11T00:26:54+00:00

This issue is driving me mad. I have several tables defined, and CRUD stored

  • 0

This issue is driving me mad.

I have several tables defined, and CRUD stored procs for those tables. I have wired up the stored procs to the tables in Visual Studio using the dbml mapper.

All work fine, except for one table. The insert stored proc is not being hit for my history table.

The insert property in the table in the dbml mapper is:

usp_HistoryInsert (ByRef historyID As System.Int32, changeRequestID As System.Int32, statusID As System.Int32, userID As System.Int32, emailSent As System.Boolean, historyDate As System.DateTime, remarks As System.String, statusChanged As System.Boolean) 

I am attempting to hit it with the following code:

    ' create new history entry     h1.ChangeRequestID = ChangeID     h1.UserID = Session('UserID')     h1.HistoryDate = DateTime.Now     h1.StatusChanged = ActionID     h1.Remarks = RichTextEditor1.Text     h1.EmailSent = True     h1.StatusID = ActionID      db.Histories.InsertOnSubmit(h1)     db.SubmitChanges() 

Using the profiler, I can see the stored proc is not being hit. I renamed the stored proc in the database (in an attempt to generate an exception), just to double check.

If I try to manually hit the stored proc (as follows), it works fine!

db.usp_HistoryInsert(0, h1.ChangeRequestID, h1.StatusID, h1.UserID, h1.EmailSent, h1.HistoryDate, h1.Remarks, h1.StatusChanged) 

Has anyone come across this issue before?

FIXED! see answer below. Can someone please close this?

  • 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. 2026-05-11T00:26:54+00:00Added an answer on May 11, 2026 at 12:26 am

    Ok, this is unbelievable but… the app already had a page called history.aspx. VB defaulted to the history class for that page, rather than the db.History class used by LinQ.

    Once I renamed history.aspx, everything worked! 🙂

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

Sidebar

Related Questions

I have been having an issue with Visual Studio 2010 that is driving me
I currently have my head wrapped around this issue - its driving me crazy.
Im a little new to this, and this one issue is driving me mad..
This issue is driving me crazy. I have a WCF service that uses a
First off, thanks in advance for your help. This issue is driving me nuts.
so I am having this issue that has been driving me crazy for hours,
Note: This issue appears to be limited to SQL Server 2005 SP2 I have
This issue/quirk/side-effect is driving me crazy. Near the bottom the code, the response code
I am facing an issue that is driving me insane. I have one and
Ok, I have an issue that is driving me nuts. In certain xaml files

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.