500

  -  
I am trying lớn deploy an ASP.NET application. I have deployed the site to lớn IIS, but when visiting it with the browser, it shows me this:

Server Error

500 - Internal server error.

Bạn đang xem: 500

There is a problem with the resource you are looking for, và it cannot be displayed.

After fiddling around with the web.config, I got:

The page cannot be displayed because an internal vps error has occurred.

How can I see the actual issue behind this server error?


*

*

Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
First, you need khổng lồ enable và see detailed errors of your web messages, because this is a general message without giving information on what"s really happening for security reasons.

With the detailed error, you can locate the real issue here.

Also, if you can run the browser on the server, you get details on the error, because the hệ thống recognizes that you are local và shows it khổng lồ you. Or if you can read the log of the server using the event Viewer, you also see the details of your error.

###On IIS 6

###On IIS 7

Note: You can avoid the Debug=true. You only need to lớn close the custom errors for a while & get the detailed error page.

This can help: How khổng lồ enable the detailed error messages (from IIS).

Xem thêm: Nguyên Nhân Màn Hình Máy Tính Bị Trắng Xóa Trên Laptop, Pc, Lỗi Màn Hình Laptop Bị Trắng Xóa


cốt truyện
Improve this answer
Follow
edited Jun 21, 2022 at 14:50
*

H.Sarxha
13722 silver badges99 bronze badges
answered Mar 22, 2011 at 1:53
*

AristosAristos
65.5k1616 gold badges117117 silver badges150150 bronze badges
12
| Show 7 more comments
26
I was pulling my hair out over this issue. Making sure the following entry was in the root web.config file fixed it for me:

Remember that you have to showroom this to the existing XML elements, if they"re already there. You can"t just địa chỉ at the over of the file, because you can"t have multiple copies of any element.


giới thiệu
Improve this answer
Follow
edited Feb 28, 2015 at 21:16
*

Peter Mortensen
30.8k2121 gold badges104104 silver badges125125 bronze badges
answered Feb 2, 2012 at 16:11
Joshua FrankJoshua Frank
12.8k1111 gold badges4545 silver badges9191 bronze badges
add a bình luận |
12
For me, the following code in the web.config was the culprit. When I removed it, the website site worked fine.


nói qua
Improve this answer
Follow
answered May 14, năm trước at 22:55
user3638709user3638709
12911 silver badge22 bronze badges
2
địa chỉ cửa hàng a comment |
11
I finally solved this "500 Internal server" error when deploying the ASP.NET MVC 3.0 application on godaddy.ocm shared hosting.

somehow there were discrepancies on the version of DLL files referenced & version mentioned in tệp tin web.config.

I tried all the options mentioned in various forum. Nothing helped, although everyone suggested the same kind of fix, but somehow it didn"t work in my scenario. Finally after banging my head for two days.I decided to lớn delete all DLL file reference and delete web.cofig (make a local copy) from the project & let the application throw the error and then địa chỉ the DLL files one by one making copy to local=true.

After all the DLL files were added, I created a new ASP.NET MVC application and copied the web.config of new application to lớn my actual application.So my actual application now has a new web.config, and then I copied the connectionstring and other references from the local copy of web.config that I saved.

Xem thêm: Jual Windows 7 Professional Murah, Key Win 7 Ultimate

I just compiled the application and published khổng lồ a local folderand FTP the published thư mục to goDaddy.