Corrupted .NET Framework installation 1.1

  • Thread starter Thread starter Hartmut Schroth
  • Start date Start date
H

Hartmut Schroth

Hello,

my .NET installation seems to be corrupted. I have the
following problems:

1. No Windows Forms .NET application is running at all
(not even the default Forms1 application after creating a
new Windows Forms project in VS 2003). A
System.Runtime.InteropServices.COMExeption is always
thrown. German text in Eventlog:

'Anwendungspopup: Just-In-Time-Debuggen: Eine
Ausnahme 'System.Runtime.InteropServices.COMException' ist
in mscorlib.resources.dll aufgetreten.Ein Debugger, der
den Ausnahmetyp nicht behandeln kann, ist bereits mit dem
Prozess verbunden.'

2. Dotfuscator cannot be started from menu (no action at
all).

I am using two computers with XP Prof. (SVP 1a, all
patches), VS 2003 and .NET Framework 1.1. On both systems
I have the same effect.

I already tried to fix the problem by deinstalling .NET
Framework and VS 2003 and reinstalling both again (but no
effect).

Is there a possibility to solve the problem without
reinstalling the system completely?

Thanks for help in advance

Hartmut
 
Hello Hartmut,

Thanks for your post. As I understand, the problem you are facing is that
you cannot create and execute any .NET Windows Form application. Please
correct me if there is any misunderstanding. I think more information is
needed before moving forward:

1. Could you translate the error message in Eventlog into English? What's
the meaning for "Dotfuscator"?

2. I suggest you to create other types of project, say Console, etc and
check if the problem still exists.

3. It sounds like the problem lies in mscorlib.resources.dll, I am afraid
that the problem may relates to localization. Did you install the same
German version of Visual Studio .NET 2003 and .NET Framework 1.1? Will a
Windows Form application created by an English version of VS .NET 2003 work
properly on your system?

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi HuangTM,

it is correct, that no .Net Windows Forms application is
running at all. I can create a windows forms project,
compiling is also OK but execution gives the error message.
Here are the additional infos:

1. a) The text in EventLog in English is: 'Application
popup: an
exeption 'System.Runtime.InteropServices.COMException'
happened in mscorlib.resources.dll . A debugger, that can
not handle the exeption, is already connected to the
process'. Note: just in time debugging is not possible,
even though it IS enabled in the settings of Visual
Studio .NET 2003.

1. b) Dotfuscator is an external tool, that is shipped by
Microsoft together with Visual Studio. I only mentioned
it, because it could have some relevance to the problem
with .Net Windows Forms. If you are not familar with
Dotfuscator, just igore that point.

2. All other tested .NET project types are running. I have
build a quite complex ASP.NET application on this computer
without these problems. Besides: the windows forms
projects, compiled on this computer are running on other
machines, but not on the source computer itself.

3. It has nothing to do with the language (also English
versions don't run). The installed components of .NET and
VS.NET are identical to two other computers, where I don't
have these problems. They are:

..Net Framework 1.1 Redist and SDK
..Net Framewotk German language pack
Visual Studio .Net 2003 German

all from the October DVD of MSDN Universal subscription.

If you need more infos, please contact me again.

Regards

Hartmut



-----Original Message-----
Hello Hartmut,

Thanks for your post. As I understand, the problem you are facing is that
you cannot create and execute any .NET Windows Form application. Please
correct me if there is any misunderstanding. I think more information is
needed before moving forward:

1. Could you translate the error message in Eventlog into English? What's
the meaning for "Dotfuscator"?

2. I suggest you to create other types of project, say Console, etc and
check if the problem still exists.

3. It sounds like the problem lies in
mscorlib.resources.dll, I am afraid
 
Hi Tian Min,

I just installed .NET-Framework and VS .NET 2003 (as
mentioned above) on an new computer running XP SVP 1 and I
get the same errors with windows forms. When I create a
new windows Forms application in VS 2003, make no changes
and debug it, I get the following debug messages:

Unhandled exeption
System.Runtime.InteropServices.COMException (0x800700B7)
A file cannot be created if it still exists (German: 'Eine
Datei kann nicht erstellt werden, wenn sie bereits
vorhanden ist.')
at System.Windows.Forms.UnsafeNativeMethods.WaitMessage
()
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.
UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.ThreadContext.RunMessageLoopInner
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WindowsApplication1.Form1.Main() in CDokumente und
EinstellungenUsername.ComputernameEigene DateienVisual
Studio
ProjectsWindowsApplication1WindowsApplication1Form1.vbline
1

Maybe this gives you some hint, where the fault is to be
found.

Regards
Hartmut
 
Hi, I just got one more hint: on both systems with the
windows forms error, there was some time ago an
installation of a early .NET framework 1.0. I deinstalled
it before some time ago, everything seemed to be OK (no
error message), but maybe some parts were not removed
properly by the deinstallation routine and are
interferring with .NET 1.1?
Regards
Hartmut
 
Hi Hartmut,

Thanks a lot for your information. This error seems strange, based on my
research, I did not find any known issue about it. As you know, .NET
Framework 1.1 is shipped and will be installed automatically with NET 2003.
I am not sure whether or not you install .NET Framework 1.1 Redist and SDK
and German language pack separately. To narrow down the problem, I suggest
you to create a new system with VS .NET 2003 and check whether or not the
problem still exists on a clean machine.

In addition, please refer to the following KB article for removing and
repairing .NET Framework:

PRB: Installation of .NET Framework Fails and Requires Manual Removal
http://support.microsoft.com/default.aspx?scid=kb;en-us;320112

I look forward to your result.

Have a nice day! :-)

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi,

on a new system (after completely installing windows and
so on ..) I dont have the problem, but my problem is the
already corrupted system. I want to avoid installing that
computer completely from scratch. Is there any other
possibility to clear the problem without reinstalling
Windows (as I mentioned: I have already de- and
reinstalled .NET Framework on that computer).

Regards
Hartmut
 
Hi Hartmut,

Thanks for your update. As you know, remove VS .NET or .NET framework from
"Control Panel" -> "Add or Remove Programs" may not remove the products
cleanly. I recommend you manually remove them per KB articles below and see
if it works then:

PRB: Installation of .NET Framework Fails and Requires Manual Removal
http://support.microsoft.com/default.aspx?scid=kb;en-us;320112

HOW TO: Remove Microsoft Visual Studio .NET 2003
http://support.microsoft.com/?KBID=824642

I am standing by for your result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Tim,

I proceeded according to KB article 320112 (deinstall .NET
Framework 1.0 manually, repairing .NET 1.1) and 824642
(Deinstalling VS 2003 and reinstalling). The error remains
the same ....

I could locate the error situation a little bit more:

Any (really any) .NET windows form application gets an
unhandled exeption in windows.forms.dll, when it tries to
instatiate the first class of the application. The error
message is (translated from german):

An unhandled exeption of
type 'System.Runtime.InteropServices.COMExeption' occured
in system.windows.forms.dll. Additional information: a
file cannot be created if it already exists.

So maybe this helps you to give me a further hint for
solving the problem.

Thanks for your efforts in advance.

Regards

Hartmut Schroth

P.S. I have sent you a screenshot of the German error
message by email too.
 
Hi Hartmut,

I performed further research, however, I did not find any known issue.
According to the error message, it seems system.windows.forms.dll fails to
create a file. To troubleshoot this problem, I suggest you to use filemon
to monitor the file access of your Windows Forms application to locate
which file it fails to create. You can download filemon at
http://www.sysinternals.com/ntw2k/source/filemon.shtml.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Tim,

thank you for the hint. I include in a separate a log file
of filemon that was generated, when I tried to debug a
default WindowsApplication1 of VS.NET 1.1 (also included,
remember: the error happens when I try to start or debug
any .NET 1.1 Windows forms application).

Maybe this helps you in further investigations.

Best regards.

Hartmut
-----Original Message-----
Hi Hartmut,

I performed further research, however, I did not find any known issue.
According to the error message, it seems
system.windows.forms.dll fails to
 
Hi Hartmut,

Thanks for your log file. I am checking it and will come back with my
findings.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hello Hartmut,

I discussed this issue and reviewed the log file with a support
professional who is expertise on .NET Setup/install, however, we did not
find any obvious problems that cause this error.

Due to the nature of this issue, I would highly recommend you contact
Microsoft Product Support Services in Germany
<http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms&LN=DE&
x=14&y=11> since it would require intensive troubleshooting which would be
done quickly and effectively with direct assistance from a Microsoft
Support Professional.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top