Answer Questions
Doug K .net Framework on Mac OsX 10.4.1
Hi I have a vb.net application that downloads a zip file containing some relevant information onto the system.The application downloads the zip file correctly on Windows.( I use a button ..whe the button is clicked the File Save dialog box appears) However when i try this application on ie on Mac OSx 10.4.1 the aspx file that contains this button is downloaded on to the desktop).Can anyone tell me why ...Show All
BilleV long to DbType and SQL parameter type
I need to calculate and store the size of volumes of Documents using FileInfo.Length, which returns a long. If I'm inserting this into SQL Server with a stored procedure, which System.Data.DbType do I use in my .NET code, DbType.Int64 Which datatype do I use in my SQL Server stored procedure Yup - that's right. Use DBType.Int64 since that represents a 64-bit (8 byte) data type and 'long' is a 64-bit data type. ...Show All
James Cole Right sequence to get datatable updates written back to the database?
I have a DataGridView that I've manually bound to a DataTable (which is populated from a DataSet via a SQLDataAdapter). The user can go through and toggle a boolean column value and then save the results. I can see (via Rowstate) that the rows in the DataTable have been modified, but I can't seem to get them to be written back to the database. I've tried both acceptchanges at the DataTable level and update at the SQLDataAd ...Show All
pxgator Webservice connection problem
I'm quite new to .net programming and I have written a project using .net 2.0 framework (written in vb.net 2005) in which I've add a webservice reference. If the referenced webservice is called more than once the connection drops out. I have researched the problem and have seen the likely problem is the first connection is kept alive by default and so subsequent connections fail. The fixes that I can find seem to only relate to .net 1.1 with ...Show All
Fakhrul Islam Bug HtmlInputRadioButton ???
drop an HtmlInputRadioButton on a blank page. Set runat=server set checked=checked the following asp html code is generated: < input id ="Radio1" type ="radio" checked ="checked" runat "server"/> browse the form. the following error occurs Parser Error Message: Cannot create an object of type 'System.Boolean' from its string representation 'checked' for the 'Checked' property. change the html to ...Show All
Jani Pewter Raising IE events from .NET(C#) worker thread
I have created a .NET class written in C# that can be called from IE using JScript. This class manages a local content store and provides synchronization services to a central storage location using http. The class uses a worker thread to copy files and registers an event for updating the status of the copy operation. When I try to fire the event from the worker thread, I get a runtime error from the .NET framework. However, if I fire the eve ...Show All
evaleah Failed to create an IPC Port: Access is denied.
I have a service that registers a remoting IPC channel on startup and quite often I will get this error when the service is stopped and then restarted. It doesn't do it all the time but enough to be an annoyance and when the service is stopped I do unregister the channel. Anyone else experience this Thanks!! I have the intermittent "Access Denied" on my IPC client channel connecting to a Windows S ...Show All
jehub Compression in Remoting
Hello. I made a remoting from [Advanced .NET Remoting 2nd Edition]. ( just copy & paste ) After I use only decompression method, it works fine. But, if I use in the remoting, it occurs an error as below. I don't know how to fix it. ----------------------------------------------------------------------------------------------------------- System.Exception: System.FormatException: Header checksum illegal at NZlib.Compression. ...Show All
chalna VS 2005 + SQL Express 2005 - Database connection error - An error has occurred while establishing...
I created a sample application that has a mdf file and tries to connect to the SQL server express with the following connection string. Data Source=.;database=sample;Integrated Security=true;AttachDBFilename=sample.mdf When I open the connection, I am getting the following error. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the defau ...Show All
Hadi Rezaee What don't my Toolbar icons display?
When i run my VB.NET application the icons in the ToolBar control always don't appear although they function correctly. What can I do to resolve this problem Are you using .NET Framework 1.1 If so, then there is a bug if you have a Main similar to this: private static void Main() { Application.EnableVisualStyles(); Application.Run( new MainForm()); } What you need to do is place Application.DoEve ...Show All
donjuawnu Binary Writer / HttpResponseStream - Changed behavior in dot net 2.0
Hi, Using dot net 1.1 I was able to execute this code but after we have upgraded to 2.0, I am receiving the exception below while writing a zero length byte array into the HttpResponseStream. Does anybody know if this a known issue Thanks, HOK [ WebMethod ] public string HelloWorld() { BinaryWriter writer = new BinaryWriter ( this .Context.Response.OutputStream); writer.Writ ...Show All
ansilb Accessing a protected property
I need to check whether an Control-based object (a MenuItem for example) has a eventhandler attached to a specific event or not. The only I have found so far is the Events-property but it's protected, so is there another way to do this I also tried obj.GetType(). GetProperty( "Events" ).GetValue(obj, null ) but to no avail. TIA/ Michael Hulthin For a protected property if you can't derive a class from C ...Show All
naru Returning values from Database to strings
Hi, Another beginner question coming up here. I need to return a value of a varchar element stored within a specific column to my C# program. I already know to use ExecuteNonQuery() for executing commands that don't use queries, ExecuteScalar() when returning a number of rows affected from a Query, but not the command to return the value from a specific Query. My C# program does the following: createstr = " SELECT AssocUIDA FROM As ...Show All
Mahesh B. Mane DataTable.WriteXML() gives incorrect XML output
Hi, Simple situation: A DataTable with some columns and rows added. But when using the WriteXML method to create an XML file from this table it gives me the following output: < xml version="1.0" encoding="utf-8" > <DocumentElement> <Batch_Table> <Height>18</Height> <Width>75</Width> <Program>1</Program> <Length1Min>18</Length1Min> &l ...Show All
rekab Encrypting with UsernameToken - requires plain text password to decrypt?
When you encrypt data with a UsernameToken, which has the password in digest form, does the encryption process require the plain text equivalent of the password to create the decryption key I can't find any documentation (WSE, OASIS standard) which explicitly states this. I would have thought this to be the case, otherwise any (unauthorised) recipient of the message would be able to decrypt it. Ie. they look at the message, see that ...Show All
