how to enable message box in IIS server - asp.net

I am building web application using vb.net 2008.
when I debug using the common complier it can show the Message box, but when I use IIS server the message box can't be shown and cause error page.
the error page says:
Showing a modal dialog box or form when the application is not running
in UserInteractive mode is not a valid operation. Specify the
ServiceNotification or DefaultDesktopOnly style to display a
notification from a service application.
is there any setting need to be done to solve this case?
Thanks,

Use could specify the ServiceNotification or DefaultDesktopOnly style, as the error message already told you:
MessageBoxOptions Enumeration
ServiceNotification
The message box is displayed on the active desktop.
The caller is a service notifying the user of an event. The function displays a message box on the current active desktop, even if there is no user logged on to the computer.
DefaultDesktopOnly
The message box is displayed on the active desktop.
This constant is the same as ServiceNotification except that the system displays the message box only on the default desktop of the interactive window station
DefaultDesktopOnly will cause the application that raised the MessageBox to lose focus. The MessageBox that is displayed will not use visual styles. For more information, see Rendering Controls with Visual Styles.
But ask yourself: When you rund a web application, how is going to sit before the server, ready to read and click the MessageBox? Maybe to want to write such messages to the event- or application log instead.

Related

Visual Web Developer 2010 Express hangs when adding web reference

When attempting to add a web reference to my MVC 4 project I do the following:
-Right click on project name and select "Add Service Reference..."
-Click on "Advanced..." button
-Click on "Add Web Reference..." button
-Enter the Web Services API WSDL address in the URL field
At this point it will search and then find the web service and ask me to authenticate the request, after agreeing to continue I am prompted with a login dialog, after entering the correct username and password it will often lock up. Sometimes it will re-display the login dialog and/or pop up some security confirmation boxes that read "Do you want to view only the webpage content that was delivered securely?" (Haven't been able to select Yes or No yet due to application hang around this time).
At this point I have to close the IDE and start the process over. I've tried 5+ times and have updated my system and rebooted.
Any ideas what could be causing this?
Thanks.
Turns out it just took a very very long time. When clicking on pop ups it would stop responding, I found if I waited long enough it would eventually let me make a selection, then the next box would hang. Whole process took well over 20min but eventually went through.
Not sure if this question should be deleted since technically there was no error, I'll leave it up to the mods.
Thanks.

Navigation to google.com and search a string in an aspx page and show the whole process to the user in the browser

Is it possible to navigation to any website like google.com using Webbrowser or any other .net technology like silverlight, html5 etc. in a webpage and programmatically enter in textbox "stackoverflow" and then click search button and then get the results back to save in the database. But most importantly show the whole process of navigation and textbox filling and button click and results to the user in the browser window and webpage.
It can be easily done by putting a webbrowser control in a windows form in windows .net assembly so that user also sees it. But I was wondering if this can be done in a web based way. User must be able to see everything in the browser page in the same way it happens in a windows form with the webbrowser control.
I want to develop a web-based software that does web automation and also show it to the users as it is happening without user downloading any exe etc. Just web based.
Actually it can be done to some extend. But to show the entire process to the user, its another issue. How do you want to share the screen ?
there are a lot of 'browser automation' tools like watin or selinium, where you can 'make' the browser execute actions which are pre-defined.
Again where do you want to 'execute' these all ? In clients browser or on server ? If you do in server, you can share the screen via some streaming API's to the client via flash or silverlight.

How to open localhost server on computer

I am making project on a asp.net(c#). I have completed my project and also i have make a software disc of my project. But when i am trying to access localhost.it show authentication required dialog box.which contain username and password.But i have not set any username and password. How can i overcome from this problem.
This might help. Especially the solution by nramsey34
In IIS, you can right click on either
the Website, or any virtual directory
under a website and bring up the
properties page. Under the 'Directory
Security' tab, click the Edit button
under 'Anonymous Access and
Authentication Control'. This will
bring up a window where you can
configure the authentication method
for your website. To stop it from
asking for a password, make sure that
Anonymous Access is selected. The
username should look like this -
IUSR_YOURPCNAME, and you should let
IIS control the password. You should
still be able to leave Windows
Authentication selected as well, but
to be certain it will not ask for a
password you can also uncheck that
box.
or this one, the solution by boyban
The Login Popup is due to a setting in
your IE Browser. In your IE Browser:
Go to the Top menu "Tools" -> "Internet Options".
Then choose the "Advanced" Tab.
Then Scroll all the way down and "Uncheck" the Checkbox corresponding
to "Enable Integrated Windows
Authentication".
Then Click the button that says "Apply" and then "OK".
Close the browser and in a new browser try http://localhost.

updating Silverlight application # website

I have the following scenario: a Silverlight application (constructed to be OOB) embedded at an ASP.NET website where, if the user already installed it, a label saying that is displayed; otherwise, an install button appears. Eventually I can update the .xap file available in the website.
Now the problem: if the user executes the application through his Desktop/Start Menu, i'm able to update the application and suggest the user to restart it. But, if I update the .xap file and upload it again to the website, apparently no "Silverlight update" occurs, it is displayed as a new application (if the user install it again, an application icon is displayed at his desktop).
Is there something I'm missing or there's nothing to do about this?
Thanks!
Signing the Silverlight application solves the problem.
When you run in a browser, updates are picked up right away (subject to HTTP caching rules). With OOB apps you need to use the App.Current.CheckAndDownloadUpdateAsync() method in your app to have it update.
http://msdn.microsoft.com/en-us/library/system.windows.application.checkanddownloadupdateasync(v=vs.95).aspx
The only drawback is that there is no way to just check for an update and give the users an option to download it conditionally; calling this always updates it if there is an update. You can however hook into the event and find info about the update should you wish. See this resource for more information: http://forums.silverlight.net/forums/p/180931/408554.aspx

Default login popup for web sites

I am trying to build a web site with ASP.NET MVC, I'm new to this. My question is: how can I display the default login dialog? I am not referring to a custom dialog, like the jQuery Dialog, there is a default pop-up for credentials, which looks different depending on browser, same as with javascript alert(), but I don't know how to display it. To know what I mean, go to http://fit.c2.com/wiki.cgi?WelcomeVisitors, there is a Login button at the bottom of the page, when you click it a pop-up appears. That is what I want to display. Any ideas?
So there is no way I can do this with FormsAuthentication?
That dialog is the result of a challenge-response authentication initiated by the server.
In the context of IIS, you would get this if you used windows authentication with no anonymous access.
You do not display this dialog or have anything to do with it other than restricting access to the resource in question.

Resources