communication between silverlight plugin and mvc project without using WCF - silverlight

I just need a help regarding the communication between the silverlight plugin which uses webcam and gives response to the mvc application.I just need the breakpoints to be hitted on the silverlight project run mode that are not hitting for the moment.
Any help will be highly appreciated..

On Solution Explorer of Visual Studio right click on your web project and select Properties. Go to the Web tab. In the bottom under Debuggers check Silverlight checkbox. After that you can debug your Silverlight application.

Related

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".

Debug Silverlight component from MVC application Visual Studio 2010

In my solution I have a MVC project. Then I added a Silverlight project. When I added the Silverlight project, I set to include it in the existing web application (MVC project).
It added an .aspx page that contains the Silverlight component. The problem is that I cannot debug into the Silverlight code when I start the ASP.NET MVC application. I set a breakpoint in the Application_Startup function in the Silverlight code, but it never stops there. On the breakpoint I have a tooltip:
The breakpoint will not currently be hit. No symbols have been loaded for this document
How do I fix this problem?
Which browser are you using? I've had mixed results with debugging Silverlight with anything besides Internet Explorer, so I'm making sure to use Internet Explorer when developing Silverlight applications.
If you're using Internet Explorer, then Evan's solution should work (at least that's what has stopped me some time - Silverlight debugging disabled in the web project).
Also check that your Silverlight application is present in the list located under Web project properties > Silverlight Applications.
I found the problem. The browser was caching the Silverlight application. I solved that with the following code when initializing the Silverlight component:
param name="source" value="ClientBin/form.xap?<%= DateTime.Now.Ticks %>"

Silverlight 4 business application themes

We are starting a new SilverLight 4 Business Application project and are looking for theme. All we can find on the web are Navigation Application themes, which when applied to business application project, don't work. Most even have compilation errors.
Is there a place on the web to get theme specifically for that project or is there a way to translate navigation application theme into business application theme?
Thank you
Finally got around finding some.
Here goes :
http://gallery.expression.microsoft.com/en-us/site/search?f[0].Type=RootCategory&f[0].Value=themes&f[0].Text=Themes&f[1].Type=Tag&f[1].Value=RIAServices
Repair RIA Service using below link that issue/error will be solved.
http://download.microsoft.com/download/2/4/1/241B26FF-EC1E-41FE-A782-E669C28A0A00/RiaServices.msi
There are application themes for Silverlight 4 templates at Microsoft Download Center.

TestPage.aspx in silverlight

I am a beginner in silverlight. I want to know what is TestPage.aspx and TestPage.html in silverlight. Actually i have google it but din't get enough information. Can any one give me answer??
TestPage.aspx and TestPage.html are the pages which will host your Silverlight content. As you might know, Silverlight is just a project (not a web application) and needs a page that can host it.
These pages are created by default and help you to test your XAML content during your development, which you can later remove from your project.
TestPage.html is dynamically generated by the Silverlight application as part of the Debug process. If you take a look at the Debug tab for the application properties you will see an option to Dynamically generate a test page. If this is selected then you TestPage.html is created in the /Bin/Debug folder of your Silverlight application.
A better solution is to create a web application in the same solution as your Silverlight application then in the properties for the web application go to the Silverlight Applications tab and add your existing Silverlight app to the web project. Also make sure that the Silverlight checkbox is ticked in the Debuggers section of the Web tab of your web application.

Create a Mobile Web User Control

I am making mobile web pages to be accessed by smartphones and such.
I do not see either Mobile Web Form, or Mobile Web User Control in the list of installed templates in Visual Studio.
I probably need some mobile toolkit or something like that, but I can never find what I am looking for on MSDN. Anyone know what I need to do?
Try downloading the Mobile Web Application Template for Visual Studio.
Source: http://geekswithblogs.net/ranganh/archive/2008/04/01/mobile-web-forms-in-visual-studio-2008.aspx

Resources