I have a windows server 2008 and sql server 2005 and my application is windows based.
I have created a wcf service in my application for sending SMS.
I have a server with internet connection and have 50 pc's in the network.
They dont have internet connection, but they want to send sms through server.
I made the wcf service for sending sms. This service is working good on server.
Which hosting is best for my application ?
How to access this service on client machine ?
In IIS
Using a pre-generated proxy or at runtime using ChannelFactory
Related
I have two web based application. One of them is a WCF server application and the other is a client application and consume first application services.
When they are hosted in a Windows 8 machine's IIS they work good. But when they are hosted in Windows 8.1 they do not work. Client application shows a timeout error message.
Strange point is when client application in Windows 8 connects to server application in Windows 8.1 it works with no problem. If I connect Windows 8.1 client application of Windows 8 server application it works too.
Initially I guessed it may be related to IPv6 so tried to test several IP addresses like localhost, [::1] and many others. But nothing changed.
Now I guess Windows 8.1 has forbidden self WCF hosting (Client and Server in same machine). But have now idea how can I solve problem.
If I use WCFTesetClient in Windows 8 machine to test Windows 8 itself or Windows 8.1, both of them works.
I'm using WSHttpBinding. Both applications are ASP.NET MVC web applications hosted in IIS.
UPDATE:
Why both server and client are on same machine? Because this is a dev machine. In operational environment server and client are on separate machines.
Hey all I have created a web service that starts on my local intranet and sends out data to an outside server. This works awesome and all using classic asp on the server side and vb.net program sending the info from the intranet pc.
But now I need to do the opposite. I need to have the web service be called from the server web page to the intranet pc. Problem being is that we do not have access to any ports or any means of getting data from the server because of the firewall.
How can this be possible to do with my current scenario above?
I have hosted a WCF service in my local machine(XP SP3) lets name as PushService, I am consuming this service in PushServiceClient. When I keep PushService project in running mode and try to push data from PushServiceClient I am able to Push the Data(DB is in another machine). When I stop PushService project in VS 2010 and Consume PushService hosted through IIS then I am not able to Push the Data.I am facing Authentication error during connect to DB. I am not getting where its going wrong.
IIS Version: 5.0
Permission in IIS : Anonymous Acess
Binding: WSHttpBinding(Tried Basic http also)
Security mode: None
Thanks in advance,
Manjunath
Does IIS worker process have permission for database access? Impersonating the host would solve your problem.
This is due to lack of Permisswion to acess the DB, If using IIS 5.1 then in coding set it to take Default credentials if its in IIS 6.0 (Windows server 2003) set it to take local Identity in IIS AppPool. I will get back with full details on it.
Thanks Guys for your reply.
Manjunath
Just finish to develop my WCF service.
I have machine on my network that have windows server 2008 - and i want to run my wcf web service on this machine.
What files i need to copy from my project developing folder to the server machine ?
What i need to configur on the server machine ( IIS ) to have the ability to connect to the service from the client that run in the same network ?
Please see here
I don't think there are any changes in IIS 7.5 that would prevent you from following those steps.
I have CFv2.0 VB.net application running on PDA 6.0 accessing webservices all the time for data exchange. Number of PDA's are more then 20 all accessing the webservice on Windows Server 2008 IIS7.0 all of a sudden some PDA's stop working (cannot access web service) and get web no connection exception. Can access the service from IE.
Any clue?
Cheers
Gauls
changing new PDA helped to improve connectivity