Hello.
We have some AJAX calls that have stoppped working because of DW injection checks and I was wondering 1) what parts of it are the problem and 2) if there is a way to get around it without changing the parameters.
The call is, for example, "http://ebk2_dw8.local.dynamicweb.pt/public/EBKajaxCalls.ashx?str_resultId=2068&obj_mealplan[0][str_mealPlan]=3&obj_tariff[0][num_tariffId]=1&obj_schedule[0][num_scheduleIndex]=" (on my local machine). If I don´t disable injection checks I get a 404 message. If I disable the injection checks I get this:
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.dynamicsystems.dk' at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at Dynamicweb.Database.SqlInjectionSendMail(String illegalFound)
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.dynamicsystems.dk' at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at Dynamicweb.Database.SqlInjectionSendMail(String illegalFound)
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.dynamicsystems.dk' at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at Dynamicweb.Database.SqlInjectionSendMail(String illegalFound)
{"FullPrice":170.00,"UnitPrice":150.00,"FullPricePerDay":170.00,"FullPricePerPerson":85.00,"FullPricePerPersonPerDay":85.00,"fullPricePerPersonType":[{"Id":3,"Price":75.00}],"fullPricePerPersonTypePerDay":[{"Id":3,"Price":75.00}],"UnitPricePerDay":150.00,"PriceWithExtras":290.00,"PriceWithExtrasPerDay":290.00,"PriceWithExtrasPerPerson":145.00,"PriceWithExtrasPerPersonPerDay":145.00,"PriceWithExtrasPerPersonType":[{"Id":3,"Price":135.00}],"PriceWithExtrasPerPersonTypePerDay":[{"Id":3,"Price":135.00}],"AvailableExtras":[{"Id":2,"Name":"Acesso ao ginásio","Price":"5,00","PricePerDay":"5,00"},{"Id":1,"Name":"Berço extra","Price":"10,00","PricePerDay":"10,00"}]}
Any ideas on how to get it working again?
Thanks.
Marco