Can´t execute asp-classic scripts in Windows server 2012 when call them from a client in Delphi-7 - server

I have migrated an application that was running on Windows Server 2008 to one on Windows Server 2012.
It is a desktop application that makes many calls to the server's .asp scripts, and from them calls are made to stored procedures in SQL Server.
The program that makes the calls from the client computer, is a DLL made in Delphi 7.
This mount was working properly on the computer on Windows Server 2008.
But now I have come to the conclusion that scrips are not executed in .asp since I do not receive a response from the server, although I see in the .log file they are called and with the correct parameters.
The following lines are from the .log file
2018-11-27 15:51:20 nn.nnn.nnn.223 GET /soporte/lnk_mnto.asp COD=MFM0010010LRN&APP=MF&cachedisable=FNFAJDNHFIDLELA 80 - nn.nnn.nnn.nnn HTTP/1.0 Mozilla/4.0+(compatible;+Synapse) - www.ikutgroup.com 301 0 0 569 205 62
2018-11-27 15:52:36 nn.nnn.nn.223 GET /soporte/lnk_mnto.asp COD=MNF5369168SB7&APP=MN&cachedisable=IHOLGLANIEKMBJE 80 - 89.128.30.175 HTTP/1.0 Mozilla/4.0+(compatible;+Synapse) - www.ikutgroup.com 301 0 0 569 205 46
As you can see, COD and APP are the parameters that the script lnk_mnto.asp needs, and the call from the Delphi DLL is registered in the log file, but the DLL doesn't receive an answer.
But, if I call the asp script directly from the browser through this call:
http://xxxxxxxx.com/soporte/lnk_mnto.asp?COD=MNF5369168SB7&APP=MN&cachedisable=HNIKNFNMEJMFBDH
I receive the correct answer.
I know that in the first case, the script is not executed, because I added in the first instructions of it the recording of a line in the database, and this does not occur. Instead, when the script is called from the browser, the row is recorded in the table of the database.
I think it's a problem of permissions, but I have no idea what I should look at to correct it.
Do you have any ideas that allow me to try to solve my problem?

No. Is the dll from the Client computer who call to the .asp script in the Server.
But in the end I made a new test program in Delphi, copying the instructions that call the script in .ASP and when I ran it I saw that it returned an error of the type:
<.head><.title>Document Moved<./title><./head>
<.body><.h1>Object Moved<./h1>This document may be found <.a HREF="http://myweb.com/soporte/lnk_mnto?COD=MNF873455SB7&APP=MN&cachedisable=GNDECGBLJBFHBHA">here<./a>
Then I looked for information on the web about this error message and I found the following page that has solved my problem
https://network.convergenceservices.in/forum/68-plesk-panel-hosting/3711-document-moved-or-object-moved-error.html
In short, it says that in the Plesk configuration of the page, you have to put 'none' to the question: 'Preferred domain'.
Login into the plesk control Panel
Click on Websites & Domains
Click on Hosting Settings
Select the “None” drop down list box from “Preferred domain”
Click on OK
Now my problem is solved.
Thank you very much to all.

Related

DYMO Label Web Service Printing Slow

I am noticing a delay of 5 to 15 seconds when printing using the DYMO Label Web Service starting this morning, 4/23/2018. This happens on multiple PCs on all browsers. On a Mac it works fine.
The log at %LocalAppData%\DYMO\DLS8\DLSWebService.log seems to show the delay. I don't see any errors in the Console beyond the usual Synchronous XMLHttpRequest on the main thread is deprecated warning.
DYMO.DLS.Printing.Host.exe Information: 0 : PrintLabel: DYMO LabelWriter 450 Turbo
DateTime=2018-04-23T17:08:34.9541652Z
DYMO.DLS.Printing.Host.exe Information: 0 : Loading barcode lib from C:\Program Files (x86)\DYMO\DYMO Label Software\MDYMOBarcode.dll
DateTime=2018-04-23T17:08:50.1456872Z
DYMO.DLS.Printing.Host.exe Information: 0 : Utils.CreateLabelPrintParams(): printParams == null, creating default printParams based on printer type
DateTime=2018-04-23T17:08:50.1547276Z
Status for job sent to printer DYMO LabelWriter 450 Turbo i False
DYMO.DLS.Printing.Host.exe Information: 0 : CheckServiceStatus
DateTime=2018-04-23T17:08:51.3098746Z
DYMO.DLS.Printing.Host.exe Information: 0 : GetPrinters
DateTime=2018-04-23T17:08:51.3269198Z
I tried updating to DLS8Setup.8.7.exe but this did not help.
I broke out Procmon and got to the bottom of this.
It appears to be due to the Dymo Label Service querying 128.30.52.100 (hans-moleman.w3.org) every time it was fed a label to validate its schema. We were not being rate limited by this service until today.
Setting an outbound firewall rule against this IP address for the DLS service executable fixed the issue.
We just ran into this as well. Apparently the Dymo print service is trying to validate the generated xml against an xsd file. That file is not cached, so the print service is hitting w3.org to download it. Some time recently w3.org stopped responding to this request, making the xml validation slow as the request times out. So this is unrelated to any Windows update, update to the Dymo print service, or update to any browser.
If you run this command in Windows power shell as an administrator (and the path to your service is the same as ours), it will block the call to w3.org, causing it to fail fast instead of slow and move on to printing.
New-NetFirewallRule -DisplayName "dymo-xsd-exclude" -Direction Outbound -Action Block -Program "C:\Program Files (x86)\Dymo\DYMO Label Software\DYMO.DLS.Printing.Host.exe" -RemoteAddress 128.30.52.100
This is a short term solution. The correct solution is for Dymo to update their print service to include the xsd instead of calling across the internet for it.
I have been experiencing this issue too, here is the link to the Dymo Developers blog and the recommended solutions.
http://developers.dymo.com/2018/04/24/recent-issues-with-slow-printing/
The 2 solutions recommended on this blog are:
1) Prevent connections to 128.30.52.100 (http://www.w3.org/1998/XMLSchema)
2) Use the windows defender firewall to prevent DYMO.DLS.Printing.Host.exe from making outbound connections.
FYI. Dymo has a fix posted. They released version 8.7.1 which fixes the slowness issues. It can be downloaded from the developers site:
http://developers.dymo.com/2018/04/24/recent-issues-with-slow-printing/

Zumero error 1992: http_404

I've successfully configured ZSS Server on my internal system (Win Server 2008R2 + IIS 7.5), and everything works fine.
Now I'm trying to install the same system on a customer machine; I've done this through the installer (latest version), he has applied the necessary security permissions, the home page of the site is visible, but syncing the db give the 1992 error.
Taking a look at IIS logs, I see that every call with GET /pull result in a 404 error code, subcode 0; there are several consecutive statements like this, all terminating wi9th 404.0 error code.
The web.config is the same as my system. What else can I check ?
You say you can reach the home page of the site - do you mean the "main" IIS home page, or the root of the ZSS site? That is, assuming Zumero is running on port 8080, what do you see when you point a browser at http://your.customer.site:8080?
I my case it was caused by the Application pool being configured for 32 bit (which it should not be). Version 1.4 has an improved installer, that should prevent this from happening

Can Selenium IDE deal effectively with Browser alerts

Hi I am currently writing a Test script for an ecommerce site using Seleneium IDE, this is in a testing environment in HTTP. The issue I am having is the test payment gateway 3D Secure is in HTTPS so when using FireFox the browser displays the security warning message when I am returning from the payment gateway 3D Secure HTTPS to the site testing environment.
'Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.
Are you sure you want to continue sending this information?'
I have tried the various commands in the IDE for waitForAlert* and asertAlert* but this javascript alert just seems to over ride any of the commands I use and essentially halts the script until manual intervention is used.
I am unable to turn this particular alert off in FF from what I can assertain from various forums as it is too important to be switched off, I have tried in FF about:config
I can obviusly switch the 3D secure off to allow thee script to run, but I would prefer a complete user scenario to be tested as opposed to a test adapted to suit automation.
Many thanks in advance for your time and assistance.
I had exactly the same problem :
I use Selenium web driver to test against my local http server which sends redirects to https service (3DS as well btw ;). The problem is not with certs, but with this hardcoded warning of switching between https/http.
Based on the link from MacGyver's answer and this answer Key press in (Ctrl+A) Selenium WebDriver, I tested this and I can confirm it closes "Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party" dialog:
Alert alert = driver.switchTo().alert();
alert.accept();
The other solution, seems to work fine but you'll get UnhandledAlertException with latest Selenium versions (e.g. 2.25.0) :
Actions a = new Actions(driver);
a.sendKeys(Keys.ENTER).perform();
Option #1:
The easiest way is to remove the option in security options for your profile:
http://forums.mozillazine.org/viewtopic.php?f=38&t=665552
Option #2:
Not sure if this applies to an untrusted certifiate or your security warning, but the forum thread seemed to fit. It requires that you use Selenium RC Server.
Profiles are stored here for Firefox: %APPDATA%\Mozilla\Firefox
Profiles can be edited: http://www.dennisplucinik.com/blog/2011/02/04/how-to-install-run-multiple-firefox-versions-in-windows-simultaneously/
Follow the snippet below from this link:
http://old.nabble.com/Security-Warning-on-final-page,-how-to-remove-td22907376.html
If using Firefox 3, see the following post https://developer.mozilla.org/En/Cert_override.txt
The solution I use to get past this security pop-up is only applicable to Firefox 3 browsers and might be more of an hack than a fix but it works.
Run the selenium test
Select "Accept this certificate permanently" when prompted by popup
Click on the OK button (it might be neccessary to have a pause after this because we need to open explorer to find a file now)
Open Windows Explorer and navigate to => "C:\Users\xxxxxxxx\AppData\Local\Temp\customProfileDirxxxx"
This is a temparary profile created by Firefox which contains a file called "cert_override.txt"
Copy "cert_override.txt" to your temp directory
Stop your selenium server.
Open your "selenium-server.jar" file from "c:\selenium-remote-control-xxx\selenium-server-xxx" using WinRar
Drag "cert_override.txt" file into the "selenium-server.jar\customProfileDirCUSTFFCHROME" folder in WinRar (do not delete or edit anything in the .jar file!!!!!)
Close WinRar, start selenium and try it again :)

PHP Slow to process soap request via browser but fine on the command line

I am trying to connect to an external SOAP service using PHP and have written a small php test script that just connects to the service and performs a simple request to check everything is working.
This all works correctly but when I run via a browser request, it is very slow taking somewhere in the region of 40s to establish the initial connection. When I do the same request using the exact same script on the command line, it goes through straight away.
Does anyone have any ideas as to why this might be?
Cheers
PHP caches the wsdl in /tmp. If you run from the command line first, the cache file will be owned by whatever user you're running the script as, and apache won't be able to read the cache. The wsdl will have to be downloaded and parsed every time which will be slow.
Check the permissions of /tmp/wsdl*.
Maybe external SOAP service trying to check your IP, and your server has ICMP allowed, when your local network - not.
Anyway, this question might be answered more clearly by administrator of external SOAP service :)
Is there a difference between the php.inis that are being used?
On a standard ubuntu server installation:
diff /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
//edit:
Another difference might be in the include paths. Had this trouble myself on a local test server, it didn't actually use the soap class that was included (it didn't include anything, because the search paths weren't valid), but it included the built-in soap_client class.

running a .net web service on iis6 deployed on windows 2003 server sp2

To whom it may respond to,
We have deployed a web service to Windows 2003 Server SP2 , .net framework 3.5 .
"The service is not running , we are getting the error :
The website declined to show this webpage
HTTP 403
Most likely causes:
•This website requires you to log in.
What you can try:
Go back to the previous page.
More information
This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
For more information about HTTP errors, see Help."
We have played around with the permissions but the situation didn't change a bit.
We would be very glad ideas on it,
Thank you for your concern,
Best Regards,
Kayhan YUKSEL
Make sure you have aspnet_isapi.dll as your wildcard handler in the Virtual Directory setup. Properties --> Virtual Directory --> Configuration --> Insert... --> aspnet_isapi.dll, make sure you uncheck Verify that file exists.