Can anybody tell me why I'm getting the error message, "the parameter is incorrect" on one of the pages in my project. Basically, this is happening only in IE, and only one 1 server. I have a dev, a test and a live server. The link has a querystring value "city=Québec". I'm not sure if it has anything to do with the special french e character, but this code works in all browsers on the dev and test sites, and in chrome and firefox on the live server, but if I use IE on the live server, the link sends me to a completely white page that says "the parameter is incorrect". I have absolutely no idea why. Anyone have any idea?
My guess is that Firefox is performing UTF-8 encoding on the URL automatically and IE is not. Just change the link to a UTF-8 encoded version and you should be fine. Example: city=Qu%C3%A9bec
It wouldn't hurt to double-check the HTTP headers your server is sending ....
... but clearly the main problem is in the browser and/or client PC.
Look at these links:
Browser language settings (old version of IE):
http://support.microsoft.com/kb/185035
Unable to create temp files:
http://www.ehow.com/info_12218814_temporary-internet-files-parameter-incorrect.html
Q: What version of IE is experiencing the problem?
Related
I've been battling the following error over the past few weeks trying to run UI tests with Selenium (Chrome 92):
WebDriverException unknown error: net::ERR_CONNECTION_RESET. (Session info: chrome=92.0.4515.107)
This occurs most often trying to locate HTML elements using XPath.
Originally, I added a retry loop which checks if the WebDriverException is thrown three times, and if so, recycle the IWebDriver and try again (via IWebDriver.Quit() and IWebDriver.Dispose(). This does not fix the problem, nor does having my application restart after exceeding the retry limit. Thus, I'm starting to think this is a problem at the system-level (Windows Server 2016). Even a reboot does not always fix the issue - when it starts to fail, it just totally freezes and I end up having to completely rebuild the environment.
I'm using the Selenium WebDriver NuGet v92.0.4515.4300; I realize this isn't in total parity with the version listed above, but having the exact same versions does not fix the problem.
I know 'unknown error' is vague. Does anyone have suggestions for what could be causing the problem?
Thanks in advance.
EDIT: Posting browser arguments here, rather than cramming them into a comment. I forgot to mention, there is an instance of Fiddler which we run as a proxy on the local system and use in conjunction with some tests. It's started and ended with the testing application.
The following are injected as options when creating the Chrome instance:
--user-data-dir=C:\temp\{uniquedir}
options.AddUserProfilePreference("credentials_enable_service", false);
options.AddUserProfilePreference("profile.password_manager_enabled", false);
And these are added as command-line arguments through Selenium:
--lang=en-GB
--ignore-certificate-errors
--no-experiments
--disable-translate
--disable-plugins
--enable-logging
--no-sandbox
--dns-prefetch-disable
--disable-gpu
--disable-field-trial-config
(We are doing some security-related detections, hence the disabling of certificate errors.)
You mentioned that you use Fiddler, if the issue is reproducible only when it is started, you can try to regenerate the HTTPS certificates
The issue can be due to the application itself. If the error is shown when you are not using Selenium/ChromeDriver you can ask your developers/devops to check the IIS settings or follow one of the suggestions below.
Check your Internet options from computer Settings->Network&Internet->Proxy. On my computer "Automatically detect Settings" is enabled.
You can also try to delete the Chrome browser cache.
Flush the DNS (ipconfig /flushdns)
It could be some rule (firewall, internal DNS record) configured for the network where is your Windows Server.
Check if the issue is reproducible in incognito mode (without any browser extensions enabled). You can pass --incognito argument when starting the driver.
Issue could be caused by a certificate or SSL/TLS problem.
I am using Telerik Kendo File Upload for uploading folder.
In Production environment, few users are complaining issue with Folder Upload, during upload few files get errored out, using Developer tool in the console tab it logs "ERR_HTTP2_PROTOCOL_ERROR" error as attached for the failed files.
When i am trying i am not getting this error and all folders are getting uploaded properly. I asked user to share the files for which they are facing error and when i tried it uploaded successfully. When user tried again uploading same files which errored out it got succeeded today which were failing yesterday but sill there are files which is giving the same error.
I went through a post where it say the problem could be due to use of HTTP/2 and when they switched to HTTP /1.1 it worked fine. We are also using HTTP/2 but we don't have option of going back to HTTP/1.1. Link below :
https://www.telerik.com/forums/problems-with-multi-file-upload-and-http-2
Any suggestions ?
This is because on your clients machine http/2 is not enabled thus the error prompts.
If you look in your local machine you will see that under your server, you have Https protocol enabled and a valid certificate.
Your clients either lack a valid certificate on the server or are using the site through Http protocol.
you can learn more here:
Http/2 explanation
SETTINGS_MAX_CONCURRENT_STREAMS (0x3):
Indicates the maximum number of concurrent streams that the sender will allow. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. Initially, there is no limit to this value. It is recommended that this value be no smaller than 100, so as to not unnecessarily limit parallelism.
A value of 0 for SETTINGS_MAX_CONCURRENT_STREAMS SHOULD NOT be treated as special by endpoints. A zero value does prevent the creation of new streams; however, this can also happen for any limit that is exhausted with active streams. Servers SHOULD only set a zero value for short durations; if a server does not wish to accept requests, closing the connection is more appropriate.
Resolution : : Add “Http2MaxConcurrentClientStreams” under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters
In Registry and restart server.
Set this value to 100 or >100
I coded an app and I am trying to download a apk from my webspace now. I googled the whole day now and everything I found was for Java I think, but I need C#.
This is what I found (not only this but it's an example): Downloading APK from server and installing it to device (but it's not working I don't know why).
But I have some problems with the code. I can't use the setRequestMethod or getinputstream etc.
Then I tried out this because it seemed to be much easier:
WebClient webClient = new WebClient();
Uri newUri = new Uri("http://mywebspace.bplaced.net/AppDownload.apk");
webClient.DownloadFile(newUri,Path.Combine(Android.OS.Environment.DirectoryDownloads, "AppDownload.apk"));
This is also not working. I'm getting the message "parts of the path not found" (kinda like this, my Visual Studio isn't in English). Doesn't matter what I enter as my path.
This seems to be a duplicate question, which already has been answered here: How to download a file from a URL in C#?
Nevertheless, I have tested your code and for me it is working. I am able to download a file from an url. So, my guess is, that you have a typo in your URL, a problem with the firewall, etc.
Please copy the URL you have entered in the source code and paste it to a Browser of your choice. And see if the download starts. Just to be sure that the URL is correct.
It would better to provide us with the whole error message.
I want to play a local video file from nancy embedded http server. It is OK to read a txt file but once it tries to open a video file it gives error :
"The specified network name is no longer available"
on the line
return Response.AsStream(() => File.OpenRead(#"E:\test_videos\test.mp4"), "video/mp4");
I can play the video from my browser, so what is wrong then?
Update: I could play video on FireFox and IE, the error only occurs in chrome.
You probably need to set a static convention, and serve the files directly without passing them trough nancy.
I have implemented mp4handler for nancyfx and it worked.
Your backslashes are probably getting filtered out of existence, try replacing '\' with '\ \', (no space in there) otherwise looks ok to me
We have a helper method to let us easlily get access to files in our Assets/Images folder
for a weird reason there is an html file there, which is in essence referred to thusly
System.Web.Mvc.UrlHelper helper = new UrlHelper();
return helper.Content("~/Assets/Images/" + String.Format("file.htm"));
IN ie 7, 8, & 9 this correctly resolves to the assets/images folder.
The IT group just started upgrading boxes to IE10, and now when run on and IE10 (which we never tested) I get this error when the code is called.
Could not find a part of the path 'C:\IIS Web Services &
Apps\Application(F(7-lOGKlgR_6Zt3F_ngapPUyhSkzYn6260oMMNwpok0HNB2VLinboD_2zHXiYCJUFPQ2ADaQP14ShDe5_KiRx9J5JtNOL-9UQCLQoDBjhz1Pj6pSJjZcHQ2dg8lBHadwHxlxJjVbxtBeLL125sIZaIafjFzg4g-ZX2Kr6C72TTd7RQFL70))\Assets\Images\file.htm'.
and to make it better, it's only happening on the production servers, not on my development box.
Does anyone have any ideas for a work around?
Any other big IE 10 Gotchas we should be looking for?
That big ugly string in the path variable you referenced appears to the the session Id which IIS/.NET will default to putting in the URL if your browser will not accept cookies or if cookieless sessions are turned on.
I would check
IIS and your web.config for items concerning SessionState and FormsAuthentication and the use of cookies.
IE 10 security settings: it may work on your dev machine since "localhost" would be in the trusted sites and most likely would allow cookies coming from there.