Newbie here. I have created a Silverlight App which retrieves data via WCF RIA Services. Now I would like test it to another PC so I did a Publish. The folder contains bin, ClientBin (with xap), .html, .config, etc.
I then copied the folder to the other PCe and opened the *.html file
My silverlight app didn't run. Do I really need to configure the IIS for the other machine and deploy the binaries there to see my silverlight application in action?
Thanks!
If you want simply to watch Silverlight UI (without using WCF) you can, of cource, open *.html page with the application. But if your application needs in WCF service, the service should be runned.
If your machines in domain group and you have IIS installed for one of them, you can in Visual Studio in project properties configure use local IIS insted of developers web-server, then you should update service references and then you can browse silverlight app. from within any computer in domain network.
Related
I have a multi tier windows application. one of the layers is implemented using web services and the UI layer communicate with this layer. I want to make an installation package for the application and i need the installation package to deploy the web services to the local machine's IIS during the installation, so the user doesn't need to go to IIS and configure it manually.
You can package your Web Service (or any web application) as a Web Deploy Package.
See this link on how to do this from Visual Studio: https://www.tutlane.com/tutorial/aspnet-mvc/asp-net-mvc-publish-with-web-deploy-package
Such a package also comes with a .cmd file that could be run by your setup. Read the deploy-readme.txt alongside it to learn more.
I need a way to run web application , like as we do for windows form application by clicking .exe file from bin folder.
Example:if windows form application namely "helloworld" is created means, we can move to the actual folder where the project is stored and we can run the application manually by moving into helloworld folder->bin folder->debug folder-> helloworld.exe.
Likewise i need a way to run wed based applications.I am using C# language in Visual studio 2010
you run web applications by publishing them to a web server and then opening a link in browser. your options are:
open project in visual studio and hit F5 to start debugging. visual studio will launch a built-in webserver to host your application. while it's running you will be able to access it via url similar to http://localhost:53212/appurl
if you have IIS installed you can publish project to your IIS. you would be able to access application even without visual studio via url similar to http://localhost/ or http://localhost/myapp depending on settings
you may choose web hosting provider and publish your web app to a server. you will be able to access your app via url like http://myaccount.hostingcompany.com/ or if you buy a domain than via http://yourowndomain.com
if you need an icon so that users could double click on it and go to your web app url, create a text file that contains
[InternetShortcut]
URL=http://www.yourdomainurl.com/
IconFile=
IconIndex=0
and store it as Yourname.url file.
however if you need an executable that behaves similarly to a web page, you can host a webbrowser object in your windows application or create WPF application.
you could create a windows form project and add a web browser control with the URL you want it pointed to.
You could also run it without IIS (from command line) or mount it as a windows service.
http://www.realsoftwareblog.com/2012/03/running-standalone-web-application-as.html
For a web application you have to host in on IIS(web server).
Here is a link that will help you get started with IIS
Web applications need a web server, and running is not as simple as clicking an exe.
.net does allow you to create installers for web applicaitons.
I am opening some older demo code and received the following message when I started a debugging session:
"The Silverlight project you are about to debug uses web services. Calls to the
web service will fail unless the silverlight project is hosted in and launched
from the same web project that contains the web services."
I am working in Visual Studio 2010, and the projects are configured for .NET 4.0. There is a web project which hosts the xap file and a Silverlight project which builds the xap. The Silverlight project has a service reference to a publicly available stock quote service.
My question: What does the above warning mean (in layman's terms) and how do I resolve it?
I think this will go away if you set the web project which hosts the Silverlight application to be your startup project (right-click on the project in the Solution Explorer and select "Set as Startup Project").
Silverlight by default can only make calls either to services hosted on the same domain where the XAP was downloaded, or to services which explicitly allow callers from other domains to make this call - see http://msdn.microsoft.com/en-us/library/cc197955%28VS.95%29.aspx for more information on that. Since you say you're calling a publicly available service (I'm assuming you don't own it), then either the calls will just work (if the service allows cross-domain calls), or they will fail (if it doesn't).
Basically, I have a web Service which I developed. I then went down to the installation site to install the web Service and a handheld app which uses it.
Problem is, I came back off site, and now need to change some things with the handheld app and web Service, and send it to them (site is hundreds of miles away).
I can change the web service fine, but how can I change the web reference to that web service, on the handheld app? its pointing to a location that does not exists as there is no remote access to their servers.
How can I trick Visual Studio into updating the web reference to get my LOCAL objects, but compiling to keep the web reference that only exists on THEIR local servers?
You can configure the url that the webreference is using by setting it to dynamic. It will add the url to the config.
Also see: http://www.codeproject.com/KB/XML/wsdldynamicurl.aspx
I have a ASP.NET 3.5 web application and I would like to allow users to install this web application multiple times on the same server.
Each web app will work with it's own database:
Server1
--------
WebApp1 - database1
WebApp2 - database2
WebApp3 - database3
Firstly I tried to use web-deployment-project, but it allows me to install my web application only once.
How I should implement deployment of web app multiple times on the same server? Should I develop my own winforms application?
Yes. I think that will be the best way to do it and by writting your custom app you'll be able to meet your specific demands.
You should make a winform application that emulates the process being done by web deployment project (like copying files to the file system, creating new application \ virtual directory on the select website, etc.).
You probably need to do this:
Create a virtual directory in IIS for
each of your databases
Be sure to set the config files for
each web application to the correct
database
When you deploy, copy your files to each directory minus your config files
You could write a small application or batch file to do it.
the best is to use Web Deploy 3.0
Web Deploy (msdeploy) simplifies deployment of Web applications and Web sites to IIS servers. Administrators can use Web Deploy to synchronize IIS servers or to migrate to newer versions of IIS. Web Deploy Tool also enables administrators and delegated users to use IIS Manager to deploy ASP.NET and PHP applications to an IIS server.