By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

Compiler Error Message: CS0007

P: n/a
Every time I navigate to any .aspx file on my computer, I get the error below. According to MSDN this indicates that my CLR is corrupt, but I've re-installed the .NET framework with no help. Also reinstalled VS.NET; still nothing. Any ideas?

Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0007: Unexpected common language runtime initialization error -- 'Class not registered

Source Error

[No relevant source lines

Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
This can be caused by permissions issues as well. The first thing I would
try is deleting the process account (ASPNET by default) and then run
aspnet_regiis -i to let it get recreated. If it still doesn't work, I
would download Regmon and Filemon from www.sysinternals.com and get logs to
see where you might be failing.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
Thread-Topic: Compiler Error Message: CS0007
thread-index: AcQX9Jcw22KhrKqNTqajZGImI4nzsg==
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
From: =?Utf-8?B?Um9iZXJ0?= <rh***@wfubmc.edu>
Subject: Compiler Error Message: CS0007
Date: Thu, 1 Apr 2004 06:21:14 -0800
Lines: 11
Message-ID: <07**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:222863
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Every time I navigate to any .aspx file on my computer, I get the error below. According to MSDN this indicates that my CLR is corrupt, but I've
re-installed the .NET framework with no help. Also reinstalled VS.NET;
still nothing. Any ideas?

Error:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0007: Unexpected common language runtime
initialization error -- 'Class not registered '

Source Error:

[No relevant source lines]


Nov 18 '05 #2

P: n/a
This can be caused by permissions issues as well. The first thing I would
try is deleting the process account (ASPNET by default) and then run
aspnet_regiis -i to let it get recreated. If it still doesn't work, I
would download Regmon and Filemon from www.sysinternals.com and get logs to
see where you might be failing.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
Thread-Topic: Compiler Error Message: CS0007
thread-index: AcQX9Jcw22KhrKqNTqajZGImI4nzsg==
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
From: =?Utf-8?B?Um9iZXJ0?= <rh***@wfubmc.edu>
Subject: Compiler Error Message: CS0007
Date: Thu, 1 Apr 2004 06:21:14 -0800
Lines: 11
Message-ID: <07**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:222863
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Every time I navigate to any .aspx file on my computer, I get the error below. According to MSDN this indicates that my CLR is corrupt, but I've
re-installed the .NET framework with no help. Also reinstalled VS.NET;
still nothing. Any ideas?

Error:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0007: Unexpected common language runtime
initialization error -- 'Class not registered '

Source Error:

[No relevant source lines]


Nov 18 '05 #3

P: n/a
Hi Sam,

Great. Thanks for the update.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
Thread-Topic: Compiler Error Message: CS0007
thread-index: AcQc3dqPsbGwCeMCRSORZW3OzgFkVw==
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
From: "=?Utf-8?B?U2FtIEhhcm5hY2s=?=" <an*******@discussions.microsoft.com>
References: <07**********************************@microsoft.co m> <z#**************@cpmsftngxa06.phx.gbl>Subject: RE: Compiler Error Message: CS0007
Date: Wed, 7 Apr 2004 13:21:05 -0700
Lines: 65
Message-ID: <29**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:224276
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I used the Regmon utility like Jim suggested and found a couple of registry keys that the ASPNET account was trying to access.

HKEY_CLASSES_ROOT\CLSID\{E5CB7A31-7512-11D2-89CE-0080C792E5D8}
HKEY_CLASSES_ROOT\CLSID\{0A29FF9E-7F9C-4437-8B11-F424491E3931}
HKEY_CLASSES_ROOT\CLSID\{6EB22881-8A19-11D0-81B6-00A0C9231C29}
HKEY_CLASSES_ROOT\CLSID\{CB2F6723-AB3A-11d2-9C40-00C04FA30A3E}

After granting READ access for the ASPNET account to these keys everything
seems to be working.

--Sam

----- Jim Cheshire [MSFT] wrote: -----

This can be caused by permissions issues as well. The first thing I
would
try is deleting the process account (ASPNET by default) and then run
aspnet_regiis -i to let it get recreated. If it still doesn't work, I
would download Regmon and Filemon from www.sysinternals.com and get
logs to
see where you might be failing.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------Thread-Topic: Compiler Error Message: CS0007
thread-index: AcQX9Jcw22KhrKqNTqajZGImI4nzsg==
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
From: =?Utf-8?B?Um9iZXJ0?= <rh***@wfubmc.edu>>Subject: Compiler Error Message: CS0007Date: Thu, 1 Apr 2004 06:21:14 -0800
Lines: 11
Message-ID: <07**********************************@microsoft.co m>>MIME-Version: 1.0Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:222863NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Every time I navigate to any .aspx file on my computer, I get the
error
below. According to MSDN this indicates that my CLR is corrupt, but
I've
re-installed the .NET framework with no help. Also reinstalled
VS.NET;
still nothing. Any ideas?

Error:
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0007: Unexpected common language runtime
initialization error -- 'Class not registered '

Source Error:

[No relevant source lines]


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.