Compilation error on default.aspx after upgrade to 2.1 RTM

rated by 0 users
This post has 3 Replies | 2 Followers

Top 25 Contributor
Posts 1,128
Points 35,790
MVPs
J-O Eriksson Posted: Thu, Aug 10 2006 8:04 AM

After upgrading my hosted CS 2.1 Beta 2 site to CS 2.1 RTM I get the following error on the default.aspx page

Server Error in '/' Application.

Compilation 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: CS0246: The type or namespace name 'ActivePosts' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 14:     UsersOnline.SetLocation("Home"Wink;
Line 15:     MyForums.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 16:     ActivePosts.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 17:     UnansweredPosts.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 18:     AggregateGalleryPosts.Visible = ApplicationSet.Applications[ApplicationType.Gallery].Enabled;    


Source File: D:\inetpub\communityserver\Default.aspx    Line: 16

First I used a slightly modified default.aspx, but reverted to the original that came with the release when I saw this error. Still I get the same error.

I saw some thread about clearing the ASP .NET cache on the server, but since I am on a hoster, I cannot. Have tried touching the web.config to restart the app, but with the same error.

I am running on ASP .NET 1.1 for this site.

Any hint on where I could start troubleshoot?

Server Error in '/' Application.

Compilation 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: CS0246: The type or namespace name 'ActivePosts' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 14:     UsersOnline.SetLocation("Home"Wink;
Line 15:     MyForums.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 16:     ActivePosts.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 17:     UnansweredPosts.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 18:     AggregateGalleryPosts.Visible = ApplicationSet.Applications[ApplicationType.Gallery].Enabled;    


Source File: D:\inetpub\communityserver\Default.aspx    Line: 16

First I used a slightly modified default.aspx, but reverted to the original that came with the release when I saw this error. Still I get the same error.

I saw some thread about clearing the ASP .NET cache on the server, but since I am on a hoster, I cannot. Have tried touching the web.config to restart the app, but with the same error.

I am running on ASP .NET 1.1 for this site.

Any hint on where I could start troubleshoot?

Line 14:     UsersOnline.SetLocation("Home"Wink;
Line 15:     MyForums.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 16:     ActivePosts.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 17:     UnansweredPosts.Visible = ApplicationSet.Applications[ApplicationType.Forum].Enabled;
Line 18:     AggregateGalleryPosts.Visible = ApplicationSet.Applications[ApplicationType.Gallery].Enabled;    


Source File: D:\inetpub\communityserver\Default.aspx    Line: 16

First I used a slightly modified default.aspx, but reverted to the original that came with the release when I saw this error. Still I get the same error.

I saw some thread about clearing the ASP .NET cache on the server, but since I am on a hoster, I cannot. Have tried touching the web.config to restart the app, but with the same error.

I am running on ASP .NET 1.1 for this site.

Any hint on where I could start troubleshoot?

J-O

J-O Eriksson's blog
Top 25 Contributor
Posts 1,128
Points 35,790
MVPs

OK, my message got tripled, I didn't do that.

Anyway, the problem could be, that on my custom default.aspx, I had removed the controls for i.e Active Posts. Removing the Java script line for it and other controls I had removed from my custom default.aspx, seemed to solve the problem.

When I got the problem with the original default.aspx, could of course have been a cache issue. I don't know.

J-O

J-O Eriksson's blog
  • | Post Points: 20
Top 10 Contributor
Posts 5,284
Points 49,035
CS Developers
Is it still happening?  It was most likely a cache issue.
  • | Post Points: 20
Top 25 Contributor
Posts 1,128
Points 35,790
MVPs

Not after I deleted the Java script lines for the controls that I had removed from the page. I haven't tried the original default.aspx after that, as I also believe it was a caching issue.

Could try if you want?

J-O

J-O Eriksson's blog
  • | Post Points: 5
Page 1 of 1 (4 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com