|
Компьютерный форум OSzone.net » Компьютеры + Интернет » Вебмастеру » Ошибка в web.config файле |
|
Ошибка в web.config файле
|
Новый участник Сообщения: 21 |
Профиль | Отправить PM | Цитировать
Как ее исправить??? Когда я открываю сайт (локальный в домене офиса) на главной машине он выдает такую ошибку:
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. Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly"/> </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> <customErrors mode="On" defaultRedirect="mycustompage.htm"/> </system.web> </configuration> А через другой комп такую: 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> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration> |
|
Отправлено: 15:45, 17-02-2010 |
Ветеран Сообщения: 5624
|
Профиль | Отправить PM | Цитировать Мда, видимо, текст вы не переводили написанный. Ошибка вовсе не в файле конфигурации. Данный текст сообщает, что текущие настройки конфигурации не позволяют отобразить данные об ошибке. Чтобы увидеть саму ошибку, надо в файле web.config прописать строку
<customErrors mode="Off"/> Также желательно в оснастке IIS в свойствах виртуального каталога сайта включить подробные сообщения об ошибке с отображением на сервере и на клиенте. |
------- Отправлено: 01:00, 18-02-2010 | #2 |
Для отключения данного рекламного блока вам необходимо зарегистрироваться или войти с учетной записью социальной сети. Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля. |
Новый участник Сообщения: 21
|
Профиль | Отправить PM | Цитировать Это портал на SharePoint.
Я сделала <customErrors mode="Off"/> и теперь выдает такую ошибку и там и там: Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Data at the root level is invalid. Line 1, position 1. Source Error: Line 1: <browsers> Line 2: <browser id="Safari2" parentID="Safari1Plus"> Line 3: <controlAdapters> Source File: /App_Browsers/compat.browser Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 Все работало нормально, я ничего не меняла, из-за чего она появилась там я не понимаю. |
Отправлено: 08:43, 18-02-2010 | #3 |
Ветеран Сообщения: 5624
|
Профиль | Отправить PM | Цитировать В каком браузере просматривается? В других пробовали?
|
------- Отправлено: 09:30, 18-02-2010 | #4 |
Новый участник Сообщения: 21
|
Профиль | Отправить PM | Цитировать IE, Opera, FireFox - это те что я видела.
|
|
Отправлено: 10:22, 18-02-2010 | #5 |
Новый участник Сообщения: 5
|
Профиль | Отправить PM | Цитировать У меня была такая же проблема при просмотре одного сайта.
Решил проблему установив на рабочую станцию (Win Xp sp3) Дистрибутивный пакет Microsoft .NET Framework 2.0 (x86) Тут После перезагрузки всё заработало. |
Отправлено: 23:52, 18-03-2011 | #6 |
Участник сейчас на форуме | Участник вне форума | Автор темы | Сообщение прикреплено |
| |||||
Название темы | Автор | Информация о форуме | Ответов | Последнее сообщение | |
Установка драйвера для Nokia 5800.Ошибка на файле wdfcoinstaller01007.dll.Неудачно | DreDo | Мобильные ОС, смартфоны и планшеты | 13 | 02-12-2009 17:28 | |
[решено] Ошибка при загрузке windows\system32\config\system missing or corrupt | WChek | Microsoft Windows NT/2000/2003 | 5 | 20-11-2009 16:09 | |
[решено] При посл.закачке 2х файлов через InetGet на 2ом файле всегда ошибка! | FlatX007 | AutoIt | 12 | 26-08-2009 10:03 | |
Установка - Ошибка в файле RTDLL.MAN | NoTitLe | Microsoft Windows 2000/XP | 1 | 06-05-2008 09:15 | |
Web Money ошибка ЭЦП | SASHA 333 | Хочу все знать | 1 | 24-01-2005 18:38 |
|