Known Bug - Possible Workaround?? | Bytes (2024)

Home Posts Topics Members FAQ

CJ Taylor

Alright, So this morning (as we are a week from launch on our product) I
come across an error as I add a simple thing to our system. A display
column in our dataset for databinding for display purposes only.

So everything goes smoothly, compile, start running, everything looking
good. then I go to update a row.. get a System.Data.Rea donly exception.

I investigate further to find this is a known bug in the framework according
to many articles. Here is one if you want to read about it some..

http://www.error-bank.com/microsoft....bl_Thread.aspx

So, I read the "workaround s" which are lame attempts to trick the framework
by removing expression columns from the datatable before the update, and
then add them back after the update.

Now to me... this sounds really dumb...

So I tried something. I attached to the RowUpdated and RowUpdating events
of my DataAdapter. Rowupdating provides nothing useful. However Row
Updated comes back with the Sql.Data.Readon lyException

This sets the Status property of the
System.Data.Sql Client.SqlRowUp datedEventArgs
to ErrorsOccured. However, I check the database and my fields were updated
as excpected. It's just the fact it can't change the Readonly property on
the expression column...

I don't care about that...

So I set the Status to continue if the error is of Data.ReadonlyEx ception

No problems...

I return to the UI Layer... No problems... all changes updated as
expceted....

is there anything obvious I'm missing in this? Why this wouldn't work?

Comments appreciated.

Thanks,
CJ

Nov 20 '05 #1

Subscribe Reply

OHM

No problems, no problem !

OHM
"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl...

Alright, So this morning (as we are a week from launch on our product) I
come across an error as I add a simple thing to our system. A display
column in our dataset for databinding for display purposes only.

So everything goes smoothly, compile, start running, everything looking
good. then I go to update a row.. get a System.Data.Rea donly exception.

I investigate further to find this is a known bug in the frameworkaccording to many articles. Here is one if you want to read about it some..

http://www.error-bank.com/microsoft....bl_Thread.aspx
So, I read the "workaround s" which are lame attempts to trick theframework by removing expression columns from the datatable before the update, and
then add them back after the update.

Now to me... this sounds really dumb...

So I tried something. I attached to the RowUpdated and RowUpdating events
of my DataAdapter. Rowupdating provides nothing useful. However Row
Updated comes back with the Sql.Data.Readon lyException

This sets the Status property of the
System.Data.Sql Client.SqlRowUp datedEventArgs
to ErrorsOccured. However, I check the database and my fields wereupdated as excpected. It's just the fact it can't change the Readonly property on
the expression column...

I don't care about that...

So I set the Status to continue if the error is of Data.ReadonlyEx ception

No problems...

I return to the UI Layer... No problems... all changes updated as
expceted....

is there anything obvious I'm missing in this? Why this wouldn't work?

Comments appreciated.

Thanks,
CJ


Nov 20 '05 #2

CJ Taylor

Ha! Like you this is not the answer I wanted.

Ok, then why does about 300 people agree that removing the expression
columns is the *best* way. There is no way that I figured out a better way
to do it. I'm just not that smart. =)
"OHM" <Me@NoWhere.Com > wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .

No problems, no problem !

OHM
"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl...

Alright, So this morning (as we are a week from launch on our product) I
come across an error as I add a simple thing to our system. A display
column in our dataset for databinding for display purposes only.

So everything goes smoothly, compile, start running, everything looking
good. then I go to update a row.. get a System.Data.Rea donly exception.

I investigate further to find this is a known bug in the framework


according
to many articles. Here is one if you want to read about it some..

http://www.error-bank.com/microsoft....bl_Thread.aspx


So, I read the "workaround s" which are lame attempts to trick the

framework
by removing expression columns from the datatable before the update, and
then add them back after the update.

Now to me... this sounds really dumb...

So I tried something. I attached to the RowUpdated and RowUpdatingevents of my DataAdapter. Rowupdating provides nothing useful. However Row
Updated comes back with the Sql.Data.Readon lyException

This sets the Status property of the
System.Data.Sql Client.SqlRowUp datedEventArgs
to ErrorsOccured. However, I check the database and my fields were


updated
as excpected. It's just the fact it can't change the Readonly propertyon the expression column...

I don't care about that...

So I set the Status to continue if the error is ofData.ReadonlyEx ception
No problems...

I return to the UI Layer... No problems... all changes updated as
expceted....

is there anything obvious I'm missing in this? Why this wouldn't work?

Comments appreciated.

Thanks,
CJ



Nov 20 '05 #3

OHM

I dont really have a good answer, other than if it works consistently, then
why worry about it. It's fixed in VS2005 probably anyway.

OHM
"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..

Ha! Like you this is not the answer I wanted.

Ok, then why does about 300 people agree that removing the expression
columns is the *best* way. There is no way that I figured out a betterway to do it. I'm just not that smart. =)
"OHM" <Me@NoWhere.Com > wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .

No problems, no problem !

OHM
"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl...

Alright, So this morning (as we are a week from launch on our product)I come across an error as I add a simple thing to our system. A display
column in our dataset for databinding for display purposes only.

So everything goes smoothly, compile, start running, everythinglooking good. then I go to update a row.. get a System.Data.Rea donlyexception.
I investigate further to find this is a known bug in the framework according

to many articles. Here is one if you want to read about it some..

http://www.error-bank.com/microsoft....bl_Thread.aspx

So, I read the "workaround s" which are lame attempts to trick the

framework
by removing expression columns from the datatable before the update,and then add them back after the update.

Now to me... this sounds really dumb...

So I tried something. I attached to the RowUpdated and RowUpdating events of my DataAdapter. Rowupdating provides nothing useful. However Row
Updated comes back with the Sql.Data.Readon lyException

This sets the Status property of the
System.Data.Sql Client.SqlRowUp datedEventArgs
to ErrorsOccured. However, I check the database and my fields were


updated
as excpected. It's just the fact it can't change the Readonlyproperty on
the expression column...

I don't care about that...

So I set the Status to continue if the error is of Data.ReadonlyEx ception
No problems...

I return to the UI Layer... No problems... all changes updated as
expceted....

is there anything obvious I'm missing in this? Why this wouldn't


work?
Comments appreciated.

Thanks,
CJ




Nov 20 '05 #4

scorpion53061

First of all good to hear from you again OHM. havent heard from you in a
while.

The challenge of overcoming the issue is the reason I will make myself
trying to fix a problem like that which CJ is dealing with.

Something like what happened to me with datatable.compu te

Ask Mr.Ryan how crazy I drove him with that one!!

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3 2972

Is this a known IE 6 bug? (A bit like "peekaboo"?)

by: Barry Pearson |last post by:

I'm posting here because this is associated with the behaviour of a floated element. It has similarities to the IE 6 (on Windows) "peekaboo" bug, and I suspect was written by the same coder having a bad-hair day. http://www.barry.pearson.name/test/ie6_bug.htm "Peekaboo" causes text in a "floatholder" to fail to be rendered. "My" bug...

HTML / CSS

10 10267

Possible Firefox bug: float:right and tables

by: Jesper Rønn-Jensen |last post by:

Hope you can help me out on this one. I have a a box that is floated right. Below (in the normal float) I have a wide table. <body> <div style="float:right; width:200px">...</div> <p>This paragraph is showed correctly</p> <table style="width:300px"> <tr><td>This table is not moved downwards in Firefox. </td></tr> <tr><td>IE gets it...

HTML / CSS

5 7212

BUG: Visual Basic Internal compiler error (related to the known bug)

by: K. Shier |last post by:

when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler error) Save your work and restart Visual Studio .NET." has anyone seen this bug and can you confirm one way or the other whether or not it can corrupt...

.NET Framework

18 3954

Little Known HTML Facts?

by: Philipp Lenssen |last post by:

I want to write a third installment of "Little Known HTML Facts"*. I would appreciate your input here. For one thing, I would like to remember what exactly those proprietary icons were you could use -- I believe something like "&happyface;" would display a happy face, and so on, for folders, disk drives, and other technical icons. I found...

HTML / CSS

8 2310

is deadlock possible with no static members?

by: mk |last post by:

You probably suspect the answer, typically its 'yes' deadlock can occur in any multithreaded application. Even ones that employ static members. Commonly it occurs when more than one thread tries to lock a resource that another thread has already locked. A workaround is to use the Monitor object's TryEnter method, and pass a timeout value,...

C# / C Sharp

2 1081

by: Sammut |last post by:

C# / C Sharp

2 3697

gaierror: (8, 'hostname nor servname provided, or not known')

by: Laszlo Nagy |last post by:

Hello, I asked this question about a week ago, but I did not provide a traceback. Here is the traceback: File "/usr/local/lib/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/local/lib/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File...

Python

8 6492

Known problem with LinearGradientBrush?

by: _DD |last post by:

It seems that there is some odd interaction with LinearGradientBrush that depends on positioning. A simple test: --------- Rectangle Square = new Rectangle(.....); in Paint: LinearGradientBrush ShadeBrush = new LinearGradientBrush(

C# / C Sharp

3 10349

Is this possible? Login to remote site using cURL, then pass credentials to browser.

by: JDS |last post by:

So, I'd like to create the following scenario: 1) Use cURL library within PHP (cURL + "Cookie Jar", et.al) to create a virtual browser session that "logs in" to a remote site. (For example: here: http://curl.haxx.se/libcurl/php/examples/cookiejar.html and here: http://curl.haxx.se/libcurl/php/examples/ebay_login.html

PHP

1 7387

The easy way to turn off automatic updates for Windows 10/11

by: Hystou |last post by:

Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...

Windows Server

7714

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...

General

5920

AI Job Threat for Devs

by: agi2029 |last post by:

Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...

Career Advice

4924

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...

C# / C Sharp

3424

Trying to create a lan-to-lan vpn between two differents networks

by: TSSRALBI |last post by:

Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

Networking - Hardware / Configuration

3415

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

1 1848

transfer the data from one system to another through ip address

by: 6302768590 |last post by:

Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

C# / C Sharp

1 992

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

674

Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy

by: bsmnconsultancy |last post by:

In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

General

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisem*nts and analytics tracking please visit the page.

Known Bug - Possible Workaround?? | Bytes (2024)

References

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6004

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.