Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Still Struggling with Compiler Error Message BC30392Still Struggling with Compiler Error Message BC30392
Previous
 
Next
New Post
4/14/2006 3:43 PM
 

Hi,

So far I still have only managed to get past the basic installation including the database table setup using the DotNetNuke_4.0.2_Source.zip file but I am still getting compiler errors from statements in the source like “Catch ex As Exception”. It appears that it does not recognize that Exception is in the System name space. System is part of the default references in VS 2005 and ASP.Net 2.0. Correct? Here is part of the error output from Internet Explorer 6.0:

 

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: BC30392: 'Catch' cannot catch type 'exception' because it is not 'System.Exception' or a class that inherits from 'System.Exception'.

Source Error:

 

 
Line 213:                ' call databind so that any server logic in the skin is executed
Line 214:                ctlSkin.DataBind()
Line 215:            Catch exc As Exception
Line 216:                ' could not load user control
Line 217:                Dim lex As New PageLoadException("Unhandled error loading page.", exc)


Source File: C:\Inetpub\wwwroot\DotNetNuke_2\Website\Default.aspx.vb    Line: 215

 

I can supply the entire error output if required. Notice that this occurred in Default.aspx.vb. I checked that file and found an “Imports System.IO” but no “Imports System”. Wouldn’t that be required? I managed to get past the basic install by making code changes (Exception changed to System.Exception) in Global.asax.vb and Install.aspx.vb. I suspect that there must be some reference settings or other options that I should change in VS.  I just started using VS 2005 and ASP.NET 2.0 so I am not familiar with the nuances of this new development environment. Does anyone have a clue with regard to this error?

 

 
New Post
4/17/2006 11:59 AM
 

I still haven’t eliminated this error but have narrowed it to a problem with IIS 5.1. I created a small test website using VS 2005. I placed a Try… Catch block in a button click event. I first executed it using the ASP.NET Development Server. No problems occurred. However, when I tried to execute it via IIS 5.1 I get the same error (BC30392) that I get with the DNN 4.02 application. On the test application I commented out the Try… Catch block and it ran on IIS 5.1 with no problems. I then went back to the DNN application thinking I could switch to the ASP.NET Development Server but when I click the Website menu and then Start Options to access the property page I noticed that the Server toggle button is set at Use default Web server and Use custom server is grayed out. Also interestingly the NTLM Authentication check box on the Use default Web server is not present in the property page for the DNN application. I suspect this is related to values in the DNN application solution file.

 

Also, I found some information on problems with IIS mappings (Articles 306005 and 325093) but I am not getting these behaviors. I did look at my IIS mappings and it looks like I am pointing to the correct Framework version (v2.0.50727). The error output also indicates this version. Any suggestions? If I can get DNN to work with the ASP.NET Development Server, that would be a help. Can that be done without causing more problems?  

 
New Post
5/19/2006 12:43 PM
 
This problem was finally resolved by brute force, i.e. moving VS 2005, SQL Server 2005, and DotNetNuke 4.0.2 to a new machine. Two guys from Microsoft reviewed this problem but after two weeks I have received no reply. If you should encounter a similar problem, I would advise using the brute force approach unless you can find a specific fix within a week. I spent a month on this foolishness. On the new machine I had DotNetNuke 4.0.3 up and running within 20 minutes!
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Still Struggling with Compiler Error Message BC30392Still Struggling with Compiler Error Message BC30392


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out