Logging Out Of The Box Vs. Enterprise Library?
Jan 26, 2009
I just got finished watching a short video on logging using some of the built in concepts in Visual Studio 2005. This seems to do a good job. My question is why do people look for other solutions to logging such as Enterprise Library or Log4Net when there is a simple solution out of the box?
The video I watched primarily used the following for logging.
Code: My.Application.Log.WriteEntry(sb.ToString, type)
View 4 Replies
ADVERTISEMENT
Jun 13, 2009
In my shop we currently develop what I would consider small to medium sized projects.We have been investigating the Enterprise Library and how it may be able to help us in development.I have particularly been looking at the Logging block and comparing it with Log4Net.It seems to me that the Enterprise Library blocks would be an extremely over-engineered solution for something like simple application logging.That being said. Are you using the Enterprise Library and on what size projects? What are your thoughts on the Enterprise Library as a whole?
View 10 Replies
Jan 8, 2010
I'm trying to use the Enterprise Library RangeValidator attribute to validate that a decimal value is greater than zero:
<RangeValidator(GetType(Decimal), "0.00", RangeBoundaryType.Exclusive, "1", RangeBoundaryType.Ignore, "MyMessage", "", Nothing, False, "", "")> _
Public Property Holding() As Decimal
[Code]....
As far as I can see I am using the overload correctly. It works fine if I remove the messageTemplate related parameters but I want to be able to specify a custom message.
View 1 Replies
Jul 7, 2010
how to use the Enterprise Library 5 connecting to a MS Access database using VB.NET 2010 on a windows forms application. Looking for quick code samples on how to add, select, update, delete records from an Access database.I'm trying to adopt Enterprise Library in my applications but I'm not finding much information on it.
View 2 Replies
Apr 15, 2009
i'm trying to debug an application i'm currently developing but somehow i'm now getting the following exception The type initializer for 'SupervisorProducao.MdlConstantes' threw an exception. the exception occurs when i reach this
[Code]...
View 1 Replies
May 30, 2010
I want to know how can i update my visual basic 6.0 MSDN library.
View 1 Replies
Mar 7, 2011
I'm getting a design time NullReferenceException on Dim db As Database = DatabaseFactory.CreateDatabase()and I can't figure out what to do about it. Has anyone experienced this problem or know the solution?
View 6 Replies
Mar 18, 2009
For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1
I need this to sign the assemblies to add them to the GAC.
Does anybody know where I can find it?
View 2 Replies
Sep 14, 2010
I am trying to set command timeout for enterprise library 4.1 data access. I used below code for get command object from Database.[code]....
View 2 Replies
Jul 28, 2009
we are using the Enterprise Library data access application block in our data layer for an application. We must be doing something wrong though because we cannot seem to get encryption and the ability to reconfigure connection strings working well. For example, when the application starts, it checks if the connection strings are "Protected", and if they are not, we encrypt them using the following function:
[Code]...
Then comes another issue. If a user installs an update for the application, the first time it runs, nothing can connect if the config file was previously encrypted. A restart of the application (second time running) will fix the issue. with all of the battles we are fighting here, I wanted to ask if we are doing this right? How should we be encrypting and allowing updates. If you need to see the exceptions thrown, I can provide those upon request (will need to change some code to get them again, but it is doable).
View 4 Replies
Jun 15, 2009
Our app allows admins to connect to a different database, which means we need to temporarily decrypt the app.config's connection strings, re-write them, then re-encrypt it. Here's my current 'simplified' code showing how we do all 3 tasks:
Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
Dim section As ConfigurationSection = config.GetSection("connectionStrings")
[Code]....
View 2 Replies
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
Jun 21, 2011
I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?
View 6 Replies
Jun 5, 2011
Make a program regarding on connecting vb.net user login program
View 1 Replies
Sep 3, 2009
I want to create an enterprise wide dataset so that my function will call this same dataset from any of the webpage. I've created shared code in the App_Code folder. In it, there's are dataset properties. Will the pages extract info from these dataset properties each time I call the shared program or will create new property for each page.I'm trying to emulate an Enterprise Java Bean type of coding.
View 2 Replies
Jan 12, 2012
This is a Visual Studio forum but can you help me regarding Visual Basic 6.0 Enterprise Edition? I cannot find the CRYSTL32.exe in Visual basic 6.0 Enterpise Edition installation cd. I already some articles and it says that i can find it through this path CommonToolsVBCrysReptCrystl32.exe I alre cd.I saw in my installation cd this path (when I open the cd) Common/Tools... and there is no VBCrysReptCrystl32.exe VBCrysRept so that i can run the Crystl32.exe? I'll be needing it for my programming project which has Official Receipt issuance and somebody told me that i can use crystal report for pie Chart. Is that true that I can use Crystal report for pie Chart? Please also help me to find tutorial regarding crystal report. I am using Visual basic 6.0.
View 1 Replies
Apr 8, 2012
include sql enterprise in setup project?how to include sql enterprise when it's not appear in prerequisites of the setup projectand if it's not possible do i have install the full enterprise edition on the client machine?i use visual studio 2010 and sql enterprise 2008.i'm a database beginner and i always used to use sql express edition but now data base getting grow fast and the limitations of the sql express for 4gb make
View 1 Replies
Jun 2, 2011
I am trying to connect to SQL SERVER 2008 from vb.net but failed with Error 40. If I try to connecton to serversqlexpress, error 26 is raised.
View 1 Replies
Aug 24, 2011
We are using VB.NET 2008. This program must run on a 32 bit operating system.
The machine where the program is running at is a 24 core machine which has 16 Gig of RAM.
It has a Win Server 2003, Enterprise Edition SP2, x86 based PC.
When the VB.NET program VM Size reaches about 1.3 Gig, it says "Exception of type 'System.OutOfMemoryException' was thrown."
When I go to Task Manager and check the Processes, "Mem Usage" for this program is about 300 Meg and "VM Size" is 1,341,300.
These are the information from Accessories - System Tools - System
Information:
Total Physical Memory is 16.37 Gb.
Available physical memory is 14.46 Gb.
Total virtual memory is 17.74 Gb.
Available virtual memory is 15.73 Gb.
Can my VB.NET 32 bit program access more than 1.3 Gig of VM in Win 2003 SP2 Enterprise edition ? How can it do that ?
According to [URL] the memory limit on this kind of machine with x86 is 64 Gig.
View 8 Replies
Jul 4, 2011
My sql statement adds details of a new employee returns a @employeeID. I need to retrieve this @employeeID to display the details of the newly added employee in my viewprofile.asp.vb. How do i go about coding the VB to retrieve the @employeeID from the SQL and include the @employeeID variable in my VB code so that it displays my newly added information?
View 3 Replies
Aug 23, 2010
What is the difference between professional vs enterprise edition of visual studio.
View 2 Replies
Jan 8, 2011
I have recently installed SQL SERVER 2008 Express edition for learning purpose. but I am unable to find SQL Enterprise Manager in the START Menu. It wont come with Express Edition?then, how can i create/manage databases. I am a starter in .Net. Anybody please help me.for your info, i have installed SQLEXPRADV_x86_ENU.exe - sql express with advanced services?
View 2 Replies
Oct 19, 2009
Whenever the code invokes the open dialogue box statement of the VB6.0 code, the application gets terminated.It is expected to open the dialogue box to provide the file path. I'm also having MS Office 2007 enterprise edition. If I do not have MS office 2007 enterprise edition installed, then it is working fine without any problem. So any suggestion/remarks to work on MS office 2007 enterprise edition?
View 1 Replies
Feb 18, 2010
I am having trouble while installing Visual Basic 6.0 . Setup gives message
View 5 Replies
Apr 3, 2012
I have to insert/update shipper information and I wrote a stored procedure like this:
IF EXISTS (SELECT * FROM sysobjects WHERE name='usp_Nucleus_LSS_AddShipperInfo' AND type='P')
DROP PROCEDURE usp_Nucleus_LSS_AddShipperInfo
GO
CREATE PROCEDURE dbo.usp_Nucleus_LSS_AddShipperInfo
[code]....
I am using VB.Net 2.0 and SQL Server Enterprise edition.
View 1 Replies
Jul 19, 2010
I'm getting desperate here trying to find the problem, and I don't know where to start looking for it.
Here are the symptoms:I've noticed, that when a user logs on in the morning, he is then immediately logged off, then when he logs on again, everything is fine and he can work on the site.
Every once in a while, when the user clicks a link, the page takes a lot of time to load, but it never actually loads, and the user is thrown to the login page.Also, after an Exception has occurred in the website, the user is then thrown to the login page. It's as if the exception clears somehow the session.
[Code]...
View 5 Replies
Apr 20, 2012
I have inherited a ASP.net site, and I've made some changes too to some of the VB code and CSS, and have hosted it on a FTP. It uses an SQL DB to allow users to log in and calls stored procedures.The site complies with no errors, and allows me to log in as a user, and can works perfectly on testing.However, once uploaded to the FTP, it no longer allows me to log in as a user. It hangs for a while, and then returns a message saying that the password is wrong, despite it being correct. It doesn't throw an error message, and I think I've narrowed it down to something to do with the Web.config file, but I'm at a loss as how it's not working, especially with the lack of error messages being thrown.[code]
View 2 Replies
Mar 26, 2009
I was wondering is there a way anyone knows of to "inject" a logger into an application such that it passively monitors the thread and quietly logs processes as they occur without having to do things like: [Code] It would then monitor everything that goes on inside of that method including passed in arguments along with method calls and values passed into those methods, exceptions that occur etc. Has anyone implemented something like this in the past? Could it even be implemented? Is logging in this fashion just a pipe dream?
View 6 Replies
May 23, 2012
I have a class for serial communications (call it CSerial), based on a property value (CSerial.LogLevel), I'd like to produce various levels of logging information about data sent and received to the serial port.Given that it's a reusable class, there's no way of telling whether the log data should be sent to the console, a text box, a file, etc. This would be determined by the application using the class, so I can't write all of the different output options into a method in the class.Question:What's the best way to implement this? I have some ideas:1. Create a Log method and then "override" it in my main application to handle the most suitable form of output? Can I "override" a method as part of an instance? Or do I need to create a new class that inherits my original one, override the method there and then create an instance of my new class?
View 3 Replies
Mar 22, 2011
can any one see any thing wrong with my code. I swear it did work once or twice. * code now removed as updated below
View 2 Replies