John.NET's Q&A profile
Visual Basic FileLogTraceListener not writing to file beyond a constant max-size
Hi Friends, I've been using FileLogTraceListener class to write log data to files. Since the data being written is continuously generated, I set the file to be created on a daily basis. I do not set up the maximum size for the log file. The problem is - My log files do not seem to grow beyond a fixed size (4833 K). All messages are written to log file till the file grows to this size and then no logs are appended. Here are my settings - faultLoglistener = new FileLogTraceListener(); faultLoglistener.Location = LogFileLocation.Custom; faultLoglistener.CustomLocation = "C:\\"; faultLoglistener.BaseFileName = "FaultLog"; faultLoglistener.LogFileCreationSchedule = LogFileCreationScheduleOption.Daily; faultLoglisten ...Show All
Visual Studio Express Editions serial portability question
I am writing a tool for use within my company. The tool interacts with a device over the serial port. The tool runs just fine on 5 computers, but has troubles on the 6th. It appears as if the bytes I send to the serial port never get sent out. Portmon shows them as getting written, but I don't know for sure. This is the constructor I use to open the serial port: Project::SerialInterface::SerialInterface( String^ SComIn, String^ SBaudIn ) { this->components = (gcnew System::ComponentModel::Container()); this->serialPort1 = (gcnew System::IO::Ports::SerialPort(this->components)); this->serialPort1->BaudRate = Convert::ToInt32( SBaudIn ); this->serialPort1->PortName = SComIn; //open the correct com port this-> ...Show All
Visual C# Quick question - typedef in C#
Hi! I'd like to define my own type in C#. Is there any command similar to C++ typedef it's explained here, with examples: http://msdn2.microsoft.com/en-us/library/sf0df423.aspx ...Show All
Visual Studio Team System Can't install CTP6 "requires one of those editions of Visual Studio 2005 be installed before you "
Hi, I'm trying to install the CTP6 in my machine to start working, but I have the following error during the installation of CTP6 Required: Visual Studio 2005 Visual Studio 2005 Team Edition for Database Professionals requires Visual Studio 2005 Professional Edition, Visual Studio 2005 Team Edition for Developers, Visual Studio 2005 Team Edition for Testers, Visual Studio 2005 Team Edition for Architects, or Visual Studio 2005 Team Suite. Visual Studio 2005 Team Edition for Database Professionals requires one of those editions of Visual Studio 2005 be installed before you install Visual Studio 2005 Team Edition for Database Professionals. I already have installed VS2005, and I'm running Windows Vista RC1, an ...Show All
.NET Development So Many ADO Data Providers Which Should I Use?
I am coming from VB6. I looked up NET database examples for MS Access and find there are several ways to do the same thing. I saw one example use a OleDb provider, one used a ADO provider, and one used a SqlClient. My quesiton is- what should i be learning Which should i use What do most programmers use My program philosophy is KISS. I think OleDb provides generic access But i am not sure. Some advice from experienced programmers would be helpful. MSAccess/Excel generally use OleDb (System.Data.OleDb), Sql using the Sql classes (System.Data.SqlClient) but can also use the OleDb providers. really depends what you want to do. OleDb would be a good starting point in my opinion ...Show All
Windows Forms problem woth hard disk
i am facing a strange problem that my hard disk spece is automatically decreasing plese tell me what should i do. I am sorry to tell you but this is the incorrect forum for this topic. I will have to redirect you here: www.microsoft.com. But I suggest scanning your computer for viruses and spyware. ...Show All
SQL Server DatabaseLog table
AdventureWorks database has tables: DatabaseLog, ErrorLog. I figured there should be a system stored procedure that creates such tables for your database. So far I could not find what it is. I would appreciate a pointer. Thanks. hi, Jens is right about the "general logging" purpose... if you like you can script those objects out... try having a look at my amScript free project, that can script out even the database trigger so that you can inspect the relative DDL code.. regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WOW's BLP loading problem
I am trying to load blp file of world of warcraft. I do it in the following steps: 1:read in the header from blp file 2:read in the data from blp file according to the header 3:create texture according to the blp_header info 4:lock the texture--copy data into it--unlock. It works but I wonder if I am doing the effecient way I wonder if D3DXCreateTextureFromFile work the same way: load data-->create texture-->copy data. thx in advanced. If the raw texture data are saved in the same format that the texture requires you may be able to load it directly to the locked texture. This will save you the copy. But you need to be careful about the stride. If you can’t load it as one large block multiple calls to the load function co ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get the "Failed to generate user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I read the thread which dealt with this error, and changed the connection string for the database file that had worked before to User Instance ...Show All
SQL Server Convert Date
Hi ! I think I need your help... to convert the date (2006-09-09) to weekday, weeknumber, month number, month, year in OLE DB source editor ... created following sql, which is not working. How about using derived Column transformation editor SELECT DATENAME (WEEKDAY, YYYYMMDD) AS weekday, DATEPART(WEEK,YYYYMMDD) AS weeknumber, MONTH(YYYYMMDD) AS month_number, DATENAME(MM,YYYYMMDD)AS Month, YEAR(YYYYMMDD) AS year, DAY(YYYYMMDD) AS date FROM Purchase thank you so much... curiousss wrote: Hi ! I think I need your help... to convert the date (2006-09-09) to weekday, weeknumber, month number, month, year in OLE DB source editor ... created following sql, which is not working. How about using derived Column transformation editor ...Show All
SQL Server Initializing a Merge Subscription Without a Snapshot - doesn't operate correctly
Hi! I do the backup from the publisher, next I restore it at the subscriber using *pure* database. next I attempt to create subscription using this db. of course, I use SubscriptionSyncType .None for SyncType propery of the subscription. But, 1. nevertheless the merge agent downloads whole snapshot! both data (bcp files) and the schema. 2. I get the *strange* error. below thelines from the log: Applying the snapshot to the Subscriber A dynamic snapshot will be applied from 'C:\DOCUME~1\...\LOCALS~1\Temp\DB$MAIN_DB1_Main_testReplFromBackup\' Preparing table '__UserSyncOptions' for merge replication Applied script '__UserSyncOptions_2.cft' {call sp_MSsetconflicttable (N'__UserSyncOptions', N'MSmerge_con ...Show All
Visual Studio Breakpoint will not currently be hit. No symbols loaded for this document.
I have been 'developing' with Visual Studio 2005 for about 3 weeks now - primarily .NET class libraries developed with VB. I am coming from VB6, although I did a lot of development with Visual C++ several years ago, so I am still trying to come to terms with the debugger. I have read many threads posted by people who are having a problem with breakpoints, specifically with the message in the subject line above. There have been many suggestions on how to fix this problem. Sometimes these suggestions work, sometimes they do not. Most of the suggestions involve deleting DLL and PDB files and rebuilding, or restarting Visual Studio. None of them suggest any problem with something the developer has done or any problem with the configuration of ...Show All
SQL Server Cube won't process in SSIS, but will process thru Mgmt Studio?
Hello, SSAS newbie here. I have an AS database called "AS_Sales" with numerous cubes, including one called "CP Sales". It has one measure group (also called "CP Sales") that is partitioned by fiscal quarter. I can right-click the cube in management studio and hit "Process" and it indicates that everything completes successfully. However, I set up an Analysis Services task in SSIS to do the same thing, and I receive errors. SSIS package consists of two AS tasks -- Refresh Dimensions & Reprocess Cube. The task fails during the dimension reprocessing, with the following error messages: Information: 0x40016041 at AS_Sales_Cubes_Refresh: The package is attempting to configure from the ...Show All
Software Development for Windows Vista Ipaq probles at work
Hello People I got a question Im a ICT Controller @ Novonordisk my question is Recently we started using Windows XP (updated a image from windows 2000) now we got a problem and alot of laptops (IBM t43) we are getting a error conserning, You Dont have Enough administration Rights 2 use this device Ill explaine it When putting in the Ipaq (hp HX2190b) if gives the error i just said /\ the problem is alot of people are using the ipaq 2 active syng there outlook and contacts so i though hey it could be that the ipaq isnt very good whit windows XP recently i was installing The file manager for Ericson Mobile Phone and when connecting it 2 the laptop, its been giving the same problem Now what i wanna know is, Is there any1 that has this probl ...Show All
Visual Studio 2008 (Pre-release) JulyCTP - Custom Service Host Factory - Service Util - Exception
I came across an interesting exception. First, what we are trying to do: We have our own implementation of service host factory. In the overriden CreateServiceHost method, we read configuration files from a different location and configure the ServiceHost programmatically using objects in System.ServiceModel.Configuration. I wrote a system test (using VSTS), that simply calls the our implementation of service host factory (just like IIS does). After a call to CreateServiceHost method, I open the host (and let VS.NET run after freezing the test thread) and tried to navgiate to an end point using the browser. The page comes up fine with usual proxy code example etc. I then tried using the SvcUtil.exe with same url that I used in the browse ...Show All
