Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Fix: Issues when installing .Net Framework 3.5

microsoft_net_framework3.5One error that sometimes occurs when installing/upgrading Act!, and many other products, is during the install/upgrade of MS SQL Server.

For Act! installs/upgrades, the typical error you might receive is as per this knowledgebase article: "Act! pre-requisite has encountered a problem and needs to close." When Installing Act!

This error is not an Act! issue, but an issue installing MS-SQL on Windows operating systems from Windows 8 onwards, when the .Net Framework v3.5 isn’t enabled or has a problem with its setup.

You can also get similar issues updating SQL Server 2014 or adding Roles when the .Net 3.5 install lacks the right service pack.

The first step is to try enabling the Framework manually via the Control Panel.

Installing .Net 3.5 via Control Panel

As per this Microsoft article, you can enable the .NET Framework 3.5 through the Windows Control Panel. This option requires an Internet connection.

  1. Press the Windows key Windows Windows logo on your keyboard, type "Windows Features", and press Enter. The Turn Windows features on or off dialogue box appears.

  2. Select the .NET Framework 3.5 (includes .NET 2.0 and 3.0) check box, select OK, and reboot your computer if prompted.

Dotnet-Control-PanelYou don't need to select the child items for Windows Communication Foundation (WCF) HTTP Activation and Windows Communication Foundation (WCF) Non-HTTP Activation unless you're a developer or server administrator who requires this functionality.




Troubleshooting .Net 3.5 Installation Failure

During installation, you may encounter one of these errors 0x800f0906, 0x800f0907, 0x800f081f, or 0x800F0922.

Or you might get the error “The following feature couldn’t be installed, The source files could not be found”.

Or, on Server 2012, you might get “Do you want to specify an alternate source path? One or more installation selections are missing source files on the destination server”

Microsoft covers some of the basics in this article. However, as it misses fixes for some of the errors and is, in my opinion, incomplete, I thought I would document my preferred solutions.

Check the System and Security Action Centre

  1. Hold the Windows Key and press R
  2. In the Run dialogue, type: wscui.cpl
  3. If you see any warnings, you should resolve them.

Using DISM and an SFC/DISM Scan

Try installing via DISM to enable the .Net 3.5 Framework:

  1. Open a Command or PowerShell Prompt as an Administrator – Press Windows Key + X to open Win + X menu and choose Command Prompt (Admin) or PowerShell (Admin) from the menu.
  2. When the Command Prompt starts, changing “X” for the drive of your Windows ISO.
    DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:X:\sources\sxs
  3. The operation will now start. Keep in mind that it can take a while to finish, so don’t interrupt it.

If that fails, perform an SFC scan, by doing the following:

  1. From an Administrator Command Prompt
  2. sfc /scannow and press Enter.
  3. SFC scan will now start. Keep in mind that SFC scan can take about 15 minutes to finish, so don’t interrupt it.

Once the SFC scan is finished, try to install .NET Framework 3.5 again.

If it doesn’t work, you might have to perform DISM scan as well.

To do that, just follow these steps:

  1. Open Command Prompt as administrator.
  2. Now run each of the following commends:
    1. DISM /Online /Cleanup-Image /CheckHealth
    2. DISM /Online /Cleanup-Image /ScanHealth
    3. DISM /Online /Cleanup-Image /RestoreHealth

The scans can take more than 15 minutes to complete, so be sure not to interrupt them

Once you complete the DISM scan, reboot and try to install .NET Framework 3.5 again.

Installing from a Clean ISO

Sometimes, the Windows files you have can be damaged. In that case, you need to follow these steps

Download the Windows Media Creation Tool

  1. For Windows 10 users, download the Windows Media Creation Tool, which is a tool that helps you create a Windows 10 ISO. If running Windows 8.1, download the Windows 8.1 Installer.
  2. Use the Windows Media Creation Tool to create a Windows ISO image locally.
  3. When the download is complete, mount the ISO by double-clicking on it.

For Windows Server 2012 R2, you can download the appropriate Evaluation ISO

Copy the SXS folder

  1. Open the mounted ISO, and go into the Sources folder.
  2. There should be a folder named sxs.
  3. Copy the folder to another location on your computer.
  4. Right click on the copied folder, and choose Properties from the drop-down menu.SXS Properties
  5. When the Properties window opens, click on the Security tab.
  6. Select your username from the Group or user names box; check if there is a checkmark next to Read and Write in the Permissions for [Your Username] box. You could also add “Everyone” or “Domain Users” if wanting to store and run from a network share.
    SXS Security Tab
  7. If you do not find the check marks, you should click on the Edit button, select your username, and check both the Read and the Write box.

Edit the Group Policy

Press Windows Key + R and enter gpedit.msc. Now press Enter or click OK. Keep in mind that this tool is available only on Pro versions of Windows 10, but there’s a way to run Group Policy Editor on the Home version of Windows.

  1. When Group Policy Editor starts, in the left pane go to:
    Computer Configuration > Administrative Templates > System.
  2. In the right pane, double-click on
    Specify settings for optional component installation and component repair.
  3. A new window opens.
  4. Select Enabled.
  5. In the Alternate source file path, enter the address of the sxs.
  6. Then click on Apply and OK.
    Gpedit - Specify settings for optional component installation and component repair
    Optional: Check Download repair content and optional features directly from Windows Update instead of Windows Server Update Services.
  7. After making these changes, you just need to start Command Prompt as administrator and run gpupdate /force command to apply the changes.

Finally

Now it should install from an Admin Command Prompt with the command:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:X:\sources\sxs
Remember to change “X:\sources\sxs” to the correct location of the sxs folder.

It’s also advisable to backup your system and, if you’ve had issues like this, you might also consider:
Repairing your Windows Image

Please post to the comments if these worked for you, or if you’ve encountered this problem and these solutions didn’t help.

The Act! CRM 19.2 update is now available

Act-newlogo

Swiftpage has, today, released version 19.2 of Act!.

You can get the downloads from: https://www.act.com/resources/downloads
Note: International people use the links under the US section because, at least under the Australian section, there is nothing about version 19 at all.

Here are some of the improvements according to documents I’ve seen. I’ll be doing some testing over the next week or two and will post my findings.

Compatibility

Microsoft Windows Server 2016 Certification

Provides compatibility with the latest Windows Server operating system.

  • Windows Server 2016 has passed our internal certification for use with Act! v19.2.
  • This release resolves fundamental defects to ensure compatibility and includes an update to InstallShield for a more stable installation on later operating systems.
Microsoft SQL Server 2016 Certification

Adds compatibility with SQL Server 2016 for customers who like to stay updated with the latest SQL database technology.

  • SQL Server 2016 has passed our internal certification for use with Act! v19.2.
  • The Act! installation process now detects an ‘ACT7’ instance created using SQL Server 2016 Express or Standard editions.
  • Important: Act! v19.2 will continue to ship with and install SQL Server 2014 by default. Customers wishing to use SQL Server 2016 must either manually create an ACT7 instance before installing Act!, or upgrade the default SQL Server 2014 instance following their Act! installation.
  • Customers wishing to use SQL Server 2016 Standard Edition must own the applicable licenses required to conform to Microsoft’s licensing requirements.
Update to InstallShield 2016

Provides a more stable installation platform with later operating systems.

  • The Act! installer package has been updated to the current InstallShield version, giving improved native support for the latest Windows operating systems.
  • This upgrade also helps us to make future installer-related improvements, and more easily add support for new and updated operating systems in later Act! releases.
Improved Google Chrome user experience

Provides improvements for web customers using the Google Chrome browser to access their database.

  • Important: While this release provides an improved experience for users of Chrome for Mac, full certification of this browser is not included in Act! v19.2. This certification will be completed in a later Act! release.
  • Act! v19.2 resolves 30+ specific issues affecting the Chrome browser
  • This includes 15 areas where unnecessary full-screen refreshes were affecting performance and customer experience.
  • Further details of the specific issues resolved are included below.

Web Client Improvements

New web client rich text (RTF) controls

Provides web users with improved formatting controls when entering free text.

  • New rich text (RTF) controls added to the Details sections on Notes, Histories, Activities and Relationships dialogues.
  • Includes additional web-friendly fonts and an improved selection of font sizes.
  • New options for strikethrough formatting, text background colours, and bullet points.
  • Addresses some in-market issues affecting the previous rich text controls.

Act! eMarketing Improvements

Improved Act! eMarketing Call List

Improves the performance and usability of the Act! eMarketing Call List feature for both desktop and web client users.

  • New date range filter for campaigns, so users can focus on just the results they need, and quickly follow up.
  • Downloaded campaign lists are cached, giving an improved performance as users navigate to and from the Act! eMarketing view.

Commercial Improvements

New Welcome Page views based on product tier and subscription

Allows more targeted messaging to better support and nurture different customer segments.

  • Includes new Welcome Page views for customers using:
    • Act! Pro
    • Act! Premium with no subscription
    • Act! Premium Cloud paid accounts

Integrations and Web API

New Act! Companion features

New mobile functionality gives users even more power to manage their activities on the move.
Schedule activities from within Act! Companion

  • Clear (Complete) activities
  • Update activities
  • Schedule follow-ups
  • Cache server URL and database name (Remember me feature)
On-going improvements to the Act! Web API

Swiftpage continues to improve the performance, stability and functionality of the Web API, enhancing the power of both Swiftpage and partner driven integrations.

  • An updated Web API version is available alongside Act! v19.2.

How should ACT! resellers/VARs deal with Microsoft install issues?

I'm sure this must be a question concerning every ACT! consultant/reseller ... but, which a number of them have asked my opinion on this, I've not seen any public discussion on it. I'd also be interested in the views of end-users as to what they believe would be fair.

windowsThe last time I was shown the figures, around 80% of install support incidents by Sage North America were not due to ACT! code, but were related to Microsoft issues - in the operating system, .Net Framework, SQL Server or Office. Note: If someone at Sage has a more current figure, please let me know

I’m not sure how long ago this happened, but I recently noticed that Sage Australia (and I assume similar in other regions) excludes many areas that fail from their install warranty. While the box says that install issues are covered under a 30-day warranty, it then refers you to the website for Getting Started Support – Free for 30 Days where you can see the majority of install issues that sometimes plague users are specifically exempted.

On one level, this is understandable, because it is sort of unfair that Sage should be responsible for supporting and repairing issues with products and components produced by Microsoft. On the other hand, it could be argued that Sage chose to use those technologies as a basis of the product and that they should provide that support.

The big problem that this raises is how should a Consultant/VAR handle this support? If you are installing a product that costs $300-500 and an OS, SQL or .Net issue requires 4-8 hours of work to resolve, how can you justify charging the user for this time?

  • If the installer doesn’t charge, then they lose money to sell the product
  • To charge may make a user feel less than happy at having to pay 4x the cost of the product
  • Telling a non-technical user to deal with Microsoft, may also not be the best for customer satisfaction

Is a notice to users, in advance, that such a charge may be necessary the right choice? Would this tend to scare off some potential users?

Obviously this would be different for larger user sites where they would be more aware of the complexities of commercial software as well as being able to spread the cost over a larger number of seats.

As I’ve said, I’d really like the thoughts of users, resellers and even Sage staff on this topic. Please post any thoughts you might have to the comments as I think the sharing of ideas is likely to help everyone come to an amicable solution to this problem.

microsoft_tech_support

Technorati Tags: ,,,,,,

Automating backups for ACT! by Sage

One of the problems we notice is that users are not sure of the different options available to create and maintain proper backups of their ACT! data, so I thought it would provide value to list them here.

As ACT! by Sage database uses a SQL engine, it can't be backed up by simply copying the files or by using a normal backup product. The SQL service keeps a lock on the database as soon as Windows starts, even if no-one is logged into ACT!

Manual Backup

The standard function to backup a database from ACT! is: File | Backup. See:
How to back up and restore an Act! database

ACT! Scheduler Backup

Users should automate these to make sure data isn’t lost if it becomes damaged through a PC failure, virus or other problem.

In ACT! 2005 (7.0) to ACT! 2007 (9.0), only the Premium version can automate this with the ACT! Scheduler
In ACT! 2008 and later, automated maintenance and backups are also available with non-Premium builds    
You can do the attached files separately if you need to for performance or space reasons

If running Premium 2005-2007 or ACT! 2008 or later, have a look at this article to automate backups:
How to use the Act! Scheduler to automatically back up your Act! database

If backing up with the Scheduler on another PC from the database or backing up to another PC, see:
Automatic Backup Scheduled in the Sage ACT! Scheduler and Set To Save To a Network Location Hosted on Another Machine Fails

It's always good to do regular test restores to ensure the backup is working.
You can do this with use File | Restore
Then select Restore_As to restore the backup to a different name, location or onto a different machine

It's also useful to occasionally check that the "Backup" folder under the database supplemental files folder is empty. This is where ACT! places temp files during the backup process. If the backup fails, they remain there and will be included in any subsequent backups. You can delete any files in this folder unless a backup is currently in operation.

Batch File Backup

If not running Premium and not upgrading, you can do it this way.
Create an ACTBackup.bat file with Notepad as follows:

REM - Change these SET Parameters as appropriate for your system 
SET ACTSourceFolder="C:\Act\Database" 
SET ACTDestinationFolder="D:\Backups\Act\Database" 
SET XcopyOptions=/M /E /C /H /O /Y /I 
REM 
REM - Stop ACT SQL Service 
NET STOP SQLAGENT$ACT7 
NET STOP MSSQL$ACT7 
REM 
REM - Perform copy 
XCOPY %ACTSourceFolder% %ACTDestinationFolder% %XcopyOptions% 
REM 
REM - Restart ACT SQL Service 
NET START MSSQL$ACT7 
NET START SQLAGENT$ACT7 
END

With the SQL engine stopped, you can use anything to copy/backup the database and supplemental files. You could replace the XCOPY with a command line ZIP or other back-up utility.
Then run the BAT file from the Windows scheduler

While you can't restore to a different name to test it with this method, you can restore to another machine, delete the PAD file and open the ADF so it resets the machine name.

ACT! Email Backup

If using the ACT! Email client, you should also back up it's database as per:
How to Back Up and Restore Your ACT! E-mail Database

Corporate and third-party Backup

Finally, if wanting to use a proper corporate backup product that understands SQL and you have a Premium version of ACT!, you can get the SA Pass utility. This is free in Europe, but does cost in other regions - contact your local Sage office for the pricing and process.

There is a third-party product with more advanced backup and maintenance options: AutoAdmin

Which MS SQL versions should you use with ACT! 2010 (#ACT2010)

There have been some changes to the supported SQL versions with ACT! 2010 and some users may need to look at which version to use in order to maximise the performance or scalability of ACT!

The standard ACT! by Sage 2010 only supports SQL 2005 Express as per: ACT! 2010 System Requirements

The Premium and Corporate versions support SQL 2005 Standard and now even MS SQL 2008. For a full list of supported versions, see:

While ACT! is only shipped with MS SQL 2005 Express, you can set the Premium version up with SQL 2008 Express (x32 or x64)’ and the Corporate versions with those and also SQL 2005/2008 Standard (x32 or x64)

Note: You must purchase SQL CALs for Standard separately from Microsoft

But, should you change the version of SQL and, if you chose to, how do you do it? To make this decision, you should have a look at these:

From these, you will note that the advantages of Standard over Express are:

  • Express is limited to a 4GB database size – There are very few users that will reach this limit. It’s only the ACT! ADF that’s limited, it doesn’t include attachments
  • Express is limited to 1 CPU and 1GB RAM – If your server machine doesn’t have multiple processors and 3GB (or more) RAM, you will not see a benefit to ACT! in using the Standard version. But, on a machine suitably configured, there will be a performance advantage in using Standard.
  • Changing to Standard on a suitable server should definitely be considered for 25 or more users.

Here are some useful ACT! Knowledge Base articles on installing ACT! with different editions of SQL:

There are a couple of additional points to note:

  • While having Standard (2005 or 2008) on the server and Express on the workstations is ok. If you upgrade to SQL 2008, you must also upgrade all systems sharing the database via Sync to 2008
  • You can upgrade the SQL 2005 instance of ACT7 to SQL 2008, you can’t upgrade to the x64 versions. You would need to uninstall the ACT7 instance and manually create one using the x64 edition of SQL.
  • While I have not tested these personally, I have been told by Sage that there is no noticeable advantage to ACT! in using SQL 2008 or the x64 versions. So the only reason to implement these would be to comply with a current infrastructure where these are already implemented.
  • While the Enterprise editions are not officially QA tested or supported, I have heard from a number of users that these work with the Premium and Corporate versions of ACT! as per the SQL Standard editions with the additional performance levels they provide. The same applies to using SQL 2008 Express with the standard version of ACT! by Sage – not supported, but should work if required.