OK I created a web service in C# with the default "HelloWorld" Class and a second Class of my design (OK copied from another example).
I was able to "run" it from the IDE, after a web.config tweak.
However when I publish it to C:\Inetpub\wwroot\MyWebService, and I then browse to it using IE, I get the following error page:
Server Error in '/' Application.--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
Last edited by Dave Sell; May 1st, 2009 at 02:34 PM.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
OK I delete lines 11+12 out of that web.config but still have error:
Server Error in '/' Application.--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
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.
Source Error:
Line 29: ASP.NET to identify an incoming user.
Line 30: -->
Line 31: <authentication mode="Windows"/>
Line 32: <!--
Line 33: The <customErrors> section enables configuration
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
Last edited by Dave Sell; May 1st, 2009 at 02:36 PM.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
OK I went to IIS Mangler and went to the WebFolder, right-click, properties.
On the Directory Tab, I did a "Create Application", but still get an error:
Server Error in '/MyFlexService' Application.--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'Service'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
Yes, sorry for the delayed response. I am still baffled why a default project doesn't work.
ie... I'm not sure why I needed to do the web.config tweak. Let me look into this again this week to see if all my problems are related to the IIS ASP.NET (1.0 or 2.0) setting.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
Your default, in IIS, is probably set to 1.1. If you have no (other) important apps in IIS, you can right click on default website and set it to use (under the ASP.NET tab) ASP.NET 2.0. New virtual directories will then use .NET 2.0.
OK, so I wonder if that was only a temporary thing.
Create a new .NET 2.0 web app in VS 2005. In the project properties, web tab, there is a button which lets you create a new IIS virtual directory. Try that out. Then publish/run the app...