Click here to Skip to main content
16,005,467 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Working with Scrollbars Pin
IMinusMinus23-Jan-06 8:34
IMinusMinus23-Jan-06 8:34 
QuestionError Unable to open the project file from the webserver ". Pin
q19010521-Jan-06 16:02
q19010521-Jan-06 16:02 
Questionobject = (string + type) ? Pin
[Marc]21-Jan-06 6:06
[Marc]21-Jan-06 6:06 
AnswerRe: object = (string + type) ? Pin
Robert Rohde21-Jan-06 6:11
Robert Rohde21-Jan-06 6:11 
GeneralRe: object = (string + type) ? Pin
[Marc]21-Jan-06 8:09
[Marc]21-Jan-06 8:09 
AnswerRe: object = (string + type) ? Pin
Daniel Grunwald22-Jan-06 5:02
Daniel Grunwald22-Jan-06 5:02 
GeneralRe: object = (string + type) ? Pin
[Marc]22-Jan-06 10:04
[Marc]22-Jan-06 10:04 
QuestionRegistering a Serviced Component in the COM+ catalog Pin
oceanexplorer21-Jan-06 4:56
oceanexplorer21-Jan-06 4:56 
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

QuestionRelation between LegalKeySizes and LegalBlockSizes? Pin
Mark J. Miller20-Jan-06 6:54
Mark J. Miller20-Jan-06 6:54 
QuestionAccess files from remote computers Pin
snehal wale19-Jan-06 18:15
snehal wale19-Jan-06 18:15 
QuestionConverting MFC Dialogs to .net Framework Pin
kizhakk19-Jan-06 3:50
kizhakk19-Jan-06 3:50 
AnswerRe: Converting MFC Dialogs to .net Framework Pin
Dan Neely19-Jan-06 5:04
Dan Neely19-Jan-06 5:04 
GeneralRe: Converting MFC Dialogs to .net Framework Pin
kizhakk19-Jan-06 5:56
kizhakk19-Jan-06 5:56 
GeneralRe: Converting MFC Dialogs to .net Framework Pin
Dave Kreskowiak19-Jan-06 12:58
mveDave Kreskowiak19-Jan-06 12:58 
GeneralRe: Converting MFC Dialogs to .net Framework Pin
Kevin McFarlane21-Jan-06 4:15
Kevin McFarlane21-Jan-06 4:15 
QuestionMenuItem "Select" Event Pin
cbusgut19-Jan-06 1:22
cbusgut19-Jan-06 1:22 
QuestionTwainGUI Pin
snehal wale18-Jan-06 20:00
snehal wale18-Jan-06 20:00 
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 

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.