Please Help: I cannot figure this out
-
How come the "Copy Project" option in VS.NET is always disabled whenever I need to transfer a finished web service on my local computer to my remote web host's server? (I was always able to use this method to tranfer my ASP.NET projects). Therefore, I had to copy the files manually via FTP. The files I copied were: 1) myService.asmx 2) myService.vsdisco 3) global.asax 4) web.config 5) bin folder which contains: myService.dll All these files and the "bin" folder were copied to a folder called MyServiceFolder located at the root of my website's directory structure. But whenever I try to access the service (http://www.mysite.com/MyServiceFolder/myService.asmx) it fails. And it will not display the specific error because it could not locate the web.config (where ). However, when I move the web.config file out of the MyServiceFolder and into the parent folder, and tried it again, it was able to tell me the specific error: "Parser Error Message: Could not create type 'MyNamespace.MyClass'." But this means that my web service is still not working. After some more trial and error, I was able to access my web service. What I did was that I also moved the "bin" folder out of the "MyServicefolder" and into the parent folder (where web.config is sitting). This made everything to work. The location of my files on the server now looks like this (which is kinda too messy): 1) /web.config 2) /bin/myService.dll 3) /MyServiceFolder/myService.asmx 3) /MyServiceFolder/myService.vsdisco 4) /MyServiceFolder/global.asax But the point is that I want to be able to organize all of my projects (web service, asp.net apps, etc) into their own folders on the server. So my big question is how can I put this web service into one folder such as MyServiceFolder, and make it work? Is there some configuration/setup file where I can edit the path directories? My other big question is how come I cannot use the "Copy Project" option to transfer web services to a remote server? PLEASE HELP! Thanks.