Problem compiling Managed C++ code using VC 7.0
I want to build a C++ managed code executable to run on a remote MS server. I have had no success in writing Web Service applications as yet.
error VCD0041: IIS must be installed on this machine in order for this program to function correctly.
OK. I thought at least I could build it locally without the server, then upload the executable to my server. Guess not.
Next, I went to IIS at Microsoft with the thought of downloading IIS and installing it on my local machine -- simply so that I could build a Managed C++ Web Service. But this seems extremely impractical. First, the software is huge and expensive (at least for my limited budget). Second, I don't want to run my local machine (Dell Inspiron Laptop) as a Web Server.
Any of you gurus have thoughts you'd like to share on this dilemma?
Thanks for your ideas.
Mike
Re: Problem compiling Managed C++ code using VC 7.0
IIS should be on the same CD/DVD with Windows XP/2000/2003.
Re: Problem compiling Managed C++ code using VC 7.0
You can set to exclude the deployment from build process and do it manually wherever you want, try setting the Project Properties->Web Deployment->Excluded From Buid = Yes (It is 'No' as default value).
Re: Problem compiling Managed C++ code using VC 7.0
Thanks.
Excluding the deployment from the build works just fine.
Mike
Re: Problem compiling Managed C++ code using VC 7.0
OK. So now I've got my Web Service DLL. How do I get it to perform on my remote server. Obviously, the first thing is to upload it to a server directory. Next, I will need a way for the user to call the Web Service DLL into action from an HTML or ASP doc. Where do I find how to do that ?
Thanks again for the great help.
Mike
Re: Problem compiling Managed C++ code using VC 7.0
Re: Problem compiling Managed C++ code using VC 7.0
Thanks Krishnaa.
I'll check them out.
Mike
Re: Problem compiling Managed C++ code using VC 7.0
Krishnaa.
All of the references you provided deal with creating and 'consuming' a Web Service using C#. Because I don't have C# and havn't used it (I only have the Microsoft Visual C++.NET with VC 7.0), while I can write a Managed C++ Web Service, I cannot figure out how to deploy it on a remote server. Specifically, I would like a client to be able to invoke the web service from an HTTP or ASP page that also resides on the remote server.
Are there any SIMPLE examples of such an ASP or HTTP page ?
Thanks again.
Mike
Re: Problem compiling Managed C++ code using VC 7.0
Re: Problem compiling Managed C++ code using VC 7.0
I really hope he already tried this (or whatever) with success sometime in the past 5 years... ;)
Anyway, welcome to CodeGuru! :)
Re: Problem compiling Managed C++ code using VC 7.0
Who knows... Maybe he is still waiting for an answer.
Re: Problem compiling Managed C++ code using VC 7.0
Yes, that's why I wrote "I hope". (Unfortunately, my hopes don't always get fulfilled...)
Re: Problem compiling Managed C++ code using VC 7.0
Thanks. Your hope has been realized. I'll get back and let you know how it works out, as I never did solve the problem. :)