.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Email Errors to mailbox in shared hosting environment

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :ASP.Net

Is there a way to email any error message a user recieves to a mailbox.

Basically if the user recieves one of the asp.net error pages is there a way for that message to be emailed to a mailbox for me to look into?

It is on a shared hosting environment.

Any help?

View Complete Post

More Related Resource Links

online shared hosting sql server problem

 hi all             how to solve the problem in online sql server. A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)thank u

Mysql connector and medium trust shared hosting

Hi at all. I've a big problem with GoDaddy Shared Hosting. I've written an ASP.NET application with MySql Database, but my application can't run, with the "Security Exception" error. The problem is that mysql connector must be recompiled with some .... different option. But i can't recompile.. i got always error. So i'm asking you if someone have a link for a mysql connector version able to run in medium trust environment.Very Thanks in advance.Bye

MVC2 Could not load file or assembly 'xxxx.Models' shared hosting

Hello,I have an mvc2 site that runs fine locally but when i deploy it to my shared hosting account i keep getting this error.Could not load file or assembly 'AppMVC2.Models, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.I have run Reflector againts the dll to see what dependencies the dll has, I then took each one of the dependant dlls and set them to copy local in the project and deployed them all to the shared hosting account even ones that should be on the server like System.Web. except for mscorlib.dll, but i still get the error.I have also tried to bin deploy and deploy the code files and get the same error.I have seen people write about fusion log but i don't see any examples on how to get this running on shared hosting.Just wondering does anyone else have any recommendations on how to track down the source of this problem?

Using a shared cache in a Web farm environment for detecting replay attacks in WCF

Hello, I'm trying to figure out how to implement a replay attack detection mechanism with WCF in a web farm scenario. WCF provides such detection mechanism by using a nonce cache. Correct me if I'm wrong, but the only way to ensure to prevent this attack in a message security and web farm scenario is by using a nonce cache shared across the servers (i.e.: AppFabric distributed cache). In WSE3.0, it used to be possible to provide nonce cache custom implementations http://msdn.microsoft.com/en-us/library/ff647945.aspx but there doesn't seem to be any way to do so in WCF (No configuration options, besides I found with Reflector that the NonceCache class is marked as both sealed and internal..) Any thoughts?

Shared document errors

I'm a rank amateur with Sharepoint (and IIS and SQL), but I've been tasked with getting a 2010 installation up and going, so I'm sure I'm going to have a lot of .... interesting questions over the next few weeks and months.   So a couple weeks ago I installed a fresh 2010 Foundation server with it's very own fresh copy of SQL server. As I'm working through the "How To use" books I'm trying out the features.   My current issue is with the Shared document library.  I have successfully uploaded a file, and I can download it, but I can't check it out, or edit it.  (That might be due to using Word 2007, I'm not sure)   Regardless, when I try to check it out, it gives me the local directory prompt.  Then it gives the error.    "This document could not be checked out.  You may not have permission to check out the document or it is already check out or locked for editing by another user."   I'm the only one using this installation, and I'm a site/farm administrator so I'm not sure what it's problem is.   So I go into Manage Permissions -> Check permissions ->  Put in my name ->  Click Ok.   Which gives me:   Error File not found Correlation ID XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx Date and time : blah   So going to the ULS viewer, and checking the log (figur

Send Email Failed.Mailbox unavailable.

Hi I am trying to do send a mail from asp.net to skype/ gmail. i have some clarification smtpClinet.Host == Means what, what value i can assign here. //localhost smptClient.Port == Means what, what value i can assign here. // 25 I give localhost as host name, 25 as port what are the name space i want to add. any thing  to be add in web.config... when i send,below mentioned error appear. Please anyone help me... Send Email Failed.Mailbox unavailable. The server response was: 5.7.1 Unable to relay for andrews198022@skype.com   

incoming email on WSS 3.0 in a standalone server environment


Hello Everyone, I have a windows SBS 2008 with exchange 2007 and WSS 3.0 2007 all on one server.

My problem is as follows, I have been trying to set up incoming email inside of wss 3.0, but every guide, blog, and wiki says I need to have SMTP installed, I however cannot have this installed with my configuration. I have created a exchange send connector, created a drop folder, and when I try to email a document to a document library, I get a failure in exchange as follows:

Diagnostic information for administrators:


Generating server: SCS01.scs.com

Email Errors


I am dusting off an old app (MDE 2003 Asp 1.1) and everything still works OK except for when it programatically sends an email. This used to work perfectly, but it now gives me one error on local host and a different error on my Hoster. I have done nothing on MDE for a couple of years, so I'm a little rusty. I want to get it fully working before I consider upgrading and migrating to the latest MDE.

Can anyone point me in the right direction? Or better still, tell me what I need to do? Why would it stop working, when I have done nothing to it?

Hoster Error:

Error Sending Email. To=BrentB@NineDecisions.com; From=customercare@ninedecisions.com; Subj="KeyEvaluations Contact-Us Request" (The server rejected the sender address. The server response was: 550 bosauthsmtp05: Host No unauthenticated relaying permitted ).

LocalHost Error:

Error Sending Email. To=BrentB@NineDecisions.com; From=customercare@ninedecisions.com; Subj="KeyEvaluations Contact-Us Request" (Could not access 'CDO.Message' object.).

Report Viewer on a GoDaddy Shared Hosting Account


I contacted GoDaddy and they informed me that their Shared Hosting accounts only allow partial trust and Report viewer requires Full Trust and therefore I cannot use Report Viewer on my website. (nor do they know of any report tool that will work on their site)

I just have a hard time believing that of all the accounts on Godaddy that NO ONE is running any kind reports, I can see some uses for databases with no reporting needed, but not as many as need reporting.


So....Just a quick question, has anyone been succesful with a report tool that will work on GoDaddys shared hosting environment ?





which is the best hosting environment for WWF



 Hello , 

    I am building a project of workflow but confused while selecting host environment .

   I have to choose from ASP.net or Silverlight  . can anyone tell which is the best environment .



backup sql server on hosting environment


I have asp.net + sql server 2005 application running on the shared hosting. I want to regularly make sql server backup and saved in my local machine or some online storage. The problem is that the hosting environment doesn't provide sql backup service. All their provide is a web interface myLittbleBackup for sql server, which I can manually click through and get a full backup. I want to write some program or script so I can schedule it to run daily to generate a sql backup file in my local machine(full backup is fine since the DB is not big), how can I achieve this?

One possible way I can think of is: install sql express in my machine, write program to get full data from shared host DB to local sql express, and then do regular backup on sql express.

any idea will be appreciated!


GetCompiledPageInstance Issue on shared hosting


Hi all,

I was wondering if anyone could help me with this problem I am having.

I am using friendly URLs in my .net 3.5 website, and this uses the GetCompiledPageInstance method in the PageParser class to work.

This all works a treat on my localhost, but as soon as I upload this to my shared hosting (with 1&1) I get this error

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I have done loads of Googling and found that this is due to me needing to turn Full Trust mode on. However, this is something that is not allowed on shared hosting.

Does any one know of a workaround for this 'GetCompiledPageInstance' method, or another method I could use? Is there another way of doing Friendly URLs without this?


How to create Umbraco database on shared hosting.

The article How to create Umbraco database on shared hosting. was added by codenickel on Monday, March 21, 2011.

I had to create Umbraco database on my shared hosting (I am using Winhost at the moment) couple of days ago. After checking few examples on Umbraco forum, I came up with my own quick solution which works like a charm. Here is how I do it, hope it will

Windows service hosting WCF service errors with Error ID 7034, WindowsService service terminated une



We have a number of windows services that are hosting a WCF 4.0 service each (Windows 2003 R2 Stardard SP2)

Invariably we are getting An error from Service Control Manager with this error id:7034

The description states:

"The RMWindowsService service terminated unexpectedly.  It has done this 1 time(s)."

We have 10 services running on 5 servers (Prod, Pre-Prod, Support, Test,Dev)

All servers are Windows 2003 R2 Stardard SP2.

All Services are experiencing the error. 

Some times all together, some times 2-3 at a time, some times, only one errors

On searching on the error this link said that the Error Id meant

"ERROR 7034: NS_E_SOURCEGROUP_NOTPREPARED.This error is due to The source is not yet prepared.%0 .The source of the error code is the Windows Media Server."

On searching for NS_E_SOURCEGROUP_NOTPREPARED , this link confirmed  in part what was said.

But I can find nothing that gives me a root cause of what is causing this error. Which is fair as I wrote the Winservice

PrintPocketCE Print Pocket Excel, Pocket Word and email files

Version 3.560 (May 15, 2009):

Important bug fix: a slight difference in how some devices create fonts was causing a few devices to have significantly longer print times for large print jobs.

Adjusted PocketJet printer paper feed commands

Other minor fixes and enhancements.

Version 3.559 (Mar 5, 2009):

Added support for Martel MCP78xx printers

Version 3.558 (Aug 20, 2008):

Added support for Martel MCP78xx printers

Version 3.557 (June 27, 2008):

Fixed error in Canon printer support

Fixed COM0 port selection

Version 3.556 (June 15, 2008):

Added support for Brother MW-260

Added support for Sato MB400

Version 3.555 (Aug 8, 2007):

Added support for Pentax RuggedJet 3 and RuggedJet 4 printers

Changed Epson TM-P60 support to maximum page width of 1200 dots

Version 3.551 (Aug 1, 2006):

Added Peripheral Nomad printer support

Version 3.550 (Mar 23, 2006):

Added Panasonic JT-H200PR printer support

Added Pocket Spectrum printer support

Fixed problem with WM5.0 "inverted image" problem

Send Email from SQL Server Express Using a CLR Stored Procedure

One of the nice things about SQL Server is the ability to send email using T-SQL. The downside is that this functionality does not exist in SQL Server Express. In this tip I will show you how to build a basic CLR stored procedure to send email messages from SQL Server Express, although this same technique could be used for any version of SQL Server.

If you have not yet built a CLR stored procedure, please refer to this tip for what needs to be done for the initial setup.

Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend