my problem is I want to install the copy of the web service which is currently running on the server. I built the copy of the web service again and got a setup file. But if we tried to install that service on the server, it shows an error, saying a version is already installed in the system. I changed the name of the service, but doesn't work
Related
There is one windows service which is installed on one of our servers and working fine.
I tried to replicate the same on the other server, so I took the exe setup from one server to another and tried to install the windows service using installUtil.exe
It is giving me
The Commit phase was completed successfully. The transacted install has been completed.
but the service cannot be found in the services list and it is also giving me this message at the time of installation.
No public installers with the RunInstallerAttribute.Yes, the attribute could be found in the xyz.exe assembly.
Remove InstallState file because there are no installers.
and I am not sure why this is happening? I tried googling but most of them have given the solution to add installer to the project.
But if the installer is not added how the service is running on the first server
is there another way to install the service?
Could it be related to the Windows OS version?
I published a simple Hello World web service in an ASP.Net web service project.I closed this project and opened another console based project to consume this web service. The problem is I cannot discover this web service to add reference.When I paste the url, I get the following error
There was an error downloading 'http://localhost:65436/Service1.asmx/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:65436
I am using Visual Studio Ultimate 2013, I don't have IIS server installed.
UPDATE- : I created a new Console based project in the existing solution and it works fine.But the problem is how do I run this console project,when I click the debug button, it deploys it on browser.I simply printed the string output returned by web method,I need to see this output on console.
I closed this project and opened another console based project to consume this web service. The problem is I cannot discover this web service to add reference.
Because the web service is not running. Web service references can only be generated when the metadata is available.
You can either:
Run two instances of Visual Studio, one for the web service and one for the client
Put a service and client project in one solution.
Also, you shouldn't use ASMX for new development. Take a look at WCF and WebAPI.
Sometimes it happens to me too. I press F5 to start debugging the web service, immediately stop debugging, and then try to update the web reference again. Usually it helps.
you can deploy the web service on IIS then consume it in console application.
I'm currently trying to search through some indexed files using the windows.search service.
My problem is that windows search cannot be installed on the web server because its a 'web edition'.
Error message received is:
Search.CollatorDSO.1 provider is not registered on the local machine
However the index that I'm searching is on another server which does have windows search installed and I'm querying it remotely. This was all working fine in development but only because I have windows.search installed on my dev box.
My question is whether it's possible to get the provider to run on the web server seeing as it's not querying an index on itself.
I'm looking for a way to manually register Search.CollatorDSO.1 on the webserver. Either install or as a dll I can drop in the bin of the web application. So far I've found no reference on how to do this so any help is appreciated.
After lots of digging around, the answer has been found.
Downloading and installing Windows Search Server does not install the OLE DB provider. Neither does installing the Windows SDK. The provider is installed when the Windows Search Service is installed.
On Win7/8 desktop OS, this is installed be default (I believe). On server, you have to enable the feature.
most of the time i add web reference of web service and give the path of asmx file but now i am using a UPS web service and may be this web service was developed by another technology. there is no any asmx file concept. they provide wsdl file and i just add the web reference and paste the file path of wsdl file there. i compile my project and got no error. my apps is running fine but when i create a setup project of that apps and install on another machine then i am getting object reference error. so i just do not understand why it is not running on another machine when i install it from setup but it is running fine when i run it from my machine IDE. so please guide me what i am missing. what i need to do when i will be working with wsdl and that will run fine on remote machine where wsdl file not exist.
Check if there is an App.config in your Setup project included where the link to your WSDL is set and check if you have that if the link to your WSDL exists on the PC where you are installing.
And if that does not work you can always try to convert the WSDL to a DLL with the help of this site.
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