VS 2005 Deploy Web Service to Subfolder

Discussion in 'ASP.NET WebServices' started by Mark Jerde, Dec 6, 2006.

  1. Using both VS 2005's 'Copy Web Site' and 'Publish Web Site', and MS's 'Web Deployment Project', I'm not able to get a web service with a DLL that works on my discountasp.net site. The site is set up to use .NET 2.0. The solution below works on my local machine but not at e.g.
    www.sumdays.com/yyy/ws1/t1/service.asmx
    Any help will be greatly appreciated.

    I started with a blank solution, testws1, and added a web service project and a class library project to subfolders. In the web service I got rid of the code-behind just to simplify things.

    This is testws1 | ws1 | Service.asmx:

     
  2. I made the folder /yyy/ws1/t1 a web application, and it works now. Duh.

    I tried several times earlier today but kept getting 'System Temporarily Unavailable'.
    [​IMG]

    Do I need to do anything with web.config? Any good refs to web.config and web services in .NET 2.0?

    Thanks.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    hmmm.. i can't really tell what's going on based on just the error. You'll should create a support ticket.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. Was this ever resolved? I'm hitting this with Visual Studio 2008 deploying a website.
     
  5. Thanks for the response! Here's the error from the page. I have all of the MVC dlls in my bin dir but it seems like they're not being used or referenced?

    Server Error in '/' Application.
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0103: The name 'FormMethod' does not exist in the current context

    Source Error:

    Line 23:
    Line 24: <%= Html.ValidationSummary() %>
    Line 25: <% using (Html.Form('Home', 'Default', FormMethod.Post)) { %>
    Line 26: <table class='keyval'>
    Line 27: <tr><th>Name</th><td><%= Html.TextBox('Name') %><%= Html.ValidationMessage('Name', '*') %></td></tr>


    Source File: e:\web\whenshouldw\htdocs\Views\Home\Default.aspx Line: 25


    Show Detailed Compiler Output:

    c:\windows\system32\inetsrv> 'C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe' /t:library /utf8output /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\assembly\dl3\ca01cec3\de1bacd3_cc2cc901\System.Web.Mvc.DLL' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll' /R:'C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll' /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\App_Web_8-wbhney.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll' /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\assembly\dl3\709861c7\72ef30ac_c62cc901\Microsoft.Web.Mvc.DLL' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll' /R:'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll' /R:'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll' /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\assembly\dl3\7afb6b1e\10b4b6c7_c72cc901\PlannerData.DLL' /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\assembly\dl3\b955dd2b\4a3daeb8_cb2cc901\PlannerFrontend.DLL' /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\App_global.asax.or_w_fo5.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Abstractions\3.5.0.0__31bf3856ad364e35\System.Web.Abstractions.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll' /R:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll' /R:'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll' /out:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\App_Web_p0wg4usg.dll' /D:DEBUG /debug+ /optimize- /win32res:'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\p0wg4usg.res' /w:4 /nowarn:1659;1699;1701 /warnaserror- 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\App_Web_p0wg4usg.0.cs' 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\720498f3\4172c53\App_Web_p0wg4usg.1.cs'


    Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
    for Microsoft (R) .NET Framework version 3.5
    Copyright (C) Microsoft Corporation. All rights reserved.

    warning CS1668: Invalid search path 'C:\Program Files\SQLXML 3.0\bin\' specified in 'LIB environment variable' -- 'Access is denied. '
    warning CS1668: Invalid search path 'C:\Program Files\SQLXML 4.0\bin\' specified in 'LIB environment variable' -- 'Access is denied. '
    e:\web\whenshouldw\htdocs\Views\Home\Default.aspx(25,55): error CS0103: The name 'FormMethod' does not exist in the current context
     
  6. Oh yeah I forgot to mention, the problem with the LIB environment variable still exists for me, but all I had to do was change my web.config to not treat warnings as errors and it continued. The new problem I have is what I just posted. :)
     
  7. Do you have a link you can provide so we can see the complete error?

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page