-
- using Properties.Settings... to read app.config from windows service application
by SargeDev
- 5 Replies
- Last post
by mluckham
- Can anyone explain to me what I'm doing wrong here I'm really stuck and have spent the most of a day trying to find the right answer/documentation.
I'm using VS2005 and .NET 2.0 and have build a Windows Service application, and created a settings file (myServiceApp.exe.config) and saved 2 settings with default values in this.
One of the settings is an application (read only) setting
-
- FTPWebRequest over SSL fails
by ftpmisery
- 1 Replies
- Last post
by ftpmisery
- Hi All,
I am receiving the following exception when I tried to connect via System.Net.WebRequest.
Exception in the Socket#35287174:: Connect - No connection could be made because the target machine actively refused it
This is working from my workstation, but when I deploy it to the app server, it's failing.
StackTrace:
System.Net Information: 0 : [2880] SecureChann
-
- reading a text file.
by pessi
- 10 Replies
- Last post
by AQ Arif
- dear all I have a text file with data like 0.923 0.710 0.534 0.786 1.237 1.309 0.977 0.704 0.727 1.350 1.866 2.369 2.632 2.452 1.852 1.235 0.981 0.923 0.570 0.406 0.271 0.443 0.785 0.869 0.649 0.458 0.498 1.396 2.122 2.590 2.569 2.150 1.538 0.978 0.681 0.570 values are seperated with spaces and lines separated by newline. How to read these values I open the text fil
-
- MSExpense.sdf problem
by oldevel
- 2 Replies
- Last post
by oldevel
- Hi,
A few days ago while using Acropolis July CTP on Orcas Beta 1 I noticed an issue with MSExpense.sdf after having installed the Expense sample.
Upon loading the sample for the first time it is listed in the solution explorer with a yellow exclamation triangle.
Upon execution of the app it continuously hangs.
I installed Acropolis August CTP on Orcas Beta 2 and notice
-
- unable to generate a temporary class when ILMERGED assembly is Dotfuscated
by mukesh_bhakta
- 1 Replies
- Last post
by nobugz
- Dear All,
I was not too sure if this is the right newsgroup to ask this question.
I am ILMerging a bunch of my assemblies and Dotfuscating them using the Community Edition that comes with VS 2005.
The problem is when I use my application (winexe) I get an error message -
Unable to generate a temporary class (result = 1)
error CS0229 - Ambiguity between dz.c and dz.c(
-
- Interop Problem: Not finding the DLL
by DJaus
- 2 Replies
- Last post
by DJaus
- Got a vendor C# program that accesses hw over usb (virtual serial-FTDI chipset).
The hw is accessed via a DLL which is accessed in .NET using PInvoke.
On one machine the program, as installed, or as built from source run OK.
When the similar actions are done on another machine the DLL can't be found.
This is a a Visual Studio 2003 application.
Tried a whole lot of thi
-
- Thread.Abort throws exception in one application and not in other
by A_Kumar
- 9 Replies
- Last post
by A_Kumar
- Hi All
While working on an application, I called Thread.Abort for some thread and it throws unhandled exception (which is correct according to MSDN page for thread.abort). So I preferred ending this thread by ending the loop this thread was running.
Now today I was writing a small test application and I wrote the same code to abort a thread and it aborted the thread without any exception. Go
-
- Fixed Length Text File
by Can-Ann
- 1 Replies
- Last post
by RizwanSharp
- In c# VC 2005 - How do I read in a fixed length text file - keeping the fields in an array
Sample format
"A 2222222 2007/01/01 5.55 "
-
- Check load assembly for broken references
by Esqueleto
- 3 Replies
- Last post
by Martin Xie - MSFT
- Hello I would like to know how can I, when I load a assembly dynamically check if all the references are available. I get an error when I put some assembly online that will be loaded by my application but I forgot soem references. I got error that the assembly could not be load or some references. How can I know what reference was not found tkx in advance Paulo Aboim Pinto Odivelas - Portugal
-
- is this ridiculous use of regex?
by elChapoDeSinaloa
- 4 Replies
- Last post
by elChapoDeSinaloa
- reader = New StreamReader(strCapFile & ".tmp")
s = reader.ReadToEnd reader.Close()
Dim ptn As String = _ "( :^PART-NO\.\s+)( <partno>[A-Z/-]+)( :\r\n)" & _ "(( :^DESC)( =[ ]+)( :\s+)( <desc>.+)) ( :\r\n)) " & _ "(( :^O\.H\.)(( =[ ]+)( :\s+)( <onhand>- [A-Z0-9]+)) ( :\r\n)) " & _ "(( :^COST)(( =[ ]+)( :\s+)(
-
- SslStream AuthenticateAsClient and Async Read
by coder2k
- 1 Replies
- Last post
by Mike Flasko
- I have a NetworkStream setup using asynchronous reading. When I receive a specific packet I try and switch to SSL however when I call AuthenticateAsClient I get exceptions on EndRead stating that it can only be done on fully authenticated sockets or it receives some data and proceeds to pass it to my parsing class. I have also tried BeginAuthenticateAsClient with similar results. Is AuthenticateAs
-
- XMLSerializer has problems deserializing numeric character reference
by Gundam_WG
- 1 Replies
- Last post
by Nikolay Glushnev
- I have these series of xml files which I pass through XMLSerializer to deserialize them into their proper classes. I sometimes encounter xml files with numeric character references. For the most part, XMLSerializer has no problems with these. However, there seems to some specific references that it can't seem to handle. here is one that i found: <DetectionName>[>>]:
-
- SecurityException from System.Net.Mail.SmtpPermission
by Brian Pembroke
- 1 Replies
- Last post
by Alan J. McFarlane
- I wrote a class for sending an email.
In my ASP.Net application, I call this class. Everytime I call the class I get the following exception: SecurityException from System.Net.Mail.SmtpPermission.
SmtpClient smtp = new SmtpClient (smtpHostName);
I also add the following line to my web.config file:
< trust level = " Full " originUrl = "" /
-
- Loading values into multiple lables in VB.NET
by Morn
- 1 Replies
- Last post
by Paul P Clement IV
- What I am trying to deicide is whether I
should use multiple datareaders to store the the individual values or
if I should query the data an stash it in a dataset then bind the
result in set to the labels.
Which one should I use and is it doable
-
- Deployment of DotNet 2.0 application on Windows without any servicepacks
by Jaensche
- 1 Replies
- Last post
by Aaron Stebner
- Hello I wrote an application in C# for DotNet 2.0 in Visual Studio 2005. Now i have costumers who are not able to install any servicepacks on their machines (mostly XP and 2000). I guess i could compile for DotNet 1.1 but that seems not to be supported in VS 2005. I already tried "MSBee", but i does not work with my source (eg. partial classes). What are my options Greetings Jan
-
- Error while using stackalloc in C#
by YogeshC
- 7 Replies
- Last post
by YogeshC
- Hi,
I am working on a project in which i am writing unsafe code in few public methods in a public class. i declared the method as unsafe and added " using System.Runtime.InteropServices; " namespace as well but when i am building my solution i an getting this error:
1. Invalid expression term 'stackalloc'
2. ; expected
3. Invalid expression term 'byte'
4. ; expec
-
- RegularExpressions.Regex.IsMatch
by IMBack
- 5 Replies
- Last post
by IMBack
- I am trying to write a reqular expression that matches anywhere in the string special characters such as:
<>! "\ /%*
I wrote : but it doesn't work,. I though that \\ means that it will look anywhere in the string
if (System.Text.RegularExpressions.Regex.IsMatch(v,"\\<>! \"\\/%*"))
{
Response.Write("true");
}
else
-
- Dataset in SQl Statement prob
by alkatal
- 2 Replies
- Last post
by alkatal
- Hi im having A Dataset csv wich is the Dataset of a Spetial csv file. Now i want to add a Column of this dataset to my databe using this SQL Statement
Code Snippet
Code Snippet
DataTable CSVTable = csv.Tables["CSV"]; CSVTable.TableName = "CSVTable"; string insert = "INSERT INTO TBL_SecurityName ( SecurityName )"
-
- Code Access Security: DLL.Net(VB.net) Deployment on a company's Network (Security Exception)
by Pijay
- 2 Replies
- Last post
by Pijay
- Hello everyboby,
In first, i just want to say that i'm french developper and my english level is not really good. So, I hope that you understand my problem.
I developped a DLL in VB.Net with Visual Studio 2005 Platform. This assembly is composed one methode to connect to the Access Data Base and one methode to send a mail with Outlook
I would like to call this DLL with Access,
-
- How to know when a remote object is no more available
by marco.beninca
- 3 Replies
- Last post
by marco.beninca
- Hello, Is it possible to know when a remote object is no more available. I mean something like the OnClose event of the MFC CAsyncSocket class. Marco
-
- Question about Parser
by Luis D. Rojas
- 2 Replies
- Last post
by nobugz
- Hi,
I want to ask about building parsers with .NET. I'd like to hear from you what would you recomend for building a parser for a language like Oracle Forms, or PL-SQL or TSQL.
Do I need to use Lexx yac or some syntax analizer like that
Any Advice would be appreciated
Diego Rojas
-
- SQL Server 2005 - Image uploading
by Tovdb
- 1 Replies
- Last post
by Tovdb
- Hi everyone,
I'm working with SQL Server 2005 on a project. In this project I have users which can update their profile with a picture, this picture is saved to SQL Server 2005 with the following code.
Code Snippet
private static byte [] imageToByteArray( Image imageIn)
{
MemoryStream ms = new MemoryStream ();
imageIn.Save(ms, System.Drawing.Imaging. Imag
-
- How can I let a user select the location of a database?
by juSTSTar_SOFT
- 9 Replies
- Last post
by juSTSTar_SOFT
- Hi,
I've created a program that uses a database. The problem I have is that the drive names and or directory names change true time. How can I let a user select the current data base location when it has been changed
Like:
Dim path as string
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=(path & Database.mdb)
path = (get it from an file dialog box)
Any idee I'm working wi
-
- how to change ms access database password in c#?
by chunket
- 6 Replies
- Last post
by aka wolf
- hi,
how to change the ms access database password in c# i search through the web and found one in VBA but not in C#. http://support.microsoft.com/kb/170961
Please give some hints. Thank you.
regrads,
chunket
-
- Error when Validating against an XML Schema.
by JoshStodola
- 14 Replies
- Last post
by JoshStodola
- Hi everyone,
I get an exception when I try to validate an XML stream against a provided schema. I am following another organizations standards with this, so I did not create the schema myself.
Exception : XmlSchemaValidationException
Message : The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared.
I am not sure what this means, and I have been searchi