.NETGURU
Error in Compilation of Beta 2 Web Services in .NET Framework V1.
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdata' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Satish Pahade
Please help I could not compile my old web service file of Beta 2 in Version
1 of .NET framework.

I have the following code in my .asmx file

<%@ WebService Language="C#" Class="Item" %>
<%@ Assembly name="System.EnterpriseServices" %>

using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.Services;
using System.Web.Util;
using System.EnterpriseServices;

public class Item : WebService
{
[ WebMethod(TransactionOption=TransactionOption.RequiresNew)]
public int DeleteItem(string ItemID)
{
String deleteCmd = "DELETE FROM Item where ItemID ='" + ItemID + "'"
;

SqlConnection sqlConn = new SqlConnection("user
id=sa;pwd=pisoftek;database=eworks;server=sqlserver1");
SqlCommand myCommand = new SqlCommand(deleteCmd,sqlConn);

myCommand.Connection.Open();
    return myCommand.ExecuteNonQuery();
}
}

when i'm compiling the above web service file then i'm getting the following
error.

Parser Error Message: File or assembly name System.EnterpriseServices, or
one of its dependencies, was not found.

Source Error:

Line 1: <%@ WebService Language="C#" Class="Orders" %>
Line 2: <%@ Assembly name="System.EnterpriseServices" %>
Line 3:
Line 4:

Source File: C:\WebService\Service.asmx Line: 2

Please help.

Thanks in advance.

Satish Pahade

Reply to this message...
 
    
Eric Landes (VIP)
I apologize for letting this on the agpngdata list. This is more
apporpriate on the web services list
(http://www.aspfriends.com/aspng/aspngwebservices.asp). Future responses
will be moved to that list. Thanks.

*************************
Eric Landes
Senior Programmer/Analyst member of the ASPFriends.com Moderator team
http://www.aspalliance.com/corporatecoder/
*************************
All statements expressed are my own, and do not reflect the opinion of my
employer, unless stated otherwise.

-----Original Message-----
From: Satish Pahade [mailto:Click here to reveal e-mail address]
Sent: Thursday, May 30, 2002 2:17 AM
To: aspngdata
Subject: [aspngdata] Error in Compilation of Beta 2 Web Services in .NET
Framework V1.

Please help I could not compile my old web service file of Beta 2 in Version
1 of .NET framework.

I have the following code in my .asmx file

<%@ WebService Language="C#" Class="Item" %>
<%@ Assembly name="System.EnterpriseServices" %>

using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.Services;
using System.Web.Util;
using System.EnterpriseServices;

public class Item : WebService
{
[ WebMethod(TransactionOption=TransactionOption.RequiresNew)]
public int DeleteItem(string ItemID)
{
String deleteCmd = "DELETE FROM Item where ItemID ='" + ItemID + "'"
;

SqlConnection sqlConn = new SqlConnection("user
id=sa;pwd=pisoftek;database=eworks;server=sqlserver1");
SqlCommand myCommand = new SqlCommand(deleteCmd,sqlConn);

myCommand.Connection.Open();
    return myCommand.ExecuteNonQuery();
}
}

when i'm compiling the above web service file then i'm getting the following
error.

Parser Error Message: File or assembly name System.EnterpriseServices, or
one of its dependencies, was not found.

Source Error:

Line 1: <%@ WebService Language="C#" Class="Orders" %>
Line 2: <%@ Assembly name="System.EnterpriseServices" %>
Line 3:
Line 4:

Source File: C:\WebService\Service.asmx Line: 2

Please help.

Thanks in advance.

Satish Pahade

Confidentiality Notice: This e-mail message, including any
attachments, is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not
the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.

PARTNERS Health Plan Phone: 574-233-4899
100 E. Wayne St., Suite 502 Fax: 574-234-7484
South Bend, IN 46601 www.partnersindiana.com

Reply to this message...
 
 
System.Data.SqlClient.SqlCommand
System.Data.SqlClient.SqlConnection
System.EnterpriseServices.TransactionOption
System.Web.Services.Description.Service
System.Web.Services.WebService




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification