I have a need to host WCF RIA Services outside IIS on a client machine. After reading the following threads:
http://forums.silverlight.net/forums/p/182302/413287.aspx
Can WCF RIA Services be self hosted?
http://forums.silverlight.net/forums/p/213861/512468.aspx
http://social.msdn.microsoft.com/Forums/en-CA/silverlightdeveloper/thread/804341f3-9f1e-420b-9cdc-c1334bd9302f
I gave up on that idea due to the "AspNetCompatibilityRequirementsAttribute" that RIA Service uses and started researching alternative solutions.
However, just yesterday I read more about Visual Studio LightSwitch and the fact that uses WCF RIA Services internally. With LightSwitch, you can deploy your appliction in a 2-tier scenario on the desktop that gets installed using ClickOnce and runs as a Silverlight out-of-browser application that can access data without connectiong to IIS.
Does anyone know how this can be accomplished?
Thank you in advance
Lightswitch uses Visual Studio's Cassini server in the 2-tier scenario. I don't know much more about how it's hosted. In summary, it's still an ASP.NET compatible environment but this time with dependencies on Visual Studio.
Related
I'm using WPF with asp.net core as sever, for client & server communications we have implemented signalR framework.
It is connecting seamlessly when I'm running project through Visual studio / development environment. When I take setup for WPF application it throughs below exception shown in screen shot.
I have corrected all the package versions, related to asp.net core, signalR core for client and server, all are under same version specified by Microsoft documentation.
Difference between aspnet SignalR and AspNet Core SignalR
Versions I'm using
Can any one help me on this.
I have deployed an Website built with angularjs and a Web Service Running Nancyfx framework rather than the "suggested" Web Api. I also use 2 SQL Databases.
I did this from Visual Studio where I have my project running. However the app (still in development) was developed locally on my mac and then just copied in visual studio.
Since I would be working with a friend of mine on it (who also uses mac) and we already have it on bitbucket with Git (my local version) I was wondering if it was possible to 'Set up deployment from source control' but only for the "website" part, meaning the angularjs. The web service needs to obviously be deployed from Visual Studio (I'm the only one working on that part).
Is there any way to achieve this? If I set up deployment from source control and then publish to the website from visual studio, would this override the existing version and current deployment last updated from Git? will it get denied publishing since it's set up from Git?
I am not sure how to better approach this.
The dirty way would be to set git for me and my friend on my local "app" folder of my Visual Studio solution so that I get his changes and then it's my job to publish it to azure via Visual Studio.
Turned out that what i needed is exactly this: Publish WebAPI and MVC projects to same Azure Web Site?
I therefore split my webservice (API) project so it's by itself and published that to mywebsite/api while my app resides on mywebsite/app so that I can publish my webservice changes from visual studio without problems, and also publish the changes to my angularjs app via git.
I haven't encountered any downside atm of doing this but it seems this is the best approach.
I realize that a local SQL Server instance is not accessible to my Windows 8 app. Instead, I have a SQL Server in Azure. In SQL Server Management Studio, I just change the querystring and interact with the Azure database like any other. How can I reference that database in my Windows 8 app?
This is what the Azure Mobile Services SDK is for. Scott Guthrie did a writeup on it a while back.
Undoubtedly you're aware that both ado.net and Entity Framework are missing from WinRT... Notice the glaring absence of support for System.Data.
You can't access directly on sql databases.. Because Windows 8 Apps different from windows forms.
But you can be used web services or azure, amazon services, storage files etc.
sounds like you want to develop a web service talking to your database, deploy it to IIS on your Azure instance and then consume it from your Windows 8 application (by adding a web reference to your web service in Visual Studio).
You can also place an OData head on the database, then use various OData client-side libraries to talk to it via REST. See http://www.odata.org/libraries for both client and server libraries. SQL Server on Azure is definitely supported, as is .NET, JavaScript, and other platforms on the client side.
I have a Silverlight 4 application which uses RIA Services.
I updated Ria Services SP1 to SP2.
In my local pc my application works without any issues but when I deploy it to a server and I try to use it I get a very annoying message:
"HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly"
Before my application worked perfectly I just applied the ria services sp2 upgrade.
Ria Servcies is not installed on the server but the necessary dlls are in the bin folder.
Anybody can help me?
l.
Install RIA on the server... that way you can be sure all the correct DLLs are installed and registered in the right place on the machine.
You'll need to run msiexec with SERVER=TRUE
http://msdn.microsoft.com/en-us/library/ff426912(v=vs.91).aspx
I've developed a Lync Silverlight application and it is working on my local machine. Then I needed to add this Silverlight to a Sharepoint site, thus i used Silverlight web part. It is OK on my local Sharepoint site but when i install it to server i could not see the Silverlight and not getting error.
I am using web service on my Silverlight application. I check that server can access to web services. My development environment is Visual Studio 2010 and Lync Server 2010. Also I am using Sharepoint 2010.
Here is what i tried for the solution:
Check the whether IIS is configured for xap - OK
I tried to install xap file through Sharepoint module, it did not work.
I tried to use a visual web part, it did not work.
I tried to embed xap file to an HTML page for debugging, there was no error.
Now i am stuck. Any suggestion will be appreciated.
Have you cross-verify with which Silverlight sdk version you have developed your silverlight application.
And server is having that version installed?
if it's working fine with your local server then it also works fine with another server.
regards.