BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  Upgrading probl...  Upgrade prolems, bad version number
Previous Previous
 
Next Next
New Post 5/16/2008 12:09 PM
User is offline hplvecraft
4 posts
No Ranking


Upgrade prolems, bad version number 

When I try to run the install.aspx it is crashing at line 174:

        private void UpgradeBugNET()
        {
            //get current App version
            int AssemblyVersion = Convert.ToInt32(GetCurrentVersion().Replace(".", ""));
>>>>>            int DatabaseVersion = Convert.ToInt32(GetInstalledVersion().Replace(".", ""));
...

I checked, and GetINstalledVersion is returning "@VERSION@.0" , which obviously can't be converted to an integer.

What should this value be (I'm upgrading from 0.7.832.0

 
New Post 5/20/2008 11:58 AM
User is offline hplvecraft
4 posts
No Ranking


Re: Upgrade prolems, bad version number 
OK, that was helpful.
 
New Post 5/21/2008 8:47 AM
User is offline admin
634 posts
bugnetproject.com
1st Level Poster




Re: Upgrade prolems, bad version number 

 hplvecraft wrote

When I try to run the install.aspx it is crashing at line 174:

        private void UpgradeBugNET()
        {
            //get current App version
            int AssemblyVersion = Convert.ToInt32(GetCurrentVersion().Replace(".", ""));
>>>>>            int DatabaseVersion = Convert.ToInt32(GetInstalledVersion().Replace(".", ""));
...

I checked, and GetINstalledVersion is returning "@VERSION@.0" , which obviously can't be converted to an integer.

What should this value be (I'm upgrading from 0.7.832.0

Are you installing the install or source package?  Older installations used this type of variable for installation but in later packages it was changed.


Davin Dubeau
BugNET - Core Developer

 
New Post 5/22/2008 3:24 PM
User is offline hplvecraft
4 posts
No Ranking


Re: Upgrade prolems, bad version number 

Install, version 0.7.921

 
New Post 5/23/2008 7:15 AM
User is offline admin
634 posts
bugnetproject.com
1st Level Poster




Re: Upgrade prolems, bad version number 

 hplvecraft wrote

Install, version 0.7.921

Before you upgrade just run this script or manually change the version number in the database to 0.7.832.0.  It may have got set improperly in a previous upgrade.

SQL
1
UPDATE HostSettings SET SettingValue = '0.7.832.0' WHERE SettingName = 'Version'

Davin Dubeau
BugNET - Core Developer

 
Previous Previous
 
Next Next
  Forum  Support  Upgrading probl...  Upgrade prolems, bad version number

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.