Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

Problem with web.config file

Posted: Feb/12/2010   By: pankaj   Points:15   Category: .NET  - .NET Framework    Views:134   Vote Up (0)   Vote Down (0)    
Hi, I have a hosting plan with .NET 2.0, 3.0, 3.5
Windows Server 2008 / IIS 7.0. I made a project in asp.net (net 2.0) but when i upload it to my hosting plan I always get this error message:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

I removed web.config file from my directory and start getting the main page of my website but when i click on the button (asp.net button which verifies the password from the database after taking it from a checkbox) i get the following error message.
Server Error in '/' Application.


Runtime Error




Description: An
application error occurred on the server. The current custom error
settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could,
however, be viewed by browsers running on the local server machine.

Details: To enable the
details of this specific error message to be viewable on remote
machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have
its "mode" attribute set to "Off".







<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>






Notes:
The current error page you are seeing can be replaced by a custom error
page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page
URL.







<!-- Web.Config Configuration File --><configuration> <system.web> <cus

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Concurrent Affairs: Solving The Dining Philosophers Problem With Asynchronous Agents

  
We use the new Asynchronous Agents Library in Visual C++ 2010 to solve the classic Dining Philosophers concurrency problem.Rick MolloyMSDN Magazine June 2009

Toolbox: Easy File Backup, Exploring Files And Folders Inside Visual Studio, Multiple Monitor Softwa

  
If the responsibility for creating, managing, and executing routine backups is yours, these tools will make it easier. Also see how you can browse folders and files from inside Visual Studio.Scott MitchellMSDN Magazine May 2009

Access Control: Understanding Windows File And Registry Permissions

  
Understanding the ACLs that govern permissions and rights before an operation is allowed to proceed is critical to enhancing security.John R. MichenerMSDN Magazine November 2008

NTFS: Enhance Your Apps With File System Transactions

  
Presented here is an overview of Transactional NTFS and how it revolutionizes transactions.Jason OlsonMSDN Magazine July 2007

Extreme ASP.NET: A New Solution to an Old State Storage Problem

  
State management in Web applications is a contentious issue. Should you store user data per session or should you persist it across sessions? You can easily store information temporarily while someone navigates your site by using session state. Fritz OnionMSDN Magazine April 2006

.NET Matters: File Copy Progress, Custom Thread Pools

  
Stephen ToubMSDN Magazine February 2005

The ASP Column: What's in ASP.NET Config Files?

  
Even though you've been using ASP. NET for a while, how much do you really know about ASP. NET configuration files? While you've probably touched the Web. config file from time to time, there are some nuances involved in configuring ASP. George ShepherdMSDN Magazine September 2004

Resource File: Blogging Tools

  
Aaron SkonnardMSDN Magazine June 2004

Resource File: Microsoft Newsgroups for Developers

  
Microsoft offers more than 1,900 public and 500 private newsgroups that cover all aspects of Microsoft products and technologies. An individual newsgroup might get up to 15,000 postings per month, with developers answering customer questions, asking about specific product features, and getting product feedback. MSDN Magazine May 2004

Resource File: ASP.NET "Whidbey"

  
MSDN Magazine March 2004
 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge