![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm digging through some old legacy code that was written originally for .net 1.1. It's looking for some registry entries to assemble a Sql connection string. It wraps the registry lookup with using. The problem is that the registry key has never existed. Under 1.1, though the code doesn't fatally die and in 2.0 it does. This makes me think that the behavior of using changed significantly between the revs. |
|
The code looks something like this: |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Mark, In addition to Jon's reply, I also have some questions to you: What is your application type, Winform, Asp.net or Windows Service? Do you run this code snippet in a worker or main thread? Have you tried to run the application under debugger? Do you get any exceptions in .Net1.1 or 2.0? I suspect the .Net1.1 may have caught and swallowed the registry access exception. A sample project is helpful for us to understand and reproduce the problem. Thanks. Best regards, Jeffrey Tan Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
#5
| |||
| |||
|
|
Hi Mark, In addition to Jon's reply, I also have some questions to you: What is your application type, Winform, Asp.net or Windows Service? Do you run this code snippet in a worker or main thread? Have you tried to run the application under debugger? Do you get any exceptions in .Net1.1 or 2.0? I suspect the .Net1.1 may have caught and swallowed the registry access exception. A sample project is helpful for us to understand and reproduce the problem. Thanks. Best regards, Jeffrey Tan Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |