Mitchel's Forums

Subject: Compilation Error
Prev Next
You are not authorized to post a reply.

Page 1 of 3123 > >>
AuthorMessages
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

10/31/2007 1:44 PM  

Mitch,

I keep getting the following error when i try to install or load any page from my host site. I am able to run it on my local cumputer with the exact same settings.

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: BC30451: Name 'Config' is not declared.

Source Error:

 
<pre>Line 66: 
Line 67:             Dim AutoUpgrade As Boolean
<fontcolor="#ff0000">Line 68:             If Config.GetSetting(&quot;AutoUpgrade&quot;) Is Nothing Then
</font>Line 69:                 AutoUpgrade = True
Line 70:             Else</pre>

Source File: E:\kunden\homepages\44\d182704883\stories\App_Code\Global.asax.vb    Line: 68

 

Can you please help. Thanks, Erick

Erick WyattUser is Offline
Regular User
Regular User
Posts:28

10/31/2007 1:55 PM  

Sorry, I am not sure why the fony color came into play there. That was not supposed to be there.

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

10/31/2007 7:34 PM  
Erick,

No problem with the colors...

As for your error, i would first of all ensure that all files copied successfully. Secondly are you trying to do an upgrade, or a direct file copy to a different server?

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

10/31/2007 7:54 PM  

Mitch,


I reinstalled everything, made the changes that were needed to be made and am now getting this error. Got any suggestions.


Server Error in '/stories' Application.

The UNC path should be of the form \\server\share.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: The UNC path should be of the form \\server\share.

Source Error:

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: The UNC path should be of the form \\server\share.]
System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) +2848205
System.IO.Path.GetFullPathInternal(String path) +45
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +438
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
DotNetNuke.HttpModules.RequestFilter.RequestFilterSettings.GetSettings() +265
DotNetNuke.HttpModules.RequestFilter.RequestFilterModule.FilterRequest(Object sender, EventArgs e) +262
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 

Erick WyattUser is Offline
Regular User
Regular User
Posts:28

10/31/2007 7:56 PM  
This is a fresh install by the way
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/01/2007 10:46 PM  
Are you using a NAS?

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/12/2007 4:49 PM  

Mitch,

I took care of that issue. I was able to get the install done best I can tell, however, now when i try to go to the homepage, it tries to forward it to the install directory. what do i need to do to be able to get the site to load properly?

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/12/2007 5:10 PM  
Erick,

I would check the "Version" table to be sure that an entry exists for the most recent DNN version. Then if there is you can set the 'AutoUpgrade' value to false.

If it still tries to change to the install folder, check your portal alias and ensure that it doesn't somehow have /Install after the URL.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/12/2007 5:34 PM  
Mitch
OK, i will check that out as soon as i can get logged in. also, is there any way to be able to use the same data base for 2 different portals? and if so, how do i go about setting this up with out losing everyhting when i do an install of the other portal on a different domain.

thanks again

erick
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/12/2007 5:42 PM  
If you want a whole new installation on the same database, you can specify an "ObjectQualifier" value within your web.config and that will isolate all data items from the other installation.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/12/2007 5:48 PM  
OK, i will work on trying to figure that out. I am good with html, but am still trying to learn the .net side of things. i am getting there, but i could not do it with out you. is there any easy way for you to tell me how to do that?
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/12/2007 10:45 PM  
Mitch, here is the latest error I am getting.

String was not recognized as a valid Boolean.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: String was not recognized as a valid Boolean.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:







Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[FormatException: String was not recognized as a valid Boolean.]
System.Boolean.Parse(String value) +2709364
DotNetNuke.Common.Global.CheckVersion() +123
DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) +477




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/13/2007 2:02 AM  
Very interesting. My guess is that this error is happening on the test for a potential upgrade. Did you remove any items from the web.config? Potentially an AppSetting value? Did you 100% verify the all files copied and loaded successfully?

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/13/2007 4:34 PM  
Mitch, I reinstalled. Now I am getting the following error. I got an install successful and when i tried to redirect back to the home page. it was this.

Server Error in '/home' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.HttpModules.UrlRewriteModule.RewriteUrl(HttpApplication app) +378
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +826
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/13/2007 5:03 PM  
Validate that the "PortalAlias" table has a proper entry for the URL that you are trying to access the site with.

if your site is at http://www.mysite.com the alias should be mysite.com

If your site is at http://www.yoursite.com/dnn the alias should be yoursite.com/dnn

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/13/2007 5:10 PM  
where do i find the portal alias table? i am sorry i am asking so many stupid questions about this.
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/13/2007 5:13 PM  
No problem! You have to start somewhere!

You will need to use SQL Management Studio to look in the database for the PortalAlias table that has been created and look to see what values are there...

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/13/2007 5:43 PM  
OK, i will look to see if i can get my hands on it. the only thing i have is mysql... and what ever is built into visual studio web express.
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/13/2007 5:48 PM  
If you are only working with SQLExpress with the dynamically attached SQL Server Database that might be the source of some of your issues.

I personally strongly recommend NOT using the dynamically attached database method but to use the method that I outline in my documentation/tutorials as it has must better results long term and is easier to move to different servers if needed.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/13/2007 6:01 PM  
the hosting site i am using runs sql 2005 and that is what i am using. i am going through the records on there. there is no portal designated or alias. i am trying to figure out how to build these files right now. it asks for a guid and i am not sure what that needs to be, everythign else i think i have
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/13/2007 6:14 PM  
here is a list of the portal stuff and what records there are
Table Owner Date Created File Group Rows

PortalAlias dbo224077245 13/11/2007 16:30:11 PRIMARY 0
PortalDesktopModules dbo224077245 13/11/2007 16:29:55 PRIMARY 0
Portals dbo224077245 13/11/2007 16:30:55 PRIMARY 0
Profile dbo224077245 13/11/2007 16:30:07 PRIMARY 0
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/14/2007 12:26 AM  
Erick,

I apologize I didn't realize you were on a shared hosting environment. You will need to use their SQL tool, depending on what it is, to look at the VALUES in the PortalAlias table.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/16/2007 5:42 PM  
Mitch, I am still trying to troubleshoot my DNN with the same object reference error so I have kinda put that on hold until I can get to my one server back in the states when this deployment is over. So, I decided I would start trying to get a personal site on line, well, in doing so, I get the following error. Can you help? I tried to post this in your other forum, but it would not let me. I am about to the point that I think I am gonna have to pay someone to get my sites up and running.



Server Error in '/us' Application.
--------------------------------------------------------------------------------

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:







Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[SqlException (0x80131904): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734931
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) +820
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
PhotoManager.GetRandomAlbumID() +129
PhotoManager.GetPhotos() +5

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +296
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2040
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.FormView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.FormView.EnsureDataBound() +163
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360





--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

I was looking at the web config and here is what it has.



xml version="1.0"?>























<form>s loginUrl="Default.aspx" protection="Validation" timeout="300" />


















description="SiteMap provider which reads in .sitemap XML files."

type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

siteMapFile="web.sitemap"

securityTrimmingEnabled="true"/>
























Erick WyattUser is Offline
Regular User
Regular User
Posts:28

11/18/2007 9:33 PM  
mitch, i was able to take care of the forwarding to the install folder for my DNN site. now it just keeps trying to connect over and over...
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5595

11/18/2007 9:37 PM  
If you are having connection issues to the DB that are giving the above error, ensure that in the Surface Area Configuration Wizard for SQL Server 2005 that you have enabled remote connections.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
You are not authorized to post a reply.
Page 1 of 3123 > >>




ActiveForums 3.7