-
- How to properly create a new AppDomain passing all security permissions from the current one
by RossenT
- 3 Replies
- Last post
by nobugz
- Hello, In part of my application (which runs as a Windows Service), I need to execute code in a secondary AppDomain. So I create the new AppDomain to the best of my knowledge, craete an instance of my worker type in it and set it to work. I have different types of workers and most of them function without a problem. One of them, however, needs to write a temporary file to the file system. Even tho
-
- PDF document in SQL Server 2005
by Jassim Rahma
- 1 Replies
- Last post
by Paul P Clement IV
- how can I save and retrieve a PDF document from SQL Server 2005 using C#
-
- Sending an Image File from Client to Server
by mw_59
- 1 Replies
- Last post
by Uma Ramiya
- Any tips on how to send a class object containing an image file (JPEG) from one computer to another I tried using the available Serialization (with MemoryStream) APIs but they are highly unreliable it seems for larger objects, as I get exceptions when trying to Deserialize (something about the i try to send the data using sockets.
Just wanted to see if anyone has done anything similar befo
-
- RegExes in huge file
by Leonid Ganeline
- 10 Replies
- Last post
by Sergei Z
- Hi All,
Sorry if the question is stupid, I'm a novice in RegExes.
I need to use several RegExes to replace several patterns in very big file. (Precisely it can be very small or big)
Obviously I cannot place the whole processed string in memory.
I have to use some logic to process the whole file by parts.
I started to develop some custom buffer and the first problem is I cannot predi
-
- Login to Yahoo
by A. Saad
- 4 Replies
- Last post
by Savas Guven - MSFT
- Hello!
I need to do following in Visual C# 2005. Anyone's help will be appricated.
1. open http://mail.yahoo.com
2. enter ID and Password
3. click "Sign In" to Login
4. Display how many emails are in InBox. (Number of Emails).
BR,
S.
-
- Check if sql server is online...
by ZopoStyle
- 7 Replies
- Last post
by Prafulkumar Patel
- Hi,
How can I check if the sql that I want to connect is online Like my aplpication startup with windows and sometimes it get online first than the SQL server and then there is a problem...I need to make the application wait until sql is online...
Thanks
-
- Visual Studios auto-generated "XmlSerializers.dll" throws an exception when invoking a webservice
by Parker Lewis
- 4 Replies
- Last post
by RolandLee
- Hello
I have a project which references several ColdFusion webservices. When I set the "Generate serialization assembly" option to "on" in the project properties, a "MyProject.DAL.XmlSerializers.dll" is generated by Visual Studio and copied into the bin folder.
When I try to invoke the first webservice method, the following exception is thrown:
------
-
- Prevent Application Termination by Unauthorized Users
by Daniel586507
- 1 Replies
- Last post
by Martin Xie - MSFT
- I have a C# application that I'm developing that I want to keep unauthorized users (ones that don't have admin priveleges) from terminating. How would I go about doing this I don't want them to be able to kill the process or exit in any way without entering the proper admin authentication. The application does need to be terminated when the user logs out, however. For those who are wondering, thi
-
- CAPICOM
by KAMACI
- 3 Replies
- Last post
by Feng Chen - MSFT
- I am reading msdn libraries to learn about CAPICOM.Can you help me to find examples about it.How can i use it for digital signing .Does it work with C#
-
- Substring with regex??
by NoEgo
- 13 Replies
- Last post
by OmegaMan
- This is a simple stripping
MyString.substring(1,150);
but I want to strip the first 150 chars and also any of the following characters if found in the first 150 chars:
HTML tags
carriage returns
line feeds
tabs
Can this be done using regex and substring or just regex How can this be done
-
- SIgnedXml, Envelodped signature, .NET 1.1 and WSE 2.0.3.0, .NET 2.0
by JCopus
- 6 Replies
- Last post
by JCopus
- Hello All,
I have spent some time on this one. Here is what I have learned and would like to know if anyone can confirm or provide proof to the contrary.
In .Net 1.1, using direct calls to the CAPICOM dll I can create signed xml with an enveloping signature using the SignedXml class and an X509 certificate.
In .Net 1.1, using direct calls to the CAPICOM dll AND us
-
- How to get ˇ°Single Referenceˇ± soap body
by Black Bits Neeraj
- 2 Replies
- Last post
by Black Bits Neeraj
- We have developed a web service using SoapRpcMethod. We are expecting ˇ°single referenceˇ± soap envelop from client request. But the sample envelop generated by web service is ˇ°multi-referenceˇ± .
Please suggest us, what need to be done so that web service can accept ˇ°single referenceˇ± soap request and process it.
The signature of web service is:
[SoapRpcService]
-
- Reclaiming Memory
by Azurewrath
- 11 Replies
- Last post
by Azurewrath
- Hi all, I am working on a dll where it stores a big array (public), but at the end it takes up like 100MB of memory. When I make the size of the array 10 times, my total memory becomes insufficient: 2GB. So what I am wondering is this: Is setting an array to null removes it from the memory If not, how should I do it There is also the problem of when to do it, because I have a method like this: p
-
- Attended to mscorlib.dll warning and got dozens of errors w/Framework64
by Steve Erbach
- 3 Replies
- Last post
by nobugz
- Dear Group,
I have a working Windows Forms application. Everything's great, but I have one warning that keeps appearing:
Possible problem detected while building assembly 'appName': Referenced assembly 'mscorlib.dll' targets a different processor
My system is an Intel Core Duo E6600 running Windows XP x64. I started this application on a single core processor last year. This wa
-
- How to filter columns from a dataset?
by xelag
- 11 Replies
- Last post
by xelag
- I have a dataset filled from a XML file with the method : myDataset.LoadFromXMLFile(fileXmlPath); There are two tables imported :
students :
- id - name - firstname - #professors_id (foreign key to table professors )
professors :
- id - name - firstname I want to show in a grid (*) the following columns :
- name (from students) - firstname (from students) - name (from professors)
-
- Starting an .net executable with different process name
by A_Kumar
- 1 Replies
- Last post
by nobugz
- Hi All
I have a .net windows application which can have multile instances running. Can I assign different process name to each instance
Or can I assign any custom tag to new process so as to identify it later. I dont want to keep track of process id of each new process started.
Thanks
AKumar
-
- Automating website interaction
by lcj
- 1 Replies
- Last post
by Vishal Mishra
- There is a process I go through every day to download information from a web site. I wanted to automate the process. Ideally I would like to have this process fit into a larger process I have to do.
I was thinking I could write something using the System.Net.WebClient class and use regular expressions to do the manual entry. There are a few complications. The site uses frames and I am not s
-
- Question about X509Store
by Sandeep_MSFT
- 1 Replies
- Last post
by Sandeep_MSFT
- Hi,
I am facing the following issue, please tell me what's the appropriate forum for this:
X509Store returning removed certificates from store
I have code like this to enumerate certificates from user's personal store:
X509Store personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); personalStore.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadOnly);
-
- Strange Type.Assembly behavior.
by Lok_Tan
- 2 Replies
- Last post
by Lok_Tan
- Hi everybody. I need to get the assembly in which a type reside. Here the code I'm using: Assembly asm = typeof(IChannel).Assembly; But somehow, the result didn't refering to System.Runtime.Remoting.dll but it refers to mscorlib.dll instead. Is it because the typeof(IChannel) returning a type of System.Type , so calling to typeof(IChannel). Assembly will return mscorlib.dll in which System.Type
-
- config for a non-managed app using a .NET shared dll
by GraemeE
- 7 Replies
- Last post
by Alois
- I have a .Net shared dll which requires a connectionStrings setting to be provided via the app.config. If I wrap this dll and expose it through COM and invoke it from a vbs script, what are the options for supplying the config information I am aware that you could say create a wscript.exe.config in the system32 folder, but am not too keen on this! I also know that you can register the application
-
- foreach element in a collection question
by AlexBB
- 7 Replies
- Last post
by georgepolevoy
- I use foreach statement to iterate through collections of DataRow[] in tables and change the content routinely. I just read that it should not be done. So far I have run into some problems a couple of times perhaps out of a million or more "uses" but I want to hear some expert opinion what the ultimate penulty might be.
Also, is it possible to iterate via a DataRow[] colelction ba
-
- Custom Marshaler: Cannot pass string matrix as VT_ARRAY|VT_VARIANT|VT_BYREF
by Darren Morby
- 5 Replies
- Last post
by Feng Chen - MSFT
- I've got this method I'm trying to implement in my custom Runtime Callable Wrapper. It takes two parameters: a UInt32 and a VARIANT whose VARTYPE must be VT_ARRAY|VT_VARIANT|VT_BYREF. The VARIANT parameter must be a two-dimensional array of strings.
My custom marshaler is at the point where the error I get is:
Failed: System.Runtime.InteropServices.COMException (0xC0000005): Exceptio
-
- Asynchronous Receive Method and Threads
by mertkan65
- 7 Replies
- Last post
by RizwanSharp
- Hello All,
I have Asynchronous method to read bytes from the network stream. I wrote below code 2 months ago, now when I come back, I wonder why I used "while(true)" for backgroundWorker. Are there any alternative method to use asynchronous read method with backgorundworker Or the method written below is OK receiveBackgroundWorker.DoWork += new DoWorkEventHandler(Receive); private vo
-
- Invoke on a web service call deadlocking
by Steven Hawkes
- 0 Replies
- Last post
by Steven Hawkes
- Hi,
I am experiencing a deadlock when debugging an winforms application which has multiple calls to different web services. In particuliar, I have two threads which are deadlocked. Each thread has called Invoke and is stuck in unmanaged code, RemoteDebugger.Close(). We think we are also experiencing the same deadlock situation in production code so suspect the error is not related to running
-
- Programatically pause and resume while uploading and downloading using FTP ?
by Harsh585762
- 7 Replies
- Last post
by Alan J. McFarlane
- I have created an application in VB.Net 2005 which is used to upload and download files or folders from FTP Server.
Now if the connection is broken in between uploading file then I have to restart uploading.
Suppose I am uploading a file of 15 Mb to FTP Server using following code -
Dim reqFTP As FtpWebRequest
Dim SUri as String = ""
sUri = "C:/harsh.dat"