Comments (4)
Look at your web.config under the Views folder I add these entries that broke my mvc4 application
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages validateRequest="false" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<namespaces>
<add namespace="Mvc.Mailer" />
</namespaces>
</pages>
both of those entries already existed in my config file for version 4
from mvcmailer.
Thanks, I created a brand new MVC 4 project, and copy pasted the web.config in my project and added the entries specific to my project. This issue was a problem related to the migration to MVC4, not MvcMailer itself I believe.
Thanks!
from mvcmailer.
@Eonasdan your web.config show MVC version 3 (System.Web.Mvc, Version=3.0.0.0) , you should change it to 4. I think this might fix the problem.
from mvcmailer.
@sharique the problem was that my MVC 4 application already had those entries for v4 but mvcmailer added the nodes again for v3. I fixed the problem by removing the duplicated nodes for v3
from mvcmailer.
Related Issues (20)
- Mvc Mailer uses DispalyProvider setting in ViewStart.chtml
- asp.net 5 mvc 6 HOT 1
- View Folder
- MVC Mailer with Gmail, From address and name is "me" instead of what is populated from form submission
- Unknown method Send
- Use MailKit/MimeKit instead of System.Net.Mail
- VS2015 MVC 5 (not 6) HOT 1
- Failure sending mail (on server)
- Logging generated email body
- This doesnt work in VS2015 HOT 4
- update to 4.6
- Sending Scheduled Mails HOT 1
- Invoke-Scaffolder : A positional parameter cannot be found that accepts argument 'UserMailer'. HOT 6
- Send Mail without HttpContext HOT 1
- doesn't work for me either in vs2015
- T4Scaffolding doesn't play nice with VS2017 - switch MVCMailer to ASP.NET Scaffolding?
- Unable to put MvcMailerMessage into MessageQueue(MSMQ)
- System.InvalidOperationException: The view at '~/Views/UserMailer/CustomEmail.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
- Find the file name of the email
- Read mailSettings from database.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvcmailer.