Trouble deploying web service

Discussion in 'ASP.NET WebServices' started by Mike Hildner, Jan 5, 2006.

  1. Greetings,


    Newbie having some troubles deploying a web service (.NET 2.0). I searched the KB and forums, but couldn't find anything.


    First I just FTP'd all my files over into a new folder and received this message when trying to access the .asmx:


    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.


    So then I used the Web Application Tool to set up that folder as a web application. Now when trying to navigate to the .asmx, I get:


    Compiler Error Message: CS0246: The type or namespace name 'ShoppingCart' could not be found (are you missing a using directive or an assembly reference?)


    Source Error:


    Line 17: public class ProfileCommon : System.Web.Profile.ProfileBase {
    Line 18:
    Line 19: public virtual ShoppingCart ShoppingCart {
    Line 20: get {
    Line 21: return ((ShoppingCart)(this.GetPropertyValue("ShoppingCart")));



    Source File: c:\WINDOWS\microsoft.net\Framework\v2.0.50727\Temporary ASP.NET Files\webservice_ponderosa creek messenger web service\c99e440a\2ce3cabe\App_Code.jnljngs8.1.cs Line: 19


    Compiler Warning Messages:
    Warning: CS1668: Invalid search path 'C:\Program Files\SQLXML 3.0\bin\' specified in 'LIB environment variable' -- 'Access is denied. '



    I have no idea where this is coming from. I don't have a "ShoppingCart" class. I also don't know why (I assume) DASP's compiler is trying to access a path for which it has no permissions.


    Like I said, I'm a newbie to DASP, I assume I'm missing something basic.


    Any help is appreciated,
    Mike
     
  2. Hard to help on this one. The error is complaining about a shopping cart class not existing, but if you say you do not have a shopping cart class, then I really don't know where to start.

    Do those lines of code exist in your application?


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Thanks for the reply. I opened a ticket with support and they answered right away pointing out my problem - 'twas a newbie thing.

    I have a web app in the root which of course has a web.config and this is where the ShoppingCart comes in. From support:

    I didn't know that. Honestly I didn't even know I had a shopping cart, as I put an eCommerce template app in the root.

    I guess one should not have a web.config in the root - so I moved to another folder and things seem to be fine.

    Regards,
    Mike
     

Share This Page