Is there any Office Web Apps Server Api available? - c#

I want to allow user to be able to edit office documents online within the web application.
I have come to know that I can do it easily by installing Web App Server
But it requires a separate isolated server for installing it. Or I need to install it on virtual machine.
I was wondering if is there any api available (which already have Web App Server installed on it), which I can use directly with my web application to fulfill my requirement?.

The web-based Office document editing is achieved by implementing MS-WOPI protocol. The protocol consists of three parties - a WOPI Server (app serving the files...typically your app or SharePoint), a WOPI Client (Office Web Apps) and a client browser.
Unless you want to implement your own WOPI client (which should be possible but I haven't seen anyone trying to go that path) you have to use Office Web Apps or its younger brother Office Online Server.

Related

How to host WCF web service over the internet?

I work as a C# developer and we have many .NET web services that we use. I am doing some at home development and want to do something similar. I have a database (SQL Server 2012) on a home PC running Windows Server 2012 with IIS 8 installed. I have created a WCF web service in Visual Studio (C#) and it compiles to a .svc file. This just facilitates data exchange between my SQL Server Database and the application I am writing.
I am unfamiliar with how to host the WCF service so that the Windows Form application that I am writing that will be installed on many non-local machines can access it. I figured a WCF service would be the best choice for accessing my database for the WinForm application over the internet.
I also have a domain with a basic Windows package on 1&1.com leftover from a previous project if that helps.
Can anyone give me some steps to get my WCF service hosted so it can be accessed over the internet? Please ask if I forgot to list any needed information.
Two common ways are to host your WCF service from IIS, or to self host it yourself from within a simple wrapper program that acts as a TCP server.
See http://msdn.microsoft.com/en-us/library/ee939285.aspx
The simplest way is to setup IIS and just publish your services like you would a web application; your service will exposed over http/https. Use an appropriate binding like wsHttpBinding or BasicHttpBinding depending on your security needs. Read up to understand the different bindings and what each does and does not support.
In order to host WCF via IIS, at least on Windows Server 2003 and 2008, make sure you follow the install steps, such as adding .NET 3.5.1 / WCF options on older platforms. I believe Server 2012 includes it within .NET 4 framework, but I haven't yet done it on 2012.
Google "WCF hosting IIS" for steps / setup guides.
There are also hosting providers that specifically provide WCF hosting solutions, though I'm pretty sure your current provider, since it supports IIS, should do fine.

Run external code or application on connected client desktop from application that published via RemoteApp or Citrix ICA?

I have desktop app on server, that can be used by clients via Microsoft RDP or RemoteApp or Citrix ICA. And now i need to somehow interact with REAL user desktop from that application running on server in RDP/RemoteApp/ICA session.
Is there exists some server-side API in Microsoft RDP/RemoteApp or Citrix ICA that can be used to implement this?
My app is currently written in C#, but i can easily use COM/WinAPI if needed.
Yes, on Citrix you can use the Virtual Channel SDK:
https://www.citrix.com/downloads/citrix-receiver/sdks/virtual-channel-sdk.html
Microsoft also has something similar if you want to use RDP:
http://msdn.microsoft.com/en-us/library/aa383509%28v=vs.85%29.aspx

Creating a Web Server container to emulate an IIS server

Okay, I'm a very green developer (co-op student) so I'll try my best to make sense. Currently I have a web application (call it "Updater") that is an aspx and runs through IIS. My boss has asked my to look into creating a program (exe or command line) that can run the app through created encapsulated web server that can act like IIS. This is so that I can run the exe during an installer procedure on a client's machine so that the updater can configure the client's program.
So Far I've looked into sources upon sources on how to create a self hosted web server to handle a web app and I've managed to do the following:
-Create a command line server hosted at a given port #######.
-Use a StreamReader to read an html file
-Use HttpResponseMessage to set the Content to this html page.
Obviously this is very rudimentary, but I couldn't understand how to switch the app over to the server I created rather than the IIS.
Any help ont he matter would be appreciated, like I said I'm still quite new.
You can use OWIN to self host from within a console application.
Look for 'Self-Host OWIN in a Console Application' in the following link:
http://www.asp.net/aspnet/overview/owin-and-katana/getting-started-with-owin-and-katana
You need to start you self host server with the address your app is trying to contact. If your IIS is running with the default settings it should be http://localhost:80. Before you start the self host server you need to shut down your IIS website that is running on port 80. Two applications can not listen on the same port at the same time.
What you ask is a redistributable web server for ASP.NET. So, you might find interesting the UltiDev Web Server, formerly known as Cassini web server.
From their website:
UltiDev Web Server Pro (UWS) is an advanced, redistributable web server for Windows that can be use as a regular web server to host web sites and ASP.NET applications, or packaged with your ASP.NET web application and installed on your customers' systems along with your web app or site.

Application Designing guide line for interaction between Win & Web application

our company has website which has been developed by asp.net web form and hosted in shared location in ORCSWEB company. web site has a specific page from where people upload their CV. when a new CV is uploaded then few entry stored in database and cv file stored in folder where our web site hosted. database is also maintain at ORCSWEB end.
i have developed a win service which run in our office and it periodically query the remote database for new CV. if found any then it will download that CV file in local machine and as well as remote cv data from remote db to local db and update a filed called isDownloaded=1 in remote db as a result next time that same records will not be queried or checked.
the whole web part and win service part working fine but now our IT head want to change in web & win service logic bit.
he wants that when any new candidate upload their CV through our site then a notification will be send to our win service after 5 minute from web apps. after getting notification from web apps then win service will download the cv.
now i am not being able to thing how to design our web apps which can send some notification directly to our win service which is running in our office because there is no physical connection or accessibility between two pc where our win service & web apps are running. our win service is running in our private network and web apps is hosted in another company machine.
some told me this can be achieve through WCF but did not guide me how to develop this kind of bridge between win service & web apps through which communication will be possible.
i know lots of experienced & scholar developer always monitor this site and that is why i like to ask them how this problem can be sorted. what logic i need to use to send notification from our web apps to win service.
so please guide me with all possible way to develop a system which solve our purpose. discuss all possible way like wcf or anything else which can be use to develop apps which enable me to achieve our goal. looking for elaborate discussion and guidance. if possible give me few sample code & links which give me idea to write code for our situation. thanks

Client/Server Application That Can Deploy Client From Server

I have a client-server application written in c#. I am hoping someone can give some direction on where to look in order to set it up where a user could connect to the server from their workstation, most likely through http but that's not a requirement, and download the client. The mechanism would need the following features:
Check for updates on client startup and automatically apply them.
Allow multiple clients (connected to different servers) to download on the same machine
Client can be downloaded by a non-local admin
Possibly install any prerequisites needed on the workstation
I currently use ClickOnce but it isn't quite working out. Currently the server sits in IIS and uses WCF services.

Categories