Click here to Skip to main content
15,917,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: TwainGUI Pin
Dave Kreskowiak19-Jan-06 12:56
mveDave Kreskowiak19-Jan-06 12:56 
GeneralRe: TwainGUI Pin
snehal wale19-Jan-06 17:17
snehal wale19-Jan-06 17:17 
GeneralRe: TwainGUI Pin
Dave Kreskowiak19-Jan-06 17:40
mveDave Kreskowiak19-Jan-06 17:40 
QuestionHow to Get Cumulative Sum in Cristal Reports Pin
badsy18-Jan-06 19:38
badsy18-Jan-06 19:38 
QuestionOffice PIA samples.. Pin
Ray Cassick18-Jan-06 18:25
Ray Cassick18-Jan-06 18:25 
QuestionSigning Assemblies with strong names Pin
oceanexplorer18-Jan-06 11:45
oceanexplorer18-Jan-06 11:45 
AnswerRe: Signing Assemblies with strong names Pin
shaileshk18-Jan-06 20:35
shaileshk18-Jan-06 20:35 
GeneralRegistering a serviced component in the COM+ catalog Pin
oceanexplorer21-Jan-06 4:54
oceanexplorer21-Jan-06 4:54 
Many thanks for your help, worked a treat! If I could ask one more favour, as I am struggling with this at the moment!

I am now trying to register my DLL in the COM+ Catalog. To do this I am taking the manual approach and using the regsvcs.exe tool provided with the .net framwork.

However when I regiser the dll it comes back that I have derived classes found in the assembly and won't register, saying that classes must be public, concrete and have a default constructor. Why is this happening? As far as I'm aware I haven't got any derived classes apart from the serviced component which is required. Below is my code for my class:

using System;
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;

namespace StepByStep7_1
{
public class NorthwindSC : ServicedComponent
{
private SqlConnection sqlcnn;
private SqlDataAdapter sqlda;
private DataSet ds;

public NorthwindSC()
{
// Create a connection to the
// Northwind SQL Server database
sqlcnn = new SqlConnection("data source=(local);initial catalog=Northwind;
User ID = SA;Password = *********");
}

// This method executes a SELECT query and
// returns the results in a DataSet object
public DataSet ExecuteQuery(string strQuery)
{
// Create a SqlDataAdapter object to talk to the database
sqlda = new SqlDataAdapter(strQuery, sqlcnn);

// Create a DataSet object to hold the results
ds = new DataSet();

// Fill the DataSet object
sqlda.Fill(ds, "Results");
return ds;
}

// This method updates the database with the changes in a DataSet object
public int UpdateData(DataSet ds)
{
// Update the database and return the result
SqlCommandBuilder sqlcb = new SqlCommandBuilder(sqlda);
return sqlda.Update(ds.Tables["Results"]);
}
}
}

Many thanks for your help

Paul

QuestionGacutil tool in Framework 2.0 ??? Pin
shaileshk17-Jan-06 18:49
shaileshk17-Jan-06 18:49 
AnswerRe: Gacutil tool in Framework 2.0 ??? Pin
oceanexplorer18-Jan-06 11:49
oceanexplorer18-Jan-06 11:49 
QuestionIn-memory DB engine? Pin
Ray Cassick17-Jan-06 11:56
Ray Cassick17-Jan-06 11:56 
AnswerRe: In-memory DB engine? Pin
Joel Lucsy23-Jan-06 10:47
Joel Lucsy23-Jan-06 10:47 
QuestionCalling .NET C# functions from Win32 API?? Pin
Gunn31717-Jan-06 5:09
Gunn31717-Jan-06 5:09 
AnswerRe: Calling .NET C# functions from Win32 API?? Pin
Steve Maier17-Jan-06 9:14
professionalSteve Maier17-Jan-06 9:14 
QuestionList of NT users within a Domain Pin
Bob Zagars17-Jan-06 4:29
Bob Zagars17-Jan-06 4:29 
Question.Net 2005 Recent Projects List. Pin
Drew McGhie17-Jan-06 4:23
Drew McGhie17-Jan-06 4:23 
QuestionDowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Sarbjit Chawla16-Jan-06 6:27
Sarbjit Chawla16-Jan-06 6:27 
AnswerRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Dave Kreskowiak16-Jan-06 15:44
mveDave Kreskowiak16-Jan-06 15:44 
GeneralRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Sarbjit Chawla18-Jan-06 6:04
Sarbjit Chawla18-Jan-06 6:04 
GeneralRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Dave Kreskowiak18-Jan-06 12:07
mveDave Kreskowiak18-Jan-06 12:07 
AnswerRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Dazzzzzz17-Jan-06 19:09
Dazzzzzz17-Jan-06 19:09 
GeneralRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Sarbjit Chawla18-Jan-06 6:07
Sarbjit Chawla18-Jan-06 6:07 
QuestionPlatform invoke on PocketPC 2002 (Toshiba e740) Pin
Federico Milano16-Jan-06 3:14
Federico Milano16-Jan-06 3:14 
QuestionInstalling user customizable files Pin
topus16-Jan-06 0:47
topus16-Jan-06 0:47 
QuestionGet Error message in Catch part Pin
Vipul Mehta16-Jan-06 0:18
Vipul Mehta16-Jan-06 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.