Trouble in sending email from site proramatically, some times it is working and some times it is not.

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
3/25/2011 4:25:19 AM
Gravatar
Total Posts 16

Trouble in sending email from site proramatically, some times it is working and some times it is not.

mojoPortal Version 2.3.5.4 MSSQL
Operating System Microsoft Windows NT 6.0.6001 Service Pack 1
ASP.NET Info Running in Partial Trust
Hosting: GoDaddy/Medium trust/ Asp.net 3.5 framework.

What I am doing: I am sending e-mail programatically by using the smtp settings. Some times my mails are delivering and some times it is not.
I am clue less what might be happening there.

When i checked the System log, i found following error:

================

2011-03-25 01:46:12,649 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-03-25 01:47:06,721 INFO mojoPortal.Web.Global - Application Started.
2011-03-25 01:47:06,736 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, this error is expected when running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at mojoPortal.Web.Global.RegisterVirtualPathProvider()
   at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
MyComputer

================

Can anybody guide me here?

3/27/2011 8:40:12 AM
Gravatar
Total Posts 18439

Re: Trouble in sending email from site proramatically, some times it is working and some times it is not.

Hi shirish,

That error is not related to sending email, it will always log that error in .NET 3.5 medium trust hosting when the application start event fires.

Everything I know about it is in the document Email Configuration.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.