Webbrowser control issue in citrix server? - vb.net

I am using a web browser control in my Win Form which is installed in a citrix server when i try to open the application in my local it is working fine (even in IE) without any errors.When I try to open the same application after deploying in server, inside the web browser control I am getting some Java script errors while loading the form.
JavaScript errors are: (Internet Explorer script error)
Invalid character in URL
ASP.NET Ajax client side framework failed
"Sys" is undefined.
Is this error is because of the site which is opened in a control or any configuration is missing or IE issue?? Please help
Thanks in advance.

Related

Blazor Server - How launch IE browser from client machine

I have new Blazor Server application running in EDGE, which need to launch another old application in IE. How we can launch IE browser with a URL from Blazor Server application running in client machine? I used JavaScript previously during asp.net time with window.open. But there's no guarantee that IE going to open with window.open()
Use
Open README file with IE
Learn more:
Open README file with Edge
https://stackoverflow.com/a/53958628/3728901
https://www.computerworld.com/article/3008858/how-to-open-specific-web-browsers-using-hyperlinks.html
https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-default-app

Running ASP.NET app in VS 2015 debugger with firefox throws login failed for user: NT AUTHORITY/ANONYMOUS LOGON

The debug session with VS2015 on my developer workstation works with chrome and connects to the external SQL Server 2012 database from my web app. I cannot figure out why firefox causes this error while in the debugger in the attempt to make a db connection.
Firefox works otherwise with this web app in IIS from the webserver which by the way also contains the database on the same server when running outside of VS 2015.
What am I missing and why would chrome work but not firefox while debugging in VS 2015 in connecting to the database with integrated security turned on
Everything I see on the internet has to do with this issue when running the web app in IIS and the database on an external server with double hop issues. My problem is running from the debugger and only firefox not working! We need to have firefox working for reasons beyond the scope of my question in the debugger.
Has anyone seen anything like this before? Thanks!
Here is my connection string from my web.config (I also tried with Integrated Security=true)
Here is a code snippet where the cmd.Connection.Open() throws the exception
Dim cmd As SqlCommand = GetSqlCommand(GetSelectForBlackPearlPersonal(whereClause, orderBy))
Try
Using cmd.Connection
cmd.Connection.Open()
.
.
.
End Using
Catch ex As Exception
Throw New Exception("Database issue: " & ex.ToString)
End Try
I found in another post that someone set impersonation to false in their web.config.
I just changed the impersonate setting from true to false and now its working on firefox in the debugger
I am baffled....Does anyone know why this would be the case? thanks! Kevin
Your connection string states:"Integrated Security=SSPI". This means that you are using Windows Integrated Authentication.
It allows your Windows users' account credentials (or Active Directory in corporate domains) to pass through their browser to a web server and to SQL Server.
Windows Integrated Authentication is enabled by default for Internet Explorer but not for Mozilla Firefox.
To configure Firefox to use Windows Integrated Authentication:
Open Firefox.
In the address bar type about:config
You will receive a security warning. To continue, click I’ll be careful, I promise.
You will see a list of preferences listed. Find the settings below by browsing through the list or searching for them in the search box. Once you have located each setting, update the value to the following:
network.negotiate-auth.delegation-uris MyIISServer.domain.com
network.automatic-ntlm-auth.trusted-uris MyIISServer.domain.com
network.automatic-ntlm-auth.allow-proxies True
network.negotiate-auth.allow-proxies True
MyIISServer.domain.com should be the fully qualified name of your IIS server
Here are some older posts that provide explanation and, hopefully, an answer to your question.
Configuring Chrome and Firefox for Windows Integrated Authentication
Enabling NTLM Authentication (Single Sign-On) in Firefox
Integrated Windows Authentication with IIS, Firefox and SQL Server

Sahi sign in to mailtrap.io issue

I'm having an issue with Sahi Open Source logging into Mailtrap.io
the script is quite simple:
_navigateTo("https://mailtrap.io/");
_setValue(_textbox("email"), "emailHere");
_setValue(_password("user_password"), "passHere");
_click(_submit("Log in"));
however only first line of code executes.. as soon as I reach mailtrap.io then controller looses grip on html... In case I launch new browser from Sahi Dashboard and navigate to mailtrap.io, then Controller window is not coming up on Alt+doubleClick..
I added SSL cert. Anyone had this issue before? Anyone successfully using sahi with mailtrap?
Cheers.
I got it to work i think.
First I installed Sahi OS 5.0 and opened the firefox browser. With the SSL Manager I added security exceptions for sahi.example.com and mailtrap.io
On navigation to mailtrap I got an error:
Content Security Policy: The page's settings blocked the loading of a resource
This is a browserfeature and can be turned off in the about:config https://stackoverflow.com/a/27324485/1359903
Now the script runs and the controller can access the sites elements. I hope this works for you too.
Regards
globalworming

Dim NewBarcode As New Barcode()

In a class that I have in my web site I'm Importing
Imports IDAutomation.Windows.Forms.LinearBarCode
Imports IDAutomation.Windows.Forms
Also in the code I'm using
Dim NewBarcode As New Barcode()
That Line works fine when I'm running the site in debug mode in my PC localhost:3552
Finaly I'm uploading the code (the all site code) in my ISP Server, when program comes to this line
Dim NewBarcode As New Barcode()
It throws me an error with the following text.
Showing a modal dialogbox or form when the application is not
running in UserInterface mode is not valid. Specify The
ServiceNotification or DefaultDeskTopOnly style to Display a
notification from a service application.
I searcher the Internet about that; but the issue I found was mention only for a messagebox. A control which I don't have it; and I'm not using it.
I suspect that the issue is coming from the
IDAutomation.Windows.Forms
But I don't have any solution for this...
Is there anybody to know how to solve this issue?
The BarCode component you are using is made for winforms, rather than webforms, and will try to show the barcode dialog on the web server, not in the user's browser. It works while testing on your computer because the web server and the web browser are the same machine. When you try to move that code to a real web server, especially one using Windows Server Core (which has no gui), this is the result.

Why am I am getting 404 errors when I try to access my newly-installed CruiseControl.NET Dashboard?

I've just got to the bottom of this, and couldn't find the problem documented anywhere, so thought I would post the question (and answer) for future reference:
I've just installed CruiseControl.NET on a (virtual) Windows Server 2003 and I can't access the Dashboard. CruiseControl (ccnet.exe) runs fine, and IIS6 is up and running, and the the CruiseControl installation installed the Dashboard app under Default Web Sites as "ccnet". It's pointing to the dashboard folder, and the dashboard files are visible in IIIS Manager, but when I try to access http://localhost/ccnet I get a 404: Page Not Found error. I get this whether I use IE or Chrome, or try to Browse the site from IIS Manager.
What's wrong?
ASP.NET was Prohibited, and needed to be Allowed - in IIS Manager, click on Web Service Extensions under the server, select ASP.NET and click Allow.