-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue using MVCMailer with webforms #46
Comments
Are you using is offline or on a background job? The MailerBase subclass your controllers.Sohan On Tue, May 8, 2012 at 2:04 PM, GeorgeJohn <
|
No, not using it offline or on a background job. I have an aspx page that is creating my report for me that I want to attach to the mail. In there I call the SendReport method in the UserMailer. I can step through all the way to the PopulateBody method and there I get this error. Mvc.Mailer is referenced in the web project. Are you suggesting that I need to add the actual MailerBase into my web project? Sorry just trying to clarify what you are suggesting. |
I will try to take a look at it tonight.Sohan On Tue, May 8, 2012 at 3:56 PM, GeorgeJohn <
|
No worries. Thanks for the quick response. If it helps I also put together a test project where I just have a button on an aspx page and that in turn is just trying to call the welcome method in the UserMailer class. I get the same issue there as well. If you need me to zip up the project and send it to you I'd be more than happy to do so. |
Were you ever able to look at this? |
Have an MVC project that uses a few webforms in it - we are in the process of converting them over. One of the pages happens to render a report. I'm trying to add the ability to email the report if the user wants to. When trying to use MvcMailer to achieve this it seems that it cannot find the view when I try to make the "PopulateBody" call
Here is my code from the UserMailer class
public class UserMailer : MailerBase, IUserMailer
{
///
}
Every time I hit the populateBody call it responds with "Value cannot be null. Parameter name: routeData"
Any suggestions to overcome this would be quite helpful.
The text was updated successfully, but these errors were encountered: