Answer Questions
Kalcy Cancellation regions?
While reading the VS2005 Beta 2 MSDN Library documentation for the .NET Framework, I came upon some references to "cancellation regions". For instance, look up the documentation for "System.OperationCanceledException". Anyone know what "cancellation regions" are I think whatever it was, it doesn't exist anymore. Click on the System.Threading.CancellationRegion link on the page you mention ...Show All
ayr Using Ngen
I want to use Ngen for my application. I have a batch file that calls ngen on all my dll's. I want to know whether ------------------------------------ ngen MyApplication.exe ngen MyLib.dll ----------------------------------- & ------------------------------------ ngen MyApplication.exe MyLib.dll ------------------------------------- are equivalent This is a great question. First of all I'd like to point ou ...Show All
infox 64bit Memory Limits!?!
I have been evaluating the 64bit .NET Framework and have run into a very disturbing problem… an out of memory exception when I attempt to allocated over 2G of memory within a single array (or any object for that matter). I am working with 6G of memory of which I am able to allocate up to 6G of ram using multiple arrays (3) however any given array can not exceed 2G. I would love to hear if this is by design and why, or even better if there ...Show All
v0id Strongly Typed Dataset Performance Issue
Hi, Since VB.NET 2002 and 2003 there's been some performance considerations that we have to think over in order to decide wether to use strongly typed or untyped datasets. Now I'm trying VB 2005, and I've read some articles where people talk about the improvements (since this release) for strongly typed datasets. Now I wonder, are these improvements good enought can I stop been worried about the memory cost (and so on) when I use strongly ...Show All
Carlos Voltolini Neto How can i check if my username and password are correct with FtpWebResponse
Hi, How can i check if my username and password passed in my FtpWebREquest.Credentials are correct without getting an exception When i am giving a wrong password i am getting an exception that i want to avoid... Please help me :-( I believe if the server returns with an error condition, such as invalid credentials, it is returned to the user of FtpWebRequest/Response as a WebExcept ...Show All
FiddlersRoof Base64 padding character issue
The problem I'm having is if I'm trying to take a string (say a password) that's 5 characters long, Base64 works on strings that are a length of a multiple of 4, so 4 bytes long, 8, 12, etc... But from the description of ConvertFromBase64, if it's not a multiple of 4, you need to pad it to be that long. But alas, it will only pad up to 2 "pad" characters, so my 5-character password, plus 2 "pad" characters makes 7, not 8. Furth ...Show All
Dipper ADO.NET/Access DB Insertion Exception
I’m working with an Access Database and ADO.NET. I have a record insertion routine that works on some tables and not others. The exception is “syntax error in Insert Into Statement” and it’s from an improperly constructed string. Public Function InsertRecord( ByVal NewRow As DataRow, ByVal Table As DataTable, Optional ByVal Update As Boolean = True ) As Boolean 'works NewRow(DataRecords.ciRecordNum) = Ta ...Show All
duncan_goldcoast Access Database and x64 OleDB Connect
Hi, i've written a programm wich access an .mdb Database with OLE-DB. Under Win x32 everything works fine Under x64 no Database is found. Is there no way to access an mdb Database from x64 Thanks Ken Can anyone else please advise: 1 - original Website backend uses MS Access 2003, ASP (not .NET), IIS6.0 on win2k server 2 - new server 64bit, win serv 2k3 ent 64bit, MS Access 2003, ASP (not .NET), IIS6.0 ...Show All
Imran Farooqui Any string function to do this...
Hi, I want to know if the framework has a built in function to do this: Dim strText as String = "This is an example test text, more text here and another is keyword" I want to retrieve everything between "is" and "text" something like: result = x.find("is","text",strText) result is equal to "an example test" Thanks! Diego Thanks Ivan, yes this really help me Diego &nb ...Show All
Ricardo Jesus Problem in Update and Delete while using SqlDataSource Control
hi All, I'm having a problem in Update and Delete while using DataSource Controls. I had binded the gridview with Sqldatasource control and Generated Insert,Update,Delete Statement in datasource control as below. < asp : SqlDataSource ID ="SqlDataSource1" runat ="server" ConnectionString =" <%$ ConnectionStrings:NorthWindConnectionString13 %> " SelectCommand ="SELECT [EmployeeID], [LastName], [FirstName], [Titl ...Show All
Ernie_Harris Data provider or other service returned an E_FAIL status.
Hi, I got this error [Data provider or other service returned an E_FAIL status.] in my application, application are running properly on other clients without error, i am using oracle 9i and vb.net, is there any solution. Thanks Atanu Hi, I too am getting the same error. I am working with ASP.NET application connecting to SYBASE database. Any help would be appreciated. Thanks in Advance Nikhil Dabke ...Show All
imidotnet Remoting vs Indigo taking *nix and Mono into account
I'm designing a distributed system (actually redesiging DCOM app). Planning to use Remoting but Indigo is on the horizon so have been taking a look at that. Ideally, I'd like the same code base for Unix/Linux. I understand Remoting should theoretically work on Mono. I've been told Indigo will never be ported to Mono because MS isn't going to license the technology to allow it. If Indigo isn't going to be ...Show All
mrobertson Newbie Question (kinda)
I am attempting to open a connection to a SQL 2000 Server in VB 2005 Express, and I am receiving an InvalidOperationException. I can't seem to figure it out as my VB.NET is a little weak... Here's the code: Dim con As New OleDb.OleDbConnection( "PROVIDER=SQLOLEDB; packet size=4096;user id=BLAH;data source=SOMESERVER;persist security info=False;database=BooBoo" ) Dim cmd As New OleDb.OleDbCommand( "Select C ...Show All
Montane .net 2.0 SqlDependency
Hi, I am trying to get the SqlDependency to work in an application. Here is the problem: One windows application connects to northwind database using a user login. It then diplays the data in the Employees table. Another project is using the the login as the previous App to display the same data BUT it displays an error when it gets to da.Fill(ds, "Customer"); The error is: Message "When using SqlDependency without providing an opt ...Show All
akeiii .NET canvas
Hi i need to paint and save my image, but i dont found any canvas in .NET. Can you give me some reference Thank you Sorry I didn't know Delphi has that As for your question in .NET, you can create a Graphics object for use in your Image instance: Graphics g = Graphics.FromImage(your_image); Everytime there's changes in your pictureBox1's drawing surface, you may want to blit it to your off-screen Image instance: see ...Show All
