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 ...Scheduler fails since upgrade to v6Scheduler fails since upgrade to v6
Previous
 
Next
New Post
4/11/2012 12:40 AM
 

I've got a compiled project running as a scheduled task (it automatically sends out a newsletter to a subscriber list) that was working on DNN 5.4 but fails now at v6 and v6.1.5. The message is not very helpful... Can anyone shed any light on changes that might mean input into a Regex.Replace would be valid in v5.4 but not v6? Or is it that somewhere (and there's a few places as there's a lot of data gathered for the email) something that was returning data is now returning null?

AssemblyVersion: 6.1.5
PortalID
: -1
PortalName
:
UserID
: -1
UserName
:
ActiveTabID
: -1
ActiveTabName
:
RawURL
:
AbsoluteURL
:
AbsoluteURLReferrer
:
UserAgent
:
DefaultDataProvider
: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID
: f81c2192-7b37-4403-886b-06edb230180c
InnerException: Value cannot be null. Parameter name: input
FileName
:
FileLineNumber: 0
FileColumnNumber
: 0
Method
: System.Text.RegularExpressions.Regex.Replace
StackTrace
:Message: System.ArgumentNullException: Value cannot be null. Parameter name: input at System.Text.RegularExpressions.Regex.Replace(String input, String replacement) at Context.EventNewsletter.NewsletterScheduler.DoWork()


 
New Post
4/11/2012 4:18 AM
 
When you pass a null parameter to Regex.Replace function, it will raise that error. So, you need modify your source code like following:
If ( s!=null) then s=Regex.Replace(s.....).

Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
4/11/2012 4:24 AM
 
you will need to review source code of the project to get to know, which parameter are passed to the replace method.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/11/2012 5:18 AM
 

That's one of the areas of confusion - I've triple checked and all Regex.Replace statements are already contained in 'if not null' statements - there shouldn't be any way a null param is getting through.

The big thing is that it all worked just fine before the upgrade - there hasn't been any changes to the code for this scheduled task, so why would it start throwing this error after an upgrade?

 
New Post
4/11/2012 6:54 AM
 
I am not aware of major changes in this area, but you will need the source code and debug the situation, I fear.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Scheduler fails since upgrade to v6Scheduler fails since upgrade to v6


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