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 ...Upgrading to 6.1.1Upgrading to 6.1.1
Previous
 
Next
New Post
12/2/2011 9:09 AM
 

Upgrading from 4.9.5 to 6.1.1 and see the following compilation error.  Please help.

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: CS1526: A new expression requires () or [] after type 
Source Error: 
Line 146: {
Line 147: var objLocale = new Locale
Line 148: {
Line 149: Text = nav.GetAttribute("name", ""),
Line 150: Code = nav.GetAttribute("key", ""),

Source File: e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs Line: 148

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.4927
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(391,25): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(411,25): error CS1502: The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(411,40): error CS1503: Argument '1': cannot convert from 'var' to 'string'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(445,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(446,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(456,13): error CS1502: The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(456,38): error CS1503: Argument '1': cannot convert from 'var' to 'string'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(467,13): error CS1502: The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(467,38): error CS1503: Argument '1': cannot convert from 'var' to 'string'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(478,13): error CS1502: The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(478,38): error CS1503: Argument '1': cannot convert from 'var' to 'string'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(489,13): error CS1502: The best overloaded method match for 'System.Web.UI.WebControls.ListItemCollection.Add(string)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(489,38): error CS1503: Argument '1': cannot convert from 'var' to 'string'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(637,45): error CS1526: A new expression requires () or [] after type
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(650,37): error CS1526: A new expression requires () or [] after type
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(881,21): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(949,13): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(955,33): error CS1502: The best overloaded method match for 'DotNetNuke.Services.Upgrade.Upgrade.GetScriptFile(string, System.Version)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(955,80): error CS1503: Argument '2': cannot convert from 'var' to 'System.Version'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(967,35): error CS1502: The best overloaded method match for 'DotNetNuke.Services.Install.InstallWizard.GetNextScriptVersion(string, System.Version)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(967,73): error CS1503: Argument '2': cannot convert from 'var' to 'System.Version'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1294,21): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1296,21): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1606,25): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1609,48): error CS1502: The best overloaded method match for 'DotNetNuke.Services.Upgrade.Upgrade.UpgradeApplication(string, System.Version, bool)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1609,100): error CS1503: Argument '2': cannot convert from 'var' to 'System.Version'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1612,48): error CS1502: The best overloaded method match for 'DotNetNuke.Services.Upgrade.Upgrade.DeleteFiles(string, System.Version, bool)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1612,93): error CS1503: Argument '2': cannot convert from 'var' to 'System.Version'
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1615,48): error CS1502: The best overloaded method match for 'DotNetNuke.Services.Upgrade.Upgrade.UpdateConfig(string, System.Version, bool)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\InstallWizard.aspx.cs(1615,94): error CS1503: Argument '2': cannot convert from 'var' to 'System.Version'
e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs(148,45): error CS1526: A new expression requires () or [] after type
e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs(161,37): error CS1526: A new expression requires () or [] after type
e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs(345,9): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs(346,21): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs(346,36): error CS1502: The best overloaded method match for 'DotNetNuke.Entities.Users.UserController.ValidateUser(int, string, string, string, string, string, string, ref DotNetNuke.Security.Membership.UserLoginStatus)' has some invalid arguments
e:\DNN\wwwroot_wideflycom\Install\UpgradeWizard.aspx.cs(346,171): error CS1503: Argument '8': cannot convert from 'ref var' to 'ref DotNetNuke.Security.Membership.UserLoginStatus'

 
New Post
3/25/2012 12:54 PM
 

hi,

did u find a solution for this error?


Sajjad

 
New Post
3/25/2012 11:05 PM
 
DotNetNuke versions 5.2.0 and later require ASP.Net version 3.5 SP 1. DNN v 5.4.0 and later can also run under ASP.Net version 4.0. It appears that the original poster was trying to run the upgraded 6.1.1 site with only ASP.Net v 2.0.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrading to 6.1.1Upgrading to 6.1.1


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