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 ...Install DotNetNuke_4.0.2_StarterKit.vsi, Object reference not set to an instance of an objectInstall DotNetNuke_4.0.2_StarterKit.vsi, Object reference not set to an instance of an object
Previous
 
Next
New Post
2/21/2006 1:47 PM
 

I also have exactly the same problem (Object Referenec not set..) . Eventually got the install to the satge of saying it had set up and "click Here to access your Portal" and then get exactly the same error. It has been astuggle to get to this stage (permissions and SQL Server issues) but I thought I had eventually sorted it and I ahve no idea where to go with this error as I am only starting with ASP.NET 2.

If so many have this problem there must be a solution somebody is aware of.

Paul

Sheffield UK

 
New Post
2/22/2006 6:36 PM
 

Likewise, I had to abandon a dual portal dnn3 on a host site after I screwed it up.  So I decided to install the starter kit on my PC to play around with it first .   I was trying to get two portals added to the default portal. The first try said it didn't like spaces etc in the portal name, changed it but it obviously blanks out other fields when you do that as I got a error with my e-mail address. I couldn't fix it so decided to delete the new portal and now the whole is screwed. (Object Reference not set etc)

 

Les

Stirling UK

 
New Post
2/22/2006 6:48 PM
 
am having the same issue   but with the source version

any help appreciated
 
New Post
2/22/2006 7:17 PM
 

I had this same problem, for both 4.2 and 3.2, I was using Microsoft SQL Server 2000 as the database though..

*I eventually got it working by following the datbase setup instructions exactly as outlined in the Intallation documentation.* I think it was a security error with database users, but I can't be sure..

I stepped through the source to find out that the problem (in my case) is to do with the Microsoft.ApplicationBlocks.Data classes haveing really badly written code for clients. basically if there is an error when trying to interact with the database it doesn't tell you there was an error and just returns null or 0.

The portal had not been set up and the code was executing this line.

982:    DataProvider.Instance().UpdatePortalAlias(PortalAlias.ToLower)

which looks like this:

Public Overrides Sub UpdatePortalAlias(ByVal PortalAlias As String)

SqlHelper.ExecuteNonQuery(ConnectionString, DatabaseOwner & ObjectQualifier & "UpdatePortalAliasOnInstall", PortalAlias)

End Sub

Which eventually calls this in the Data Application Block: (I got this code by using Reflector as I couldn't step into it)

public static int ExecuteNonQuery(string connectionString, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
{
      SqlConnection connection1;
      int num1;
      if ((connectionString == null) || (connectionString.Length == 0))
      {
            throw new ArgumentNullException("connectionString");
      }
      try
      {
            connection1 = new SqlConnection(connectionString);
            connection1.Open();
            num1 = SqlHelper.ExecuteNonQuery(connection1, commandType, commandText, commandParameters);
      }
      finally
      {
            if (connection1 != null)
            {
                  connection1.Dispose();
            }
      }
      return num1;
}

Someone correct me if I'm worng but, Looking at this code it seems as if the try{} block will never throw any errors?!?  

It means client code should be checking the value of the returned int to see how many rows were affected. But there is no way to know what went wrong when trying to update the database:

was it a security error? does the stored procedure even exist? or is it something else?

Thanks Microsoft!

It may be worth rewriting the application block properly, as you can get the source for it and change all the try{} finally{} blocks to using{} blocks which would have better error reporting while still closing the connections. when there are errors.

Unfotunately now I can't add content because I only have 5 modules available in the drop downl list, and HTML/TEXT isn't one of them?!

What is going on?

 

 

 

 

 

 

 
New Post
2/22/2006 9:29 PM
 

This is getting very confusing

If it is a problem with the database connection,  how can the install  program  run and create all the database tables, etc,

I checked the  database  (SQL2005 not express) and all the tables are present.  The installation appears to work but the error occurs when you  try to go to your site.

I am getting  extrememly frustrated with  this installation process,   

I have followed the instructions several times and have  tried every set of instructions i can find on the web.

I have tried to install  using the starter kit with  VS web developer express,  it gets to  the build and  fails, i  read on another site it is because of express, i uninstall and  trey VS2005   it won't even  recognise the starterkit.msi has an error.

I have tried several  ways using the source

tried the  standard documentation and also  the advice

from here

http://forums.asp.net/1123229/ShowPost.aspx

still no joy.

Can anyone please isolate what i am doing wrong with this problem,

this is the furthest i have got, 

Everything seems to be instaled and working but  when you go to the site this error occurs  (sames as all threads in this post)

(using 4.02)

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Install DotNetNuke_4.0.2_StarterKit.vsi, Object reference not set to an instance of an objectInstall DotNetNuke_4.0.2_StarterKit.vsi, Object reference not set to an instance of an object


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