Recent update: 2008-3-21
Hi everyone!I'm having some trouble uploading a file to my webserver, using the new My.Computer.Network.UploadFile method. This is the code i am using (The credentials are fictitious) : Dim filepathupload As String = "C:\uploadtest.txt"Dim urlupload As String = ...
I understand that Visual Web Dev Express installs the .NET 2 Framework. If I install that, will I still be able to compile libraries with the same machine for use on a web server running the .NET 1.1 framework? Does it matter? I am a web developer and I don't use Visual Studio. I just compile ...
I want to know what do u think about Persistance Frameworks. Do you use them of one in your projects ? there was a sound about objectSpaces. Cant wait to see that. Now I use NHibernate to persist my classes to db. I dont know it is good way or not. if Microsoft stopped to release the ...
993 byte By
Dotan at 2008-3-3
Hi All ,i'm using .net2 beta1 SerialPort class.the problem is when i first recieve bytes - the CPU is getting up to 100% and stays there.i tried working with the SerailPort in many ways (starting Recieve thread, etc') but it seems that this problem repeats itself. is the read call is ...
Hi, i have windows application development question, using C# .net. I am ASP.net C# web developer trying a windows application using C#.net for the first time. So here is my question: I have a datatable called dt with two columns (c1 and c2) I have a datagrid already, I want to know how to ...
Dear all, can work fine all two version on the same machine ? Giuseppe
3189 byte By
arazy at 2008-2-27
Hi,I am trying to build a bounded buffer using counting semaphores in C++.There are 2 threads using this buffer: a Producer and a Consumer.My problem is that the consumer continues consuming even when the buffer is empty and thus trying to access buffer[-1], which of course resaults in an ...
Hi, sorry, this' a bit long.I'm trying to implement custom serialization of a collection derived from ConfigurationElementCollection so that it generates a more appropriate remove tag:<remove key="mykey"> instead of just <remove/>This is just like the remove tag which is generated ...
507 byte By
cro at 2008-2-25
Is there a place to download all the .NET Framework guideline as a doc or pdf files to print it ...
In Beta 2, can I add a master page for an existing page after its creation? When I create a new ASP.NET page, if I do not check "Select master page", the new created page will not have a master page. And in the property pane, the MasterPageFile of the DOCUMENT is disabled. If I decide to add a ...
250 byte By
Gravy at 2008-2-23
Hi Guys, I'm sure I remember someone showing off a new kind of application logger in code for Whidbey a few months ago. The type of logging I'm talking about is something like log4net. Can anyone point me in the right direction please? Graham
497 byte By
beat at 2008-2-22
I programmatically created a control and now want to get the rendered HTML as a string. How do I do it? I tried: Dim MyRenderedOutput As String = "" Dim SW As New System.IO.StringWriter(MyRenderedOutput) Dim hstw As New HtmlTextWriter(SW) MyControl.RenderControl(hstw) But I get an ...
A solution with business component project, Custom windows control, and windows application. When attempting to edit the main form (e.g. add a button, then change its text property in the designer), the IDE pauses a moment then disappears with no warning or exception messages.Restarting the ...
141 byte By
edin at 2008-2-21
Hi, Does anyone know if it is possible to use .NET Framework 2.0 Beta with Visual Studio.NET 2003, meaning instead of .NET framework 1.1
907 byte By
KyleT at 2008-2-20
I'm currently trying to embed Word 2003 into a Windows Application that we are building. I experimented with VS 2005 Beta 1 and found an "ActiveDocumentHost" control that appeared to work for me. I just recently got VS 2005 Beta 2 and can't seem to find this control. Has it been removed? Will ...
This is from a microsoft document from last year http://www.microsoft.com/indonesia/msdn/masterpages.asp#masterpages_topic10near the bottom they have it so maybe it has been removed but it should be included search engine easy ...
141 byte By
edin at 2008-2-20
Hi, Does anyone know if it is possible to use .NET Framework 2.0 Beta with Visual Studio.NET 2003, meaning instead of .NET framework 1.1
689 byte By
beat at 2008-2-19
Is there a way of setting the absolute position of a control on a web Form? In most samples, positioning is done with a table. I want to do it programmatically by setting the absolute position of a control added programmatically to the page. Your help is very much ...
138 byte By
Gravy at 2008-2-18
In .NET 2.0 is there an easy way of ensuring you only have one instance of a Windows Forms app running at any one time? Thanks Graham
This the solution that is suggested in most of the articles I read about it but I rebuilt the project and rebuilt the solution but it is still the same <img src="/library/msdn/emoticons/emotion-6.gif" alt="Sad" /> Any other thoughts / stuff I need to validate / change?
3408 byte By
anuppm at 2008-2-16
Hi all <?xml:namespace prefix = o ns = "urnchemas-microsoft-comfficeffice" /><o> </o> We develop a Custom logging plug-in dll in C# (using IWMSEventNotificationPlugin Interface)that fetch data from Windows Media server client log file information and load in to Sql server through Webservice. ...
277 byte By
KenY at 2008-2-15
Hello, I am trying to create a strong name key for one of my .net components, however I can not find the tool that msdn references as sn.exe which is part of the security tools of the .NET SDK 1.1. Anyone know where I can download this utility or the SDK? thanks! -ken
I have a .Net component that passes a stringArray to a client program via an out parameter.This works fine from a .net clientand I have successfully passed a SafeArray from MFC to a .net component as an [in] parameter.What seems to evade me is returning returning an array of BSTR from a .net ...
It appears there's an oversight in the design of System.Collections.Generic. Given an instance of an implementation of IList<T>, one cannot use generic algorithms because there is no static class which implements the generic algorithms (things like ForEach, RemoveAll, ConvertAll, etc.) ...
I have tried to make simple game with simple GDI+ graphics and during my tries I have found that I am unable to draw or fill rectangle inside OnPaint methodWhen I am drawiing just simple line with same parameters line is drawn correctlyMy OnPaint Code Looks Like this Pen PlatformPen = new ...
It appears there's an oversight in the design of System.Collections.Generic. Given an instance of an implementation of IList<T>, one cannot use generic algorithms because there is no static class which implements the generic algorithms (things like ForEach, RemoveAll, ConvertAll, etc.) ...
952 byte By
namewb at 2008-2-14
Hi, I have an product catalog page for online shopping. This is the sample of the DataSet ID Name ThumbnailImage BigImage 1 Product A productA.jpg productA_big.jpg 2 Product B productB.jpg <NULL> 3 Product C <NULL> <NULL> I'd like to display the data in a way that the ...
I have an ASP.NET/C# application. For most of he screens I get data from database, process it and display on grid and other controls. In this whole process, CPU utilization of server goes up to 100% and on an average it remains at 90%. I am using 2.4 GHz, 512 RAM server, Win2000 and IIS 5. ...
Has the way SqlConnection and SqlTransaction works changed for BETA 2? I can't find anything but the following code no longer works and throws a "Connection Closed" exception when conn.BeginTransaction executes, even thou conn.Open() seems to work.CheersSimonusing (SqlConnection conn = new ...
6023 byte By
ec at 2008-2-13
************** Exception Text **************System.Security.SecurityException: Request for the permission of type System.Windows.Forms.SafeNativeMethods.IFont.GetHFont() at System.Windows.Forms.Control.ActiveXImpl.get_AmbientFont() at System.Windows.Forms.Control.get_Font() at ...
1801 byte By
Roose at 2008-2-12
I am playing around trying to send messages to windows (specifically close messages and specific messages to dialog boxes).I am using visual studio 2003, and am using the windows API to try to send the messages.What I have found is that FlashWindow and CloseWindow work, MoveWindow kind of works ...
Hi, I have been wondering. In which scenario, I should be using (int), Int32.Parse and Convert.ToInt32? Or are they the same? I do notice in certain condition that i cannot cast directly using (int) and I have to use Convert.ToInt32. I am not that sure why i do that. I just need some ...
239 byte By
Joei22 at 2008-2-10
I'm trying to run an aspx on a 2003 server and get the error "BC30138: Unable to create temp file in path 'C:\WINDOWS\TEMP'" we tried giving ASPNET account access to 'C:\WINDOWS\TEMP' but no luck there. Any ideas on this ? Thanks!
What about allowing static interfaces? Regards
Hi , i want to share my smtp expirencein c# we can send mail using IIS Smtp with .NET SendMail Function Like This.-Step 1Control Panel->Administrative Tools-> IIS in Smtp Properties , set ip is your local ip or net ip..And write this code in .net :(add System.Web to project references) ...
513 byte By
orbit at 2008-2-8
HiWhen a generator creates properties in a partial class it usually doesn't know anything about the attributes the application will need on these properties.I could manually set the attributes after the code is generated. But they would be lost as soon as I need to regenerate the code.The best ...
Okay from that I can see that you want to be able to support a user uploading a file. However, that doesn't change the fact that this should be posted to http://forums.asp.netUpdate: Sorry Tom didn't post that message. Should be pay attention more closely. ...
256 byte By
Sgro at 2008-2-7
When I try to create a new web site, I get this error the number separator information specified in the numberformatinfo in ambiguous for parsing and the project isn't created. I can create new single files but no project. Anyone knows why? Thanks
Hi, I am looking for a object model diagram of the framework 2.0, but if possible at least for the 1.1 version. Is there anything around for download
Can anyone give useful links for this topic ? Thanks in Advance !
203 byte By
Ninja at 2008-2-6
Great, we have the Beta 2 of C#, VB Express Editions, but the latest version of SQL Express is the April CTP, does anyone know the release date for SQL Express as I can't find any mention of it on MSDN.
Can someone explain this to me?There's a whole new thing about ApplicationSettings and ConfigurationSettings has been (gratuitously) replaced by ConfigurationManager.All I want is to replace the appSettings I used to use with something simple. I seem to have a proliferation of ...
536 byte By
Syl20 at 2008-2-5
Hello all,I have a strange problem with the System.Type.GetType(...) function.When I do :try { string maChaine = "System.Windows.Forms.Button"; Type ty = Type.GetType(maChaine, true); } catch (Exception ex) { label1.Text = ex.Message; } An exception raises ; the message is (I translate ...
I was going to write a Win Forms application which normally starts with my putting in my unhandled exception code. I see that the application class now has a UnhandledExceptionMode Method, with members of Automatic CatchException ThrowException Any idea of what this does or how to ...
242 byte By
BHAB at 2008-2-4
I know that a person can use WshShell or wrap the IShellLink API, but I am wondering if there has been anything added to the new framework which has this included? That is, is there any part of the API which has this in managed code? Thanks
Hello everybody,I am not sure if this is the right group for this question so please forgive me if I got it wrong.My problem involves installing net 2.0 beta 2 redestributable. Right after that, wireless connectivity dies on my sony notebook! I can't seem to get ip from DHCP server. I have ...
501 byte By
Bijan at 2008-2-4
Let's assume that you have a control developed by VS2003 (.Net Framework 1.1) and you want to use it in a VS2005 project (.Net Framework 2.0 beta 2). What would happen (the default behavior) is that control would be executed by .Net Framework 2.0 along the other controls.Now the question is ...
Okay from that I can see that you want to be able to support a user uploading a file. However, that doesn't change the fact that this should be posted to http://forums.asp.netUpdate: Sorry Tom didn't post that message. Should be pay attention more closely. ...
Well, I haven't figured out the problem, but I have more information. I found that the values are correct inside the ascx.vb file at prerender in the PAGE (aspx), but they are not correct inside the custom dropdownlist. Very frustrating.
Okay from that I can see that you want to be able to support a user uploading a file. However, that doesn't change the fact that this should be posted to http://forums.asp.netUpdate: Sorry Tom didn't post that message. Should be pay attention more closely. ...