Cannot debug Silverlight application running through VS 2010 - silverlight

I have an start up page called Default.aspx . Have written an javscript function inside the Head tag which opens an other aspx page and closes this page . The other aspx page of mine has silverlight object/ content render on that page . Due to this my debugger doesnt gets attached to the running silverlight application , also when i go to manually attach to the running Silverlight Application it doesnt works , i saw that type of process shown is script / silverlight / x86.
I am doing this all as my login page is only created in silverlight .
Any one have idea how can i get debugger atached.
Edit :
Below link explains the same what i am facing :
Visual Studio Attach to Process - change default automatic code type (Silverlight instead of Script)

To enable Silverlight debugging:
Right click on the Web project hosting the Silverlight application in Solution Explorer
Select "Properties"
Click the "Web" tab
Check the "Silverlight" box in the "Debuggers" section
I had problems debugging Silverlight in Chrome, while in IE it worked like a charm

A very nice utility is the WoVS Default Browser Switcher which can be installed using the Extension Manager (Tools | Extension Manager...)
This tool allows you to set the default browser to be used when debugging your project. In my experience Visual Studio only connects well to IE.
Using the tool I can keep another browser as my default browser but use IE for debugging.

Just use IE as default browser.
It doesn't work properly until you check silver-light debug checkbox and use IE as the others told.
By the way set web application as start-up project.

Related

WebView2 not working on virtual machine in WinForms

I am working on a Winforms project in .Net-7.0 and using WebView2 to display an HTML page available online.
The app works fine in the local system so I know there is no coding related problem but once installed on a VM, WebView2 does not show the HTML page.
I have opened the HTML page in the VM browser and it opens fine so the site is not blocked either in some way.
Any other things that I should check for?
(Skipping the code because it does not look like a code related problem to me.)

Can I embed a browser or emulator view into vs code

I have recently discovered that Android Studio has a feature to display the emulator as a tab inside its own view which allows faster UI development.
You can click anywhere, browse files, etc. but the tab will always be there and you don't have to bring it to the front whenever you make a change and see how it looks.
Is there a way to do a similar thing with vs code on win10 with the android emulator for flutter or with chrome/edge for react?

Problems with making Silverlight project out of browser

I have a task to make large Silverlight project run out of browser.
Fortunatelly I don't have to rewrite it to some other technology. Unfortunatelly I can not understand how to make it work OOB. I tried everything that's in guides :
enabling OOB option, installing and tryiung to debug installed app, but main thing is that when I run this app OOB I can't reach any services (no matter how I try HTML Bridge is disabled in OOB).
Is there a way to reach those services (like https://localhost/WCFRest/GetUserInfo?login=somelogin&password=somepassword) from OOB enviroment?
What should I do to reach them?
I'm sorry if this is noob quetion but I can't ask anyone else.
I assume you have a Web project in your solution. I think you changed the startup project to the silverlight project. You need to start up the Web project too.
Do the following:
Right click on the solution in the Solution Explorer and select Properties.
Select "Multiple startup projects" and set the action to "Start" (on the web project)
Or just simply right click on a HTML or ASPX file in the web project and select "View in Browser".

reCAPTCHA v2 with wpf webbrowser / frame control

reCAPTCHA has limitation on browser supports however it works on IE without adding any value in compatibility mode. I have been trying multiple things with WPF application which is displaying a webpage hosted inside a Frame (or Web Browser) control. That webpage has Google reCAPTCHA V2 (I'm not a robot). It works fine in all the browsers but inside WPF app it fails to display properly.
Based on following link we need to have specific browser support
https://support.google.com/recaptcha#6262736
I also made sure javascripts are enabled and working fine. Any suggestion?
I ran into this issue as well and the only thing I know how to make it work is go into the recaptcha admin console and slide the security preference to the easiest so the webBrowser control can do the image verification at the very least
Update:
Found out basically because the web browser control is IE 7 by default
Use latest version of Internet Explorer in the webbrowser control

Silverlight not loading inside WebBrowser control

There is a web page with a silverlight control, when we use browsers like IE, chrome etc, they are all working.
We develop a desktop program, embed a WebBrowser control to a win form, and navigate to the web page, the silverlight object is not initializing, only shows the silverlight logo, just like the silverlight has not yet installed, but actuall it has installed and working.
Is it the limitation for silverlight or there should be some kind of security settings in IE or the WebBrowser control?
I run silverlight in browsers as well as in a 'client' application (WPF, using a webbrowser type control). I can tell you in my project works without any issues, I've not had to change any settings apart from one - as I run it local host, IE prompts me about running in intranet mode.
You should use fiddler to see the exact URL that is being used in the navigation and to see if there are any errors returning from the web server.
I know it's not exact help, but I can confirm it should work. Hopefully that can help narrow your search a little.

Resources