TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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;
}
}
}
Reply
Answers (
0
)
regards validation in phone number
Excel upload to datagridview 3rd cell not working