spjeff / spbestwarmup

Tired of waiting for SharePoint pages to load? Want something easy to support? That works on all versions? This warmup script is for you!
2 stars 0 forks source link

Error when running the -f flag #4

Closed haarabi closed 8 years ago

haarabi commented 8 years ago

SCHTASKS CREATE on myfrontendserver.contoso.com

Method invocation failed because [System.IO.IOException] does not contain a method named 'op_Addition'. At C:\Scripts\SPBestWarmUp.ps1:314 char:4

  • $global:msg += $error[0].Exception + "rn" + $error[0].ErrorDetails.Message +
    + CategoryInfo          : InvalidOperation: (op_Addition:String) [], Runti
   meException
    + FullyQualifiedErrorId : MethodNotFound
spjeff commented 8 years ago

Thanks Haarabi. I updated to cast Exception message to String() format before display.

Would you please download the latest and give it a test run?

spjeff commented 8 years ago

Fixed with commit https://github.com/spjeff/spbestwarmup/commit/e3b4042bb5989f1883379591aa3ddc228c77efba#diff-316afa53af12494556ef094f27de1d72