I created a web part using C# and VS 2005. The web part contains a button, and in the onclick event of the button, I am trying to send e-mail. This is the functionality, I am trying.
I builded the application, added the dll into the web application bin folder, registered the dll in the GAC and added the dll name as safecontrol in the web.config.
In the Page, I am able to add the web part. I am able to see the button. When i clicked on the button, the whole application is getting errored out and am getting Service Unavailable error.
Even after re-starting the IIS, I am getting the Service Unavailable error. In the eventvwr I found the below 2 error:
1) Category: Web part - Error: RuntimeFilter: Failed to load all runtime filter configurations or the runtime filter component. Exception has been thrown by the target of an invocation.
2) Category: Email - Cannot connect to SMTP host
How to rectify this?
Also, when i cliked on the button, I was getting prompt for entering the username and password 3 times. I entered all the time.(My username has full control on the site). This at times led to Page cannot be displayed error.
View Complete Post