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

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

Web part created in VS 2005 crashing the whole web application

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :SharePoint


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.

Thank you

View Complete Post

More Related Resource Links

Application Architecture: An N-Tier Approach - Part 1


Free Trial: SQL Backup Pro
Sponsored by Red Gate
Exceptional DBAs make the most of their office hours. That's why they love Red Gate SQL Backup Pro. Its faster, smaller, secure SQL Server backups mean more time spare to accomplish more tasks and professional training. Make time to be an Exceptional DBA. Download it now! »

Free Trial: SQL Toolbelt
Sponsored by Red Gate
The SQL Toolbelt is a set of twelve powerful and intuitive tools that will help you burn through SQL Server chores with astonishing speed and accuracy. Download it now! »

Download: SQL Backup Evaluation Center
Sponsored by Red Gate
Download the T-SQL scripts in the SQL Backup Evaluation Center to compare Red Gate SQL Backup Pro's compressed backups with the size of backups created using native SQL Server. Download it now! »

Autodesk Inventor®
Go Beyond 3D To Digital Prototyping With Autodesk Inventor. Learn How.
Virtualization Solutions
Optimize, Simplify, & Save Today. Learn About Microsoft Solutions.
Microsoft SQL Server® 2008 - Free Trial
Download the Free 180-day Trial of SQL Server® 2008 Enterprise Edition!
Hot Careers in Internet Marketing
Get prepared for your new career with online degrees from Full Sail University!
Microsoft Te

SharePoint Application and Site Pages - Part 1 of 2

In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.

SharePoint Application and Site Pages - Part 2 of 2

As the second article in a two part series, Steven examines the attributes and details of a SharePoint 2007 application page, including the construction and feature deployment of the same page based project. Since this is a WSS level objective, as opposed to MOSS, you will not need MOSS to work with the code included in this project. Windows Server 2003, WSS, and Visual Studio 2005 are all that is needed, with no additional add-ons. He provides a detailed analysis of each step involved in the creation and deployment of the project.

Cutting Edge: AJAX application architecture, Part 2


The second of this two-part series delves into the script services programming model, which is useful if you're looking for a full paradigm shift in building AJAX applications.

Dino Esposito

MSDN Magazine October 2007

Cutting Edge: AJAX Application Architecture, Part 1


In the first of a two-part column, Dino explains AJAX from an architectural standpoint to help developers, architects, designers, and administrators better understand the issues that affect their sites.

Dino Esposito

MSDN Magazine September 2007

Data Points: The Enterprise Library Data Access Application Block, Part 3


E nterprise applications can have a wide variety of data update requirements. Sometimes you need to save multiple rows of changes at once within a single transaction. Other times, the user must be allowed to enter multiple rows of data, send them to the database in a batch; and if a row or two fails, only the rows that succeeded should be committed and remain committed.

John Papa

MSDN Magazine October 2005

Data Points: The Enterprise Library Data Access Application Block, Part 2


Last month I explored the foundation of the Enterprise Library Data Access Application Block (DAAB) including how it all fits into an architecture (see Data Points: The Enterprise Library Data Access Application Block, Part 1).

John Papa

MSDN Magazine August 2005

Data Points: The Enterprise Library Data Access Application Block, Part 1


A solid data access later (DAL) can benefit an application by hiding redundant tasks, helping handle exceptions more gracefully, helping clean up resources more efficiently, and providing a layer of abstraction from the database.

John Papa

MSDN Magazine July 2005

Web Security: Part 2: Introducing the Web Application Manager, Client Authentication Options, and Pr


This article, the second of two parts, continues coverage of Web security for Windows. It introduces the Web Application Manager in IIS that allows Web processes to be isolated, decreasing the security risk associated with running in a logon session. The article then picks up where Part One left off-it discusses authentication methods such as basic authentication, digest authentication, integrated Windows authentication, and anonymous logons, and the benefits and drawbacks of each.

Keith Brown

MSDN Magazine July 2000

I cannot open application page which i created with Intranet and Internet.

for example, if i create an application portal : test:1000, then it is okay. but when i try to create an application portal: www.e.gov.au with ip address  i have added  www.e.gov.au into host files, but cannot open that page, system just said page not found. i just failed and failed. but when i checked in central admin, it is just fine....   can anybody tell me how to resolve it?   regards

The specified view is invalid for web part created during feature activiated

I have some code executing during the Feature Activated event. During this process, I try to insert a list view web part into a page, setting the viewGuid to a custom view already created. But I keep getting the error about the view being invalid. After the feature is activiated, I go through the UI and select the view and the web part uses it just fine. What is going on? Does anyone have a thought, link to answer? I'm sure others have come across this before.

missing asp.net web application in VS 2005 - only see asp.net web site

hi all, i am new to web developement...  i just want to follow a tutorial that guide through how to create a asp webpage i have VS2005 and microsoft .net framework 3.5 installed  but when i click on NEW Website in VS2005, i cannot find teh new ASP.Net Web Application like in this articale is showing http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx but i can only see  ASP.Net Web Site + ASP.Net Web Services + Personal Web Site Starter Kit + Empty Website + ASP.Net Crystal Report Web Site   PS. when i intalled Vs2005, I choosed Full Install. so, please let me know if i am missing something. or, does a ASP.Net Web Application and ASP.Net Web Site will bring you the same thing. however, one thing i notice is that after i create new ASP.Net Web Site, i can't find the Property and or Refference NODE in the Website project-node anywhere. (figure 2 in the above link will give you a better picture of what i am trying to explain)  

Third part plug-in deployment in web application?

I developed a Java Applet for asp.net c# web application, my question is : How should I deploy this Java Applet in my  msi file , I hope that one expert can give me detailed steps for how to put the java applet into msi file?Thanks.

PerformancePoint Service Application could not be created..



While creating PerformancePoint Service Application 1st time I forgot to select the check for adding it to default proxy group.,

so I deleted the PerformancePoint Service Application and trying to create new one and getting this error.,

the managed account used has the DB creator rights as I can create some other Service apps


PerformancePoint Service Application could not be created. Additional details have been logged for the administrator
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'G:\PerformancePoint Service Application_006cbba0dca44c338b184e0ad1b663b2.mdf'. CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

Please suggest..



.tmp file created after process crash when application upgraded to 2.0

After upgrading an asp.net application to 2.0 from 1.1 I am receiving a large 100+MB .tmp file in C:\Temp on the web server when the w3wp process serving that application crashes. If you open the file it looks like it is some sort of dump file. Any ideas how to turn this off. I know what is crashing the application and process. Any help is appreciated. Thanks
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