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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:37:58+00:00 2026-05-27T01:37:58+00:00

I am having a very strange problem with an ASP.Net project using an Entity

  • 0

I am having a very strange problem with an ASP.Net project using an Entity Layer, a Data Layer and a Service Layer generated using .netTiers 2.3.1. The project runs fine on my machine (32 bit WinXP machine with with IIS 6; this machine is used to compile in for “Any CPU” mode), but when I transfer the compiled project on a Windows 2k8 (64 bit, IIS 7) server, it does not run properly anymore.

I have a page with a FormView to insert a new row in a table which works fine on my machine, but that does not work on the server or on a colleague’s machine running Windows 7 (IIS 7). I used SQL Server profiler to track down the problem, and I can see the insertion query and other queries being sent to the server properly, but the data does not get inserted in the database. It is not there when I look for it. It is as if the transaction would not get committed.

Also, after the insertion, I run more queries in the datasource and the formview OnInserted event handlers. However one of these queries is blocking subsequent queries. If I remove the code initiating the blocking query, them it is simply the next query that becomes the blocking query. As I said, all this is running fine on my machine, and when I transfer the aspx pages and the binaries to the server, it stops running properly. Has anyone ever had such a problem?

UPDATE:It is not a 32 bit vs 64 bit problem but rather an IIS 6 vs IIS 7 problem.

  • 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-27T01:37:59+00:00Added an answer on May 27, 2026 at 1:37 am

    I found out what was wrong. I was missing the following line in the subsection of the section in my Web.config file:

    <add name="MyProject.Web.Data.EntityTransactionModule" type="MyProject.Web.Data.EntityTransactionModule" preCondition="" />
    

    This does not seem to matter when using IIS 6, but it does when using IIS 7.

    Adding the line above can also be done using the IIS 7 interface by going in the Modules section of the Web site, and by clicking on Add Managed Module…

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

Sidebar

Related Questions

I'm having a strange problem with my WCF service that returns data in JSON
I'm having a very difficult and strange problem Authenticating with System.Net.Mail.SMTPClient. I need to
I'm having a very strange problem. I'm using Visual Studio 2010 Ultimate on Windows
Im having a very strange problem, i have a complicated view that returns incorrect
I am having a very strange problem with pound signs displaying incorrectly (or not
I'm having a very strange issue with Python's subprocess.Popen. I'm using it to call
I'm having a very strange problem. When I log stacktraces, they seem to be
I'm having strange error with installing fixture from dumped data. I am using psycopg2,
I am having a very strange problem in a simple program and have been
I'm having a very strange problem where my execution jumps from semi-predictable locations to

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.