• 15 апреля стартует «Курс «SQL-injection Master» ©» от команды The Codeby

    За 3 месяца вы пройдете путь от начальных навыков работы с SQL-запросами к базам данных до продвинутых техник. Научитесь находить уязвимости связанные с базами данных, и внедрять произвольный SQL-код в уязвимые приложения.

    На последнюю неделю приходится экзамен, где нужно будет показать свои навыки, взломав ряд уязвимых учебных сайтов, и добыть флаги. Успешно сдавшие экзамен получат сертификат.

    Запись на курс до 25 апреля. Получить промодоступ ...

Asp помогите разобраться.

  • Автор темы TLD
  • Дата начала
Статус
Закрыто для дальнейших ответов.
T

TLD

Доброго времени суток!
Имеется такая проблема, есть сайт написан на ASP. В его работе (а точнее при работе каталога, сайт ориентирован как E-shop) случайным образом появляется (может появиться, а может и нет.) ошибка такого содержания: :)
Код:
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>
Подскажите с чем это может быть связано. Может ли это быть ошибкой сервера или же ошибка девелопера??

Заранее благодарен за ответ.
 
P

Pasha

Для: TLD
Это заглушка, которая показывается при ЛЮБОЙ ошибке приложения. Сделай то, что написано в секции "Details", чтобы получить подробное сообшение об ошибке.
 
T

TLD

Для: Pasha
Сделал, теперь появилось вот такое сообщение:
Код:
Server Error in '/' Application.
--------------------------------------------------------------------------------

The remote name could not be resolved: 'POST' 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.WebException: The remote name could not be resolved: 'POST'

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 


[WebException: The remote name could not be resolved: 'POST']
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +1447560
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +190
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +318
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +227
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485

[SmtpException: Failure sending mail.]
System.Net.Mail.SmtpClient.Send(MailMessage message) +2074
MouseKiller_Function.Send.Send(String fio, String tel, String mail, String descr, String adr, HttpResponse res, HttpSessionState ss) +205
cmp_basket_sNonReg.LinkButton1_Click(Object sender, EventArgs e) +254
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +105
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Если на русском или хотя бы на php что это значит???
 
P

Pasha

Для: TLD
Это значит, что где-то на странице корзины при клике на кнопку LinkButton1 сайт пытается отправить почту через SMTP Server с именем "POST". Определить IP сервера он не может, и в недоумении падает.
 
T

TLD

Для: Pasha
Большое Вам спасибо. Буду разбираться! :)
 
T

TLD

Разрешив первый вопрос, почти мгновенно появился второй...
Сама ошибка выглядит так:

Можете подсказать решение???
Код:
Извините за некомпетентность в ASP... Вчера впервые с ним познакомился :(
 
Статус
Закрыто для дальнейших ответов.
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!