Click here to Skip to main content
15,922,015 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: binary MSIL file format? Pin
Corinna John15-Feb-04 23:42
Corinna John15-Feb-04 23:42 
GeneralRe: binary MSIL file format? Pin
aiwadisc16-Feb-04 10:04
aiwadisc16-Feb-04 10:04 
GeneralRe: binary MSIL file format? Pin
Corinna John16-Feb-04 19:30
Corinna John16-Feb-04 19:30 
GeneralRe: binary MSIL file format? Pin
Corinna John16-Feb-04 19:36
Corinna John16-Feb-04 19:36 
GeneralThank :-) Pin
aiwadisc16-Feb-04 21:56
aiwadisc16-Feb-04 21:56 
GeneralFree .Net training Pin
Anonymous15-Feb-04 15:10
Anonymous15-Feb-04 15:10 
GeneralFree .Net training Pin
Tony M John15-Feb-04 15:08
Tony M John15-Feb-04 15:08 
GeneralVersion problem broke code Pin
Larry S13-Feb-04 12:13
Larry S13-Feb-04 12:13 
Well I had code break on a compiled version of a Visual Basic .net application that was in use. Here is the story.

Environment: Windows network using Windows 2000 advanced Servers and Windows 2000 workstation Service Pack 4. .net Applications written with .net framework 1.1

The other day we had a series of security upgrades deployed on our network. As soon as that happened a Visual Basic .net application in use for some time developed numerous problems and was generating error messages all over the place. On workstations that had earlier versions of the .net framework, those versions had been removed and only the latest version which had been installed during the security upgrades remained.

I looked at the source code of two applications written in vb.net and found the following problem. All Catch statements that worked previously had an error in the source code when I examined it. The basic Catch statement Catch ex as exception no longer was valid. the squiggly blue line appeared under the ex. To rectify the problem I was required to type:

Catch ex as System.exception

Obviously the reference for System had always been present in the application. Just as an experiment I added Imports System to some of the class modules, but I was still required to type system.exception where ever a Catch statement was used in the apps that existed prior to the network upgrades. If I create a new project however, catch ex as exception statement doesn't have an error and the code compiles with no need to use the expanded system.exception. But in the .net apps that were written before the upgrade that code errors 100% of the time on catch statements and I must now type system.exception in all my catch statements.

I have tried deleting the references and re-entering them and all sorts of other tricks. I am pretty sure that those older apps are looking for a different version of the framework that is no longer there.

I could just leave all the syntax changed to Catch ex as system.exception but I am worried about the implications of what has happened to cause this code to break, and would sure like to know how to fix the problem without having to change code that shouldn't be broken.

Any thoughts or suggestions would be greatly appreciated.



QuestionHow to deploy common .dlls (assemblies) Pin
billdwilson313-Feb-04 10:20
billdwilson313-Feb-04 10:20 
AnswerRe: How to deploy common .dlls (assemblies) Pin
Werdna15-Feb-04 16:56
Werdna15-Feb-04 16:56 
GeneralRe: How to deploy common .dlls (assemblies) Pin
Werdna15-Feb-04 16:57
Werdna15-Feb-04 16:57 
GeneralAccessing .NET Remote from .NET compact framework Pin
Anonymous13-Feb-04 10:05
Anonymous13-Feb-04 10:05 
GeneralCom Interop Pin
Anonymous12-Feb-04 23:46
Anonymous12-Feb-04 23:46 
GeneralRe: Com Interop Pin
Mike Dimmick13-Feb-04 2:46
Mike Dimmick13-Feb-04 2:46 
GeneralRe: Com Interop Pin
Anonymous15-Feb-04 3:19
Anonymous15-Feb-04 3:19 
GeneralRe: Com Interop Pin
Nick Parker15-Feb-04 4:24
protectorNick Parker15-Feb-04 4:24 
QuestionUser Control as a Form Container? Pin
JerryTanski12-Feb-04 10:14
JerryTanski12-Feb-04 10:14 
AnswerRe: User Control as a Form Container? Pin
John Kuhn12-Feb-04 17:56
John Kuhn12-Feb-04 17:56 
GeneralFloatToInt32Bits and Int32BitsToFloat Pin
Paul Selormey11-Feb-04 17:06
Paul Selormey11-Feb-04 17:06 
Generaldata Binding Pin
CSharpDavid11-Feb-04 10:17
CSharpDavid11-Feb-04 10:17 
GeneralRe: data Binding Pin
John Kuhn11-Feb-04 17:00
John Kuhn11-Feb-04 17:00 
GeneralControling the sort of datetimes in a DataGrid Pin
KC@CodeProject11-Feb-04 5:15
KC@CodeProject11-Feb-04 5:15 
GeneralFloating point error in .NET Pin
eparkes10-Feb-04 6:25
eparkes10-Feb-04 6:25 
GeneralRe: Floating point error in .NET Pin
Colin Angus Mackay10-Feb-04 6:46
Colin Angus Mackay10-Feb-04 6:46 
GeneralRe: Floating point error in .NET Pin
Nick Parker10-Feb-04 8:35
protectorNick Parker10-Feb-04 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.