• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

where does visual studio 2005 place web service files?

I recently updated to Visual Studio 2005 (from VS2003), recompiled and tested the Web Service application, AMMSERVICE.  Now, when I look in the usual place for the AMMService.DLL, C:\InetPub\WWWRoot\AMMService\bin, it is not there, nor is a recent version anywhere on my c drive! windows explorer file view attributes allow me to see all files, so where could it be?
0
andremara
Asked:
andremara
  • 8
  • 5
1 Solution
 
Bob LearnedCommented:
If you created the web service by using File | New Web Site, then the project is not compiled, and there isn't any .dll.  You just deploy the files to the web service site, and it magically works.

Bob
0
 
andremaraAuthor Commented:
I recompiled and tested an existing VS2003 solution, AMMService. I did not create a new web site. Under VS2003, I'm used to simply copying one file, C:\InetPub\WWWRoot\AMMService\bin\AMMService.dll. So now I'm not sure what file/files or where they are to copy over to the production server.
0
 
Bob LearnedCommented:
Wait, are you talking about 2003 or 2005?

Bob
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
andremaraAuthor Commented:
2005.  I should have said I recompiled and tested an existing VS2003 solution, AMMService under visual studio 2005. sorry bout that
Andre
0
 
Bob LearnedCommented:
If you create a web service with 2005, you get something like this:

1) Service.asmx:

<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>

2) Web.config
3) App_Code folder
    a) Service.cs

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://afg.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {

        //Uncomment the following line if using designed components
        //InitializeComponent();
    }

    [WebMethod]
    public string HelloWorld() {
        return "Hello World";
    }
   
}

Bob
       
0
 
andremaraAuthor Commented:
So you're saying that I need copy two files to the target server?
1) AMMService.asmx:
2) Web.config

I assume they go where the existing copies of these files reside?
C:\Inetpub\wwwroot\AMMService

What do i do with the existing ammservice.dll on their server: c:\inetpub\wwwroot\ammservice\bin folder
0
 
andremaraAuthor Commented:
Bob,
The date of AMMService.asmx on my local machine C:\InetPub\WWWRoot\AMMService
is not current, and I just did a Build, a Rebuild, a Build WebSite and a Rebuild WebSite under VS2005 build menu, to see if the ammservice.asmx file date would update, but it didn't, so I'm not sure if this is the web service file that needs to be copied to the target machine.
0
 
Bob LearnedCommented:
VS.NET 2005 doesn't use IIS by default.  It puts the web service project into a file folder under the projects folder for Visual Studio.NET (by default).

Bob
0
 
andremaraAuthor Commented:
My goal is to copy my local web service files to the target server.  my problem is needing to know which files to copy.  the files you suggested are not current. either they are the wrong files or i have misunderstood you. Let me re-explain. I used an existing project that was compiled under vs2003.  c:\inetpub\wwwroot\ammservice\ammservice.sln.  I installed vs2005, and opened this solution file in it.  I tested locally no problem.  I downloaded and installed .NET framework 2.0 on the customer server.  The files you suggested have an older date than today, suggesting they are either wrong or i'm looking wrong - but I have done a search on my ENTIRE harddrive for ammservice.asmx and the last date on that is 7/31 in c:\inetpub\wwwroot\ammservice.  There IS a file called ammservice.asmx.cdcab7d2.compiled dated today with a time corresponding to when I compiled last.

Unfortunately, I need to get this resolved asap b/c there is a bad bug I fixed with this new release and they are waiting on me.

The issues are:

1.what files do I need to copy and where are they located.
2. at my customer's target server, what do i do about the existing c:\inetpub\wwwroot\ammservice\ammservice.dll?
0
 
Bob LearnedCommented:
1) If you need to deploy a 2005 web service, then there is the Website | Copy Web Site menu option for web services.

2) If you are now using 2.0 framework, then you need to make sure that the web application on IIS has the 2.0 framework selected on the ASP.NET tab through IIS console app.

3) You won't need bin\ammservice.dll for your new migrated web service.

Bob
0
 
andremaraAuthor Commented:
Ok,
I understand all three points.  However the remote server is not a website.  It is a windows server2003 small biz server and I connect to it via a cisco vpn connection, followed by a remote desktop connection. The vpn IP differs from the server IP.  Entering either IP into IE locally is unsuccessful. How do I use the copy web site menu option in this case?
0
 
andremaraAuthor Commented:
...further to the above point, this is not a website i'm copying, it's a service, and even when I attempt using it to deploy to my FTP site, the the copy website feature simply lists the same files I see through explorer, including an old ammservice.aspx.  could 2005 really have made it this much more complicated than the simple file copy process it used in 2003??
0
 
andremaraAuthor Commented:
More info: I used VS2005 command line compliler csc, to create a DLL. I copied it up to production server's bin directory.  I selected 2.0 as the framework for their virtual web service directory.  I get

"Could not load file or assembly 'ammservice' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

I copied my ammservice.asmx, ammservice.xcconfig, global.asax, web.config to their c:\inetpub\wwwroot\ammservice directory. Same error.

It DOES work when I copy all my .cs files up to their server and set IIS to 2.0 for the AMMservice virtual directory under Default Web Site in IIS, BUT THEN the other application, my website, ALSO a virtual directory under Default Web Site in IIS, fails with Server Application Unavailable.  Reselecting IIS 1.1 for the Web Site causes it to work and the AMMservice to fail.  Reselecting IIS 2.0 for the AMMService causes it to work and the Web Site to fail.  

Any ideas?  this is actually a different error, and in fairness, I'll close this one out since you gave me the correct answer above, so you get the points.  I'll create a new question for this issue.

0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 8
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now