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.
Related
I am designing the 8th update to my tabbed vb web browser (found at swordfish.savershot.net)in VB Express 08 and I'm having trouble with something. Whenever a webpage wants to open a link in a new tab (aka: Google Drive New Document), Internet Explorer turns on and runs the tab through them. I understand how it happens, because VB.NET by default uses IE as their Web Browsing core. However, I do not like it and I would love to be able to set those links to either open in a new tab in my browser or a new window in my browser. I have found a way to cancel the operation altogether but that's not very user friendly and I'd love to get my browser to a level where I can actually use it comfortably without annoying issues occurring. Thanks for the help.
I have been using below code for a while to click on all non-web application based popups. ex windows security login popup in case my web app tries to upload a file. All worked fine so far all of sudden the same code stops working and hangs at the popup screen but works if i have break point in my visual studio code.
WinWaitActive("Windows Security",,7)
ControlClick("Windows Security",,"Button2")
I have crossed checked the OK button name nothing has change but the above code refuse to work any more. Using Visual studio 2010 vb.net.
Have you tried using the ImageSearchDLL? It allows you to take a screenshot of a button (or image, link, etc.) and use it as a reference for where to click. For more usage info and to download sample code look here: http://www.autoitscript.com/forum/topic/65748-image-search-library/page-4
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.
I have written a vb.net application that I want to put on a webpage (like a Java applet). My application connects to an external website to scrape data (using the WebBrowser control). How do I put my application online?
You can't run a Windows Form application inside a browser like a plugin (unless you do a lot of work to get it to run as an ActiveX control and that would only be IE).
Perhaps you could make an installer using ClickOnce or something else?
I have a web application based on vb.net
I used MsgBox() in my MYPage.aspx.vb where my expectation is that the user on client should click on a button and based on it I would process further.
But I heard a suggestion the MsgBox() is working fine in my code cause on developer machine(my dev box) webserver is running locally. This does not work on a remote web server or in any hosted environment outside of a local server.
Is this true?
Is this true?
Yes. Server side code is executed on the server. The VB.NET Code Behind is executed on the server. You were seeing it on your development station because the server and client were the same machine.
If someone else were to browse to your server from another client, the dialog box would appear on the server and the user would never see it.
If you need to do a confirmation to the user, you need to use some sort of clientside code, like JavaScript and confirm.
There is no MessageBox in a web environment. It wouldn't make much sense to show a MessageBox on the server, but it compiles anyway.
So you either need to use a jQuery approach or a simple alert:
ScriptManager.RegisterStartupScript(page, page.GetType(), "MyScript", "alert('Hello World');", true)