dotnetnuke compiler error

Discussion in 'Third-party applications' started by wdarnellg, May 22, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am trying to transfer my dotnetnuke files from localhost to my live account. I have followed the steps from the kb article Q10382 and the dnncreative videos. I am getting the following error when I try to connect to the page.

    Line 65: ''' -----------------------------------------------------------------------------
    Line 66: Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    Line 67: If Config.GetSetting("ServerName") = "" Then
    Line 68: ServerName = Server.MachineName
    Line 69: Else

    Does anyone have any help for this? Thanks.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. This is the error. I apologize for not being clear.

    Compiler Error Message: BC30451: Name 'Config' is not declared.

    Source Error:



    Line 66: ''' -----------------------------------------------------------------------------
    Line 67: Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    Line 68: If Config.GetSetting('ServerName') = '' Then
    Line 69: ServerName = Server.MachineName
    Line 70: Else

    Post Edited (wdarnellg) : 5/23/2008 4:10:45 AM GMT
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    This usually means that you have no copied all the files to the server. Check and make sure of that.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. I just noticed that the web.config file didn't have a reference to the system.configuration namespace. So, I added it, and it seems to have helped. I have also noticed that discountasp.net doesn't recommend placing dotnetnuke in the root folder, but my website only show a files list. How can I point to my portal alias in the subfolder when people type the domain name in their browser?
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    We don't recommend putting it in the site root because the web.config setting will inherit to sub directories and may cause problem if you want to install other applications. If you only intend to use DNN, by all mean, put it in the site root.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. Thanks guys. This gives me lots more faith.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page