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 / August 2007

Tip: Looking for answers? Try searching our database.

WebService - Could not create type - ASP 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
D Godwin - 06 Dec 2005 14:51 GMT
I have a webservice that runs fine on my localhost (XP, IIS5.1, .NET2).
However, when it is deployed to the production server (WindowsServer2003,
IIS6, .NET2) via VS2005 "Copy Web Site" command, I receive the following
error when attempting to access it:

Parser Error Message: Could not create type 'DataService'.
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs"
Class="DataService" %>

The service folder is set up as a virtual directory in IIS, and all files
match the ones on my localhost.  The service is impersonating a user, but
doesn't work even if that user is a local administrator.

Does anyone have any idea why this isn't working?  Am I missing some
configuration or security setting?

Thanks
David
fhunth - 04 Jan 2006 18:39 GMT
Have you solved the "Could not create type" problem ?

Please tell me how because it is happening the same to me.

Thank

--
fhunt
D Godwin - 04 Jan 2006 19:17 GMT
Ah, sorry.  With the holidays I forgot to post my resolution...

I was missing two things:  first the ASP user did not have full permissions
to the correct temp folder (../Windows/Microsoft.NET/Framework/version
number), and second I had not assigned an application pool to the virtual
directory.

Hope this helps.
David

> Have you solved the "Could not create type" problem ?
>
> Please tell me how because it is happening the same to me.
>
> Thanks
Ghada Ezzat - 20 Aug 2007 01:15 GMT
> I have a webservice that runs fine on my localhost (XP, IIS5.1, .NET2).
> However, when it is deployed to the production server (WindowsServer2003,
[quoted text clipped - 14 lines]
> Thanks
> David

Thank you very much that i spent many hours navigating in the internet searching for solution for this proplem but no thing helped me better than your ideas

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities

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.