Nermin

Nermin

  • NA
  • 7
  • 498

tablodaki verilerim listelenmiyor

Aug 10 2015 8:14 AM
hi,  my table not listed in my web service
 
 
Error:TypeInitializationException was unhandled by user codde
 
 
What can I do?Thank you from now
 
Code: 
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using FirebirdSql.Data.FirebirdClient;
namespace firebirdBaglantiDeneme
{
/// <summary>
/// Summary description for Service1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class Service1 : System.Web.Services.WebService
{
FbConnection connection;
FbDataAdapter adapter;
DataSet data;
[WebMethod]
public DataSet Urunler(int id)
{
connection = new FbConnection("SERVER=localhost; Database=BMERKEZ;UID=SYSDBA; Password=masterkey;");
adapter = new FbDataAdapter("select * from ARAC",connection);
data = new DataSet();
adapter.Fill(data,"ARAC");
return data;
}
}
}