Answer Questions
Piotr Trojanowski ODBC
I am a relative newbie to the ways of .NET. I have been learning to use Microsoft Visual C# .NET 2005 and have wrestled just about everything to the floor except for database access. I have an extensive survey data library with all the files in dBase IV format. As a long time Delphi programmer, this used to be a relatively straightforward piece of the jigsaw and I have written a number of successful applications that manipulate those files. ...Show All
Mark Michaelis How to share an object between an aspx thread and a web service thread?
I have a Web Service project "WS" that has in it: MyWebService - derived from System.Web.Services.WebService MyClass - base class. I have an ASP .NET project "Test" that has a Test.aspx that creates an instance of WS.MyClass and calls a method on it. In this method I create a System.Threading. ManualResetEvent object. The same Test project also has a reference to MyWebService so it can call that too. I run the Test project and call the MyClass ...Show All
Bogey1 Making dataset instances invisible to COM
Hi There, I've got a C# assembly that's marked for COM Interop Registration. It contans a dataset definition. When I look at the TLB file generated for the assembly, the object is included. (for example, if the dataset is called AlphaDS, there's a default interface generated for the dataset called _AlphaDS, and a coclass entry for AlphaDS) I'd like to mark the Dataset as COMVisible(false) so it doesn't show up in the TLB. I could mark the ...Show All
kiwigriff Client found response content type of '', but expected 'text/xml'.
Hello, I have this problem trying to render to PDF with reporting service web service. private void cargarReporteFromWS() { cargarFormatos(); //Format format = (Format)ddlFormats.SelectedValue; string encoding; string mimeType; ParameterValue [] parametersUsed; Warning [] warnings; string [] streamIds; rs = new ReportingService (); rs.Credentials = System.Net. CredentialCache .DefaultC ...Show All
Robert_Scheffler Error - How can I trace it down?
I have an app I made in VS2005- and it uses 2.0 framework, and some sqlreader and a MSHFLEXGRID activex control. This application runs fine on a majority of computers, but on 3 so far it will not run. I put a try/catch around everything with a messagebox to display the exception and it never even gets that far. I have all the patches from windows update and the 2.0 framework installed on all machines. The box I get is "Program Name has encounter ...Show All
neilprivate How distribute Configuration Manager?
Hi all, I need to distribute .Net framework 2.0 configuration manager. This tool is not included in redistributable file but only in sdk. Is it posible to distribute only Net framework 2.0 Configuration mmc Thanks. I think you are wrong. In fact if I install runtime the component doesn't appear and cannot add in a MMC but if I install sdk I get the component. My answer is ...Show All
Samir Khamisa DataSet ReadXml and duplicate rows
I have a dataset which reads in its data and schema from an XML file which the user selects. If the user loads the same file twice, a ConstraintException occurs which I catch and display an error, however the file is still loaded again resulting in duplicate rows. How can I stop the file being loaded more than once Put a key in the schema, maybe some sort of ID. It will be impossible to load duplicate dat ...Show All
skinnedabyss Error : execute reader requires an available open connection
Hi all, I have an error that occurs randomnly in my web application (it does not occur all the time) - execute reader requires an available open connection , the connections current state is closed. I have the connection string defined in web.config as <add key="ConnectionString" value="Server=Server1;database=db1;uid=sa;pwd=;pooling=false;"/> For Any help ,thanks in advance One common cause of this is ...Show All
Vikram Kumar Stream Not writing last byte?
Hello and thanks in advance for any help you may give. I am currently using the new gzip feature in VB 2005, to compress XML and insert the zipped bytes into an OLE access db column. I have gotten it to work for the most part except it seems to be cutting of the last Char of XML and sometimes even more. E.g. The closing tag of the XML would look like "</Inventory" - Missing the ">" .I have no idea why, but since I am new to streams I ...Show All
Martin Dekker . smtp problem (system.net.mail)
I've written email pro in asp .net Protected Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim mail As New MailMessage() Try 'set the addresses mail.From = New MailAddress(" name@company.com ") mail.To.Add( youname@comapny.com ) 'set the content mail.Subject = "This is an email" mail.Body = "this is the body ...Show All
HerbB1 Best DB for future ?
Just a quick question... (I'm a newbie to all of this) Right now if you create an application with SQL express, a user has to install SQL to use the app. But I was wondering, with Vista coming up is SQL going to be installed by default, or will a user still have to install it Being new to it all, I just figured I would concentrate on learning what will be most used in the future. If the mdb's are going away, I won't spend my time on them. Th ...Show All
ssuluh Application Settings in Class Library called via COM, how to set them?
Hi, I've written a small Class Library that I call from classic ASP, the problem is that as far as I know the only way to set the settings is from the .exe.config file of the app where the class library is used (windows forms, console apps, etc), my question is, how can I make this work if I call this library via COM Thanks I'm not sure I understand the question. Classic ASP has its configuration ...Show All
Knubbi VS 2003 project template
Hello Few day ago I discovered a wonderfull word of creating my own project templates in VS and now I see that VS has a lot more additional functionality then it appear on the beggining. Anyway, I've tried to created my first project template and faild in one point: I have problem with adding additional DLL librarys by the script which add files to new created projects. Of course I was digging thru net but so far didn't found anythink. If any on ...Show All
DaveE1 Error in .Net when calling sproc that uses xp_cmdshell
I am calling a stored procedure, it takes the items in a fake temp table that has a table id of T_ID (in SQL, ret in .Net, this is an integer) and sends them to a destination of (LOCATION in SQL, strDest in.Net, this is a string) through BCP. BCP uses the master db's extended stored procedure "xp_cmdshell", when i run this code, i get an error caught for "ex" (in .Net) with a value of: Message "A severe error occurred on ...Show All
Ales Is NET Framework fast enough?
I want to make a MIDI-editor, but I'm not sure if using NET Framework is the right choice. I'll need really fast editors, like fast ListBoxes and fast ComboBoxes, that need to be updated the fastest possible. I've make a comparison between how fast does a Win32 application adds 1000 items to a ComboBox, and how fast does a NET Framework does it. The Win32 application is about 5 times faster!. So, what do you suggest me Is there perhaps a way to ...Show All
