Skip to content
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

MvcMailer FileLoadExcpetion in MVC4 #42

Open
ahordijk opened this issue Mar 15, 2012 · 11 comments
Open

MvcMailer FileLoadExcpetion in MVC4 #42

ahordijk opened this issue Mar 15, 2012 · 11 comments

Comments

@ahordijk
Copy link

When using MvcMailer in the Cloud and publishing the package the state of the publish stays in cycling.
The Solution is created with MVC4. After numerous attemps intellitrace noted that it could not find / load System.Web.Mvc version 3.

After troubleshooting all included nuget packeges in the solution we commented all MvcMailer specific code (its base class and implementation). At this point the application can be hosted in the cloud with MVC4 but without the MvcMailer :-(

My question is do you reference explicitly to System.Web.Mvc version 3 in your code? If so can you change this so MvcMailer can be used with MVC4?

Steps to reproduce:

  1. Create new MVC 4 beta project
  2. Add nuget package Mvc Mailer. Optional: update the default packages or add other packages.
  3. Project won’t run properly because the web.config in the Views folder has double config sections so comment them:
  1. Add class that implements te base class for the mvc mailer:
    public class TestMailer : MailerBase
    {
    public TestMailer(): base()
    {
    MasterName="_Layout";
    }
    }
  2. Publish to Azure with default settings. The state in Visual Studio 2010 will stay in Cycle. The intellitrace log file says: System.TypeLoadException. Could not load file or assembly MVC version 3.
@smsohan
Copy link
Owner

smsohan commented Mar 15, 2012

I need to check this out. Is this a problem that you see on the cloud only?


Sent from my iPhone
S M Sohan

On 2012-03-15, at 4:38 AM, ahordijk
reply@reply.github.com
wrote:

When using MvcMailer in the Cloud and publishing the package the state of the publish stays in cycling.
The Solution is created with MVC4. After numerous attemps intellitrace noted that it could not find / load System.Web.Mvc version 3.

After troubleshooting all included nuget packeges in the solution we commented all MvcMailer specific code (its base class and implementation). At this point the application can be hosted in the cloud with MVC4 but without the MvcMailer :-(

My question is do you reference explicitly to System.Web.Mvc version 3 in your code? If so can you change this so MvcMailer can be used with MVC4?

Steps to reproduce:

  1. Create new MVC 4 beta project
  2. Add nuget package Mvc Mailer. Optional: update the default packages or add other packages.
  3. Project won’t run properly because the web.config in the Views folder has double config sections so comment them:
  1. Add class that implements te base class for the mvc mailer:
    public class TestMailer : MailerBase
    {
    public TestMailer(): base()
    {
    MasterName="_Layout";
    }
    }
  2. Publish to Azure with default settings. The state in Visual Studio 2010 will stay in Cycle. The intellitrace log file says: System.TypeLoadException. Could not load file or assembly MVC version 3.

Reply to this email directly or view it on GitHub:
#42

@ahordijk
Copy link
Author

Yes local on my developing pc this problem does not occur. Hope you can solve this One.
This is because MVC3 is also installed on my development pc.

----- Reply message -----
Van: "S" reply@reply.github.com
Aan: "ahordijk" arjan.hordijk@gmail.com
Onderwerp: [MvcMailer] MvcMailer FileLoadExcpetion in MVC4 (#42)
Datum: do, mrt. 15, 2012 14:51

I need to check this out. Is this a problem that you see on the cloud only?


Sent from my iPhone
S M Sohan

On 2012-03-15, at 4:38 AM, ahordijk
reply@reply.github.com
wrote:

When using MvcMailer in the Cloud and publishing the package the state of the publish stays in cycling.
The Solution is created with MVC4. After numerous attemps intellitrace noted that it could not find / load System.Web.Mvc version 3.

After troubleshooting all included nuget packeges in the solution we commented all MvcMailer specific code (its base class and implementation). At this point the application can be hosted in the cloud with MVC4 but without the MvcMailer :-(

My question is do you reference explicitly to System.Web.Mvc version 3 in your code? If so can you change this so MvcMailer can be used with MVC4?

Steps to reproduce:

  1. Create new MVC 4 beta project
  2. Add nuget package Mvc Mailer. Optional: update the default packages or add other packages.
  3. Project won’t run properly because the web.config in the Views folder has double config sections so comment them:
  1. Add class that implements te base class for the mvc mailer:
    public class TestMailer : MailerBase
    {
    public TestMailer(): base()
    {
    MasterName="_Layout";
    }
    }
  2. Publish to Azure with default settings. The state in Visual Studio 2010 will stay in Cycle. The intellitrace log file says: System.TypeLoadException. Could not load file or assembly MVC version 3.

Reply to this email directly or view it on GitHub:
#42


Reply to this email directly or view it on GitHub:
#42 (comment)

@LockTar
Copy link

LockTar commented Mar 23, 2012

Is this bug fixed or is there an estimated time that it is fixed?
Thank you.

@LockTar
Copy link

LockTar commented Mar 30, 2012

@smsohan Is there some more information about this?

@LockTar
Copy link

LockTar commented Apr 25, 2012

Any update available?

@ahordijk
Copy link
Author

ahordijk commented May 6, 2012

@smsohan Can you give me any feedback if you are going to fix this one?
Or a roadmap / planning for when you will support mvc4?

@JoshReedSchramm
Copy link

Ran into this today - sent pull request -> #54 to address.

@smsohan
Copy link
Owner

smsohan commented Aug 23, 2012

Thanks for this. I haven't been able to spend much time on MvcMailer off
late due to my lack of touch with .Net project for the last couple of
years. But I will try this out over the weekend and if everything looks

cool, I will push an update.

Sohan
http://smsohan.com
skype:smsohan | gtalk:sohan39 | cell: 403-714-2673

On Wed, Aug 22, 2012 at 10:59 PM, Josh Schramm notifications@github.comwrote:

Ran into this today - sent pull request ->
#54 to address.


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-7958738.

@JoshReedSchramm
Copy link

Cool. I also noticed the web.config in Views is writing wrong, going to look at that next. I think there's another issue.

I didn't generate a new nuget package in source control, i did locally to test but I didn't want to impose a new version or anything so you may need to do that.

@mikecousins
Copy link

I'm currently getting hosed by this. I checked the pull request and it looks pretty solid to me.

@justinsoliz
Copy link

I agree any chance we can get this pull request accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants