|
This doesn't help much. You'll have to profile your code on the Server to see where the problem is.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
This doesn't help much. You'll have to
profile your code on the Server to see where the problem is.
Hi,
Can you tell me what do you mean by profiling the code???
Thanks,
Sushant Duggal.
|
|
|
|
|
It means that you use a code profiling package to log the time it takes to execute sections of your code. This will tell you where the bottleneck is so you can troublehsoot your problem.
Here[^] is a trial version of a profiler.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
check if the server is ok. I once had a similar situations and begun profiling my application. After several days a figured out that the hard disk was slow because of a badly configured raid system. It could have saved me several days if I just had called our admin to tell him to fix the raid.
Robert
|
|
|
|
|
Thanks Robert,
But I tried it on two systems, ans I faced the same problem.
Can you tell me about profiling.
Regards,
Sushant Duggal.
|
|
|
|
|
Hi,
in short:
1. Compile your app in Debug mode and put it onto the server.
2. Download and install a profiler on the server (NProf[^] is a free one).
3. Start NProf, select your application and make a test run.
4. In case of NProf the application must shut down before it shows any results.
5. Analyse the results to find which part of your app is slow.
Robert
|
|
|
|
|
Hi,
Does anyone know if there's functionality available in .NET (using C#?) to
export data from a Windows Application into a PowerPoint file format? For
instance, if I'd a form containing a bitmap image in my Windows App, I need
to save that to a slide in the PowerPoint file.
Any ideas/info is appreciated.
Thanks
AP
|
|
|
|
|
I'm writing an FTP utility and had wanted to dispay/allow user to update the ip address, user id and password in toolstrip text boxes. My issue - for which I have a work around is that the .net toolstrip textbox control does not allow for masking characters.
I'm interested to hear some options that others may have used to solve this deficiency in the control.
S.D.Hunt
|
|
|
|
|
The controls that come with the .NET Framework are a basic set of controls. They're not meant to be the "Be All, End All" of the Utimate ToolBox. If you need specific functionality, there are two methods of getting it. Either find and buy a commerical control library that offers the functionality you need, or (my personal favorite!) write it yourself!! That's what inheritance is for and why you have the Control Library projects in Visual Studio. You can make your own version of the control with the added functionality tacked on.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi guys -
When using the 'System.Configuration.ConfigurationManager.AppSettings("key")', it seems like it can only access the config settings defined for the primary assembly running in the app domain.
i.e. i have a program
MasterApp.exe
SOAPProxyLib.dll
Now, if i declare the following AppSetting value in the SOAPProxyLib.config:
<br />
<add key="key" value="value"/><br />
And then invoke it
<br />
Dim lstr As String = System.Configuration.ConfigurationManager.AppSettings("key")<br />
It returns nothing, but if i declare it in the MasterApp.config, this works fine, called from the SOAPProxyLib.
Is there any way i can put the settings i want for the library in the libraries config settings, and manage them independently to the rest of the app?
Cheers
Tris
|
|
|
|
|
The Catalyst wrote: When using the 'System.Configuration.ConfigurationManager.AppSettings("key")', it seems like it can only access the config settings defined for the primary assembly running in the app domain.
That's right! Only application get to use config files. DLL libraries do not get their own config files. This is because a DLL becomes a part of the process (or application) that's calling it. Anyone using your library has to be aware of the fact that they must put any configuration information your library needs into the applications config file.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ahhh, cheers for clarifying that.
Mooooore documentation
|
|
|
|
|
Frndz,
Is there any class in .NET 2005 which has collections of all the months?
Regards,
Vipul Mehta
Sr. Software Engineer
NIIT Technologies Ltd
|
|
|
|
|
No there isn't. You'll have to write one if you want it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Not quite sure what you want, but you should look into the Calendar Class
|
|
|
|
|
|
Hi,
I would like to implement a textbox into my application that allows the user to enter hex, decimal or binary values (based on the selection of a radiobutton group.
For hex values, for example, I would like the entered data to be byte seperated by spaces like this: "0E 3C 32...". I was thinking that a masked textbox was the way to go, but a masked textbox only allows for a fixed length mask, it seems.
AFAIK it is not possible to specify a mask that is repeated for the length of the entered data.
Do I have to parse the content of the textbox and reset the contents whenever the user enters a single character, or is there a much simpler solution?
|
|
|
|
|
For a masked textbox you don't have to fill all of the mask spaces, so a mask: ###, can have a legal input of "1".
You can also set the mask to lengthen itself when the user wants to enter a number longer than the set mask.
|
|
|
|
|
I am trying to get the user and domain of a running process. I can do it using the WMI, but this has various problems (it's slow, it needs to run wmiprvse.exe). There must be a way of getting this information without using the WMI - does anyone know it? (I'm using C# under .NET2.0, but that should be irrelevant, any answer is going to involve a p-invoke, I'm sure)
Dave
|
|
|
|
|
The Windows API calls you will need are: OpenProcess to get a handle to the process (ask for PROCESS_QUERY_INFORMATION rights), OpenProcessToken to get a handle to the process's token (ask for TOKEN_QUERY rights), and GetTokenInformation to get the user account associated with the token (pass TokenUser as the second parameter).
That will get you the user's security identifier (SID). You then need to use the LookupAccountSid API to turn that back into a username and domain.
You can find sample P/Invoke declarations at www.pinvoke.net[^].
|
|
|
|
|
Thanks Mike, that's just what I needed.
Dave
|
|
|
|
|
Hi all,
I am new to .Net framework and ASP.Net programming. Now I have a job like this:
Application have to automatically check for certain condition( access Database table records for checking conditions) and if the condition met, have to deliver mail to mailId specified in a table (stored different mail Ids to different conditions). Regardless of any request reception server have to do this job. As a new .Net developer i know only how to use SMTPMail class and MailMessage class to send a simple mail. But i have no idea about how to make it automatically run in server.
Could any one please advice me to proceed this job?
I appreciate even a small amount information from you.
Thanks in advance.
Regards
Renu
Renu
|
|
|
|
|
I'm trying to create a subcategory inside a defined category that i have created (similar to the default collapsed font in the appearance default property).
how can i create something like that?
thanks,
Lior
|
|
|
|
|
Hi,
I have a problem in interop.
I have a c++ dll that has a function that takes the control handle as input and does some manipulation on the editable field.
// HINSTANCE SetInstanceHandle(HINSTANCE hInstance)
I have a .NET form in which I have a textbox control. Now I import the c++ dll and invoke the function. Now, I pass the textbox control's handle as Control.ControlAccessibleObject .Handle (which returns a IntPtr). This gives me an error quoting "The runtime has encountered a fatal error. The address of the error was at 0x79ef04d2, on thread 0x364. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack."
I dont know what this error imply. I am also afraid that my way of accessing the handle in .NET is wrong.
Please guide me to access this c++ function.
Thanks,
Mani
|
|
|
|
|
hi guys can u tell me how to enable LAN card using shell and c#.net.
hello
|
|
|
|