C# - Generate Logs Based On Date Using Logging Application Block For EL 5.0?

Oct 18, 2011

I am using logging application block for EL 5.0. I defined listener like below.

<add name="FlatFile TraceListener" type="Microsoft.Practices.EnterpriseLibrary.
Logging.TraceListeners.FlatFileTraceListener,
Microsoft.Practices.EnterpriseLibrary.Logging"

[Code].....

View 2 Replies


ADVERTISEMENT

.net - Logging Application Block?

Aug 18, 2010

We have a current implementation of a log file manager where it's two main purposes are to 1. rename files generated by other programs with a date/time stamp so they create new ones, and 2. delete files older then X amount of days from a specified folder. The program also makes it's own log file which records when these events happen.Do you think the Logging Application Block would be useful in this instance? The old file manager is written in VB 6.0 and an upgrade to VB .Net would not take too long, but is it worth it to try and implement LAP into it?

View 1 Replies

Generate Digital Signature In My Asp.net Application Based On Some Value?

Jul 20, 2009

I wanted to generate digital signature in my asp.net application based on some value like date of birth. what is the way to do that ? i am using vb.net

View 1 Replies

Generically Implement Exception Logging If I Have Already Got Many Try-catch Block?

Apr 20, 2012

I am writing ASP.Net Web-form in VB.

I have a system which have already handled exceptions by try-catch blocks everywhere.How do I quickly and generically implement exception logging like overriding something instead of inserting logging functions in every single catch block?

View 1 Replies

Microsoft Data Access Application Block Date Type Precision?

Jul 13, 2009

We are working on an ASP.Net/VB.Net application using Enterprise Library for our data access (DAAB).

We are trying to store DateTime values in an Oracle Date field. However, the precision is being lost. Currently only the year, month, and date are being stored. We need better precision than this.

Oracle Dates are supposed to "includes not just the month, day, and year, but also
the hour, minute, and second. "

View 1 Replies

Generate A Large Random Block Of Characters?

Mar 16, 2009

i m trying to generate a large random block of characters(lets say 100 characters).This below is the code i used to generate a letter but to generate lots of characters(letters) i couldn't.I then wish to display them in a RichTextBox:::

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rand As New Random
Dim letter As String
letter = ChrW(rand.Next(Asc("A"), Asc("Z") + 1))
TextBox1.Text = letter
End Sub
End Class

View 3 Replies

How To Generate A Random Block Of Number Of Cells In Two Dimensional Space

Nov 25, 2009

I am using VS2008. I worked on this problem for a time, but I was not successful doing it. Below is the VS file.I need to produce a grid of cells and have some random features as shown below which is an example of a world of (500 x 500) units (or any other size and grid size). It contains three areas (of 11 cells, Value of each cell = 108), two green areas (of 8 cells, Value of each cell = 137) and one river. The start point of the river should start from one of the world edges and finish to another one. Please note that number of feature could increase or decrease according to user inputs.The question is, how can I produce these features randomly? To clarify the question, I will read the number of areas from a form. I need these features so that the number of cells should be distributed randomly beside (attached to) each other in the world. The rivers occupy one sequential grid line. My problem is how can I randomly generate the features according to number of cells??

View 1 Replies

Activate SSL When Application Logs On To A Ftp Server?

Aug 28, 2010

I need to activate SSL when my application logs on to a ftp server. I'm searching the net and I can't find some piece of code to work, the username and the password are in plaintext, they are visible

I use this for now but it doesn't work:

Dim request As FtpWebRequest = CType(WebRequest.Create(ftp://ftpwt.com), FtpWebRequest)
request.Credentials = New NetworkCredential("user", "password")
request.EnableSsl = True
request.Method = WebRequestMethods.Ftp.ListDirectory
request.KeepAlive = False

View 4 Replies

Application Just Stops Running - No Flags In Event Logs

Oct 18, 2011

I have a vb.net app that crashes after runnung for 6 hours. There is no error message. Application just stops running. No error noted in log. No flags in event logs. Is there a feature in vb.net that may cause this. Application uses excel 2003

View 3 Replies

Create A .Net Windows Form Application Which Logs Onto A Website?

Jun 8, 2010

I would like to create a VB .Net Windows form application which logs onto a website and then retrieves some data. Currently when i navigate to the website it presents a dialog box to enter my details into. So in short how could i do this, what namespace would i need to look at?

View 3 Replies

How To Make A ClickOnce Application Start When A User Logs On

Dec 21, 2009

you tell me how to make a ClickOnce Application Start when A User Logs on? I am running Express so I cannot use the Installers in the full VS. I would like it so it will only add a shortcut when it is installed. (Application is available offline)

View 4 Replies

DB/Reporting :: Search A Table, Confining To A Specific Date Range Based On A Date-time Column?

Jul 14, 2009

Would it be possible to search a table, confining to a specific date range based on a date-time column, and get a count of the 10 most used words in a particular var-char column excluding a list of words?All in SQL?Currently I am pulling out the records that match and sorting through the contents outside of SQL, I would think where I can do it directly on the server it would be more efficient.(SQL 2008)

View 4 Replies

Date Function That Calculates The Date Based On The Number Of Months?

Sep 15, 2009

I am using VB.NET. Is there a date function that calculates the date based on the number of months I have given?

for example, if i say July 2009 and looking for 10 months back, it should return Sept 2008.

View 4 Replies

[2005] Make An Application Which Logs On To A Server Using The Telnet Protocol?

May 9, 2008

I am trying to make an application which logs on to a server using the telnet protocol runs a couple of commands and stores the output of these commands in a text file.The problem is that I cant really seem to figure out how to negotiate the telnet commands. I have done a packet capture of a telnet session todifferent servers using a packet capturing program and I dont seem to find any fixed pattern. Every server negotiates the command in its own different way and in a different sequence, moreover the commands exchanged are not the same.

What I want to do is to exchange the bare minimum commands which will allow me to log on to any server via telnet, run my commands, take the output and logout.I have searched the internet for such a set of 'general' telnet commands but I wasnt able to find any.

View 13 Replies

Grid Based Puzzle Board Game Block Removal Algorithm?

Jan 26, 2010

the rules are that same coloured blocks of two or more can be removed by clicking on them. blocks then slide down from above. if a column is empty columns other columns move in from the sides.when someone clicks on the green blocks in the bottom row the columns should slide in from the sides. columns to the left of the black line slide right and on the right of the black line slide left. so in this case only the two rightmost columns should slide from the right to the black line after removing the green blocks.The problem i am having is in designing a suitable algorihm to do the collapsing after the removal. my current approach is to test each column from left to right to see if it is empty. if it is empty then i slide whatever column is to the left (if left of the black line) or to the right (if to the right of the black line) over the blank column and repeat this in the direct i am sliding from

View 1 Replies

How To Generate ID Based On Comboboxes Selection

Jun 18, 2012

i am creating a programme for my institute which helps in their administrative process. i am using visual studio(basic) 2010. which is connected with ms access database (abcdata.accdb) the database is having table called session with columns sessionID,sessioncode,sessionname.

* sessionID data = 1,2,3,4
* sessioncode data = 13,14,15,16
* sessionname data = 2013,2014,2015,2016

[Code].....

other then this u can see i want this because i am trying to create a database which must save the students data year wise, so that whenever we need to know a detail any students then we can find with query.

View 2 Replies

Generate A Specific Key Based On Certain Details About The System?

Apr 7, 2010

I have asked questions about this before but my program has came to cross roads where I require more flexibility in my security procedures.At the moment I generate a specific key based on certain details about the system, and I hash this data to file, which ensures it will only run on this system.

However it has now got to the point where I have a need for providing keys which will carry settings for the program within the key. So that if a customer wants an update its the matter of sending an updated key, which will allow certain areas of the program to be unlocked/locked.Obviously I can no longer use the hash, as it can't be decrypted. I am looking to use key encryption system, which will allow to encrypt data within a license key. But obviously it brings the problem of where to store Crypt & decrypt key within the program.

[Code]...

View 1 Replies

How To Generate Unique ID Based On Combobox Selection

Apr 9, 2009

how to generate unique ID based on combobox selection?

View 5 Replies

Showing Windows Authentication When Logging In To Web Application

Mar 5, 2009

i'm developing a web application. i want if user access it, it will prompt for windows authentication, if the username and password is correct, then the page appears.i've been working around on this but it's not working. my web app prompt users for windows authentication, but it always failed or access denied.anything i should check?

View 1 Replies

RSA: Generate RSA Public And Private Keys Based On A Passphrase (.net)?

Mar 24, 2011

I'm working in .net environment (all versions) and using vb.net. I want to generate RSA public and private keys based on a passphrase. RSA algorithm only limited by using a class provided by the .net ie System.Security.Cryptography.RSACryptoServiceProvider Class. I know how to generate random RSA public/private keys and perform encryption/decryption.But that .net class don't let us creating RSA public/private keys based on a passphrase.

View 4 Replies

Visual Studio Logging In/ Logging Out?

Feb 17, 2012

Using visual studio (Winforms) with sql server (R2). If you can login by inserting the correct values in the textfields (vb.net) that is connected in the database . How do i code the log out?

View 2 Replies

Securing MySQL Application - Details Of Database Can Be Found Out Through Packet Logging

Jul 18, 2012

I've made an application and it connects to my database. But the issue is the details of the database can be found out through packet logging or something. How can I stop this from happening and secure it, without having to have a third party such as PHP script etc.

View 1 Replies

Sql - Generate A Date For The Given Time?

Nov 3, 2009

Using VB.NET and SQL Server 2005

I want to generate a date according to the given Outtime,

Am entering the value like

ID Date Intime Outtime Holiday

001 23-02-2009 08:00:00 17:00:00 no
001 24-02-2009 17:00:00 08:00:00 no
001 25-02-2009 10:00:00 16:00:00 no

[Code]....

Dateout column should compare the Intime and Outtime value, if Outtime is less than Intime, Dateout column should display the next day date.

If Holiday = Yes then It should display as a blank column

For the above condition, How to make a sql query?

Whether it is possible in vb.net, which is faster sql query or vb.net code?

Need SQL Query or VB.NET code for the above condition.

View 3 Replies

VS 2008 : Create A New File Everyday For A Logging Application To Minimize Size When Accessing?

Apr 30, 2012

I'd like to create a new file everyday for a logging application to minimize size when accessing. I'm after a couple of pointers with respect to when to create the file, and what checks to do etc.

View 2 Replies

Auto Generate Number In Date Format

Feb 15, 2012

My code: it is used to generate number in date format my problem is that it doesn't show any output in the textbox nor in the database. The last num in my database is 2012010001.

Dim i As Integer
Dim strSQL As String
Dim strMonth As String
Dim strYear As String
Dim strTheID As String
Dim today As Date
[Code] .....

View 7 Replies

2005 : Crystal Reports Application Or Windows Application To Generate Pdfs?

Apr 13, 2011

I currently have a simple crystal reports application which generates a crystal report and in the built in viewer provided by VS2005. There is a drop down where you can select options to change the criteria of the report. I wish to convert this app to a windows executable which will take all those select options and generates pdfs based on the crystal report. the executable will be triggered by windows task scheduler...or maybe command line app?

Obviously this will be somewhat of a re-write. What would be the best way to start this as? a crystal report application or a windows application.

View 2 Replies

Set The System Date Of A Workstation Based On The System Date Of The Server?

Dec 13, 2009

i want to set the system date of my a client pc based on the system date where the sql server reside.In short i want to sysncronize the date between the client and server.I have a working code in vb6 but i dont know how to do it in vb 2008.

dim RstDate As ADODB.Recordset
Set RstDate = New ADODB.Recordset
RstDate.Open "SELECT GETDATE() as ServerDate ", CnAP

[code]....

View 5 Replies

Block Some Application From Running .net?

Nov 29, 2011

I'd like to block unwanted application from running in my system, mostly setup until given access by my application. I would have a white list of allowed application.

how do i imoplemnt this in vb.net

View 1 Replies

Sql To Pull Based On Date?

Jan 2, 2012

I have code which has been working awesomely but for some reason wil not take dates from this year. the date starts in a date picker datepick is a variable string log is the table, dater is the coloum

datepick = format(datetimepicker1.value, "dd/MM/yyyy")
dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbsource = "Data Source = C:datadatafile.mdb"

[Code]....

now the code has worked fine (and still does) for dates pre 2012. now and dates like 02/01/2012 it hates. the dates in the database are set to custom format of "dd/mm/yyyy" and i CAN NOT figure out why this is not pulling the data ..

View 8 Replies

Check What Application Block Connection?

Dec 3, 2009

I'm having a problem with some users, my vb tools always check at the splash screen a response from a server with a simple:

Dim MyResult as string = oWebclient.DownloadString("www.mydomain.com/page.php")

This actually works for most users but in some clients the firewalls I think they block this call or bypass or something like that, I found that after telling the user to turn off the firewall everything works ok, now I have some users that according to them they don't have a firewall or they already disable and still they have the problem.

You can see from the image the error message they receive, so my question is do you know any kind of free tool that I can send to the user to maybe log what program or whatever is blocking the program to connect?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved