Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

Parser error "could not create type" w .NET Framework 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joakim Sundén - 10 Nov 2005 14:56 GMT
Hi.
I have created a simple web service project, only using the HelloWorld
sample already there, with Visual Studio 2005. If I browse the web service
.asmx file by right-clicking it using the new built-in web server everything
works just fine.

All attempts to access the service through IIS fails with the parser error
"Could not create type 'Service1'" with a reference to line 1 of the .asmx
file:

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

This is true if I publish the site/service with precompilation or if I copy
it to a different location. Whatever I do I can only get it to work with the
built-in web server. Can someone please help me figuring out what is wrong?

I have configured the web site to use ASP.NET 2.0 so that is not the problem.

/Joakim
Roy Kiesler - 17 Nov 2005 22:51 GMT
I'm running into the very same error -- has anyone been able to figure
this out?

 Parser Error Message: Could not create type 'Service'.

Source Error:

Line 1:  <%@ WebService Language="C#"
CodeBehind="/APDemo/App_Code/Service.cs" Class="Service" %>

Source File: /APDemo/Service.asmx    Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

> Hi.
> I have created a simple web service project, only using the HelloWorld
[quoted text clipped - 16 lines]
>
> /Joakim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.