AlGu's Q&A profile
Visual Basic EventLog Frustrations [vs2003]
I am attempting to have one of my applications write to a custom log, rather than the application log. I can write to a custom log no problem, if the source name has never been used before. I have setup the following code to recreate my problem. Any help would be great, as I thought I was making a two minute change, and eight hours later, I'm crazy! Private Sub btnCreateMessage_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles btnCreateMessage.Click 'This call works WriteEntry("Test App", "Application") 'This call will result in the following message in the Application Log: 'The description for Event ID ( 0 ) in Source ( FileComposer ) cannot be found. ...Show All
.NET Development loading two assemblies with different versions on one app domain.
Hi. I have a scenario where I can load different versions of an assembly into the app.domain. Every assembly is strong-named and differs on their versions. So, I call Assembly.LoadFrom(fileName) to load them. Everything works fine... I check the AppDomain.CurrentDomain.GetAssemblies() and I have my assemblies loaded, like: test1, Version=1.0.0.0 , Culture=neutral, PublicKeyToken=3b5d690f46ae7c70 test1, Version=2.0.0.0 , Culture=neutral, PublicKeyToken=cc2f34cb47a26088 When I work with the assembly that it's loaded the first (version 1.0.0.0), I can create an instance of it and use it, but when I call System.Reflection.Assembly.Load("test1, Version=2.0.0.0 , Culture=neutral, PublicKeyToken=cc2f34cb47a26088") I get the fo ...Show All
Visual Studio Express Editions Access DAL Error
i have table calldetail with filed recalltime in datetime type, when i build DAL agaist calldetail table, then i write CalldetailBLL access calldetailDAL, in C# ASP page i write code access that field recalltime, it rase error: DAL code: public System. DateTime RecallTime { get { try { return ((System. DateTime )( this [ this .tableCS_CallDetail.RecallTimeColumn])); } catch (System. InvalidCastException e) { throw new System.Data.StrongTypingException( "The value for column \'RecallTime\' in table \'CS_CallDetail\' is DBNull." , e); } } set { this [ this .tableCS_CallDetail.RecallTimeColumn] = value ; } } So when RecallTime have Null value (RecallT ...Show All
Community Chat Generic Lists & the System.Predicate Delegate.
I may be missing something here, however I am baffled at the signature of the predicate delegate as defined for the Find methods of the generic List in 2.0. Could somebody please enlighten me as to the lack of an additional parameter with which to pass in search criteria I would have at least expected this to be overloaded with the option for something like the following: System.Predicate(Of T)(obj As T, match As Object) As Boolean This would make more sense to me. For my own purposes I have felt the need to pre-load any search criteria for my List searches into a higher-scope variable prior to hitting Find with the restrictive signature. Thanks in advance for helping to clear this up for me. Regards, David Kennedy ...Show All
Visual Studio Team System Change Sets for a Work Item
Is there a way through the VSTS UI when you drill into a specific work item to see the changes sets that it was associated with -Larry If a work item is associated with a changeset, Changeset will be added as a link to Work Item. Open the specific Work item in VS Select "Links" tab Select the changeset and you can open it to see more details Hope this helps, ...Show All
Visual Studio Team System Support for MSSQL 2000?
I guess this has been answered a few times. The product pages don' t seem to say much! But is MSSQL 2000 supported with this Well, a short answer is yessss. But you could have a look at the readme point " 2.2.1. Supported versions of SQL Server" Heres the link... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=650325&SiteID=1 cheers, Stefan ...Show All
Visual Studio 2008 (Pre-release) => operator in C# 3.0
Im doing the Hands On Lab for DLing and I see the => operator in code: foreach ( var c in db.Customers.Where(cust => cust.CustomerID.Contains( "CA" ))) { Console .WriteLine ( "{0}, {1}, {2}" , c.CustomerID, c.CompanyName, c.Orders.Count); } How do I read that and what does in mean Paul V. Sullivan Typically when presenting the Lambda expressions, I like to explain the expression "c => c + 1" using the following translation: "Given a variable called c, add 1 to the value". I'm still waiting for VB to come out with a good english like variant for lambda expressions (subtle hint). Jim Wooley http://devauthority.com/blogs/jwooley ...Show All
SQL Server SSIS + SSAS => Fairly consistent hanging?
I have an SSIS package that reprocesses part of my cube. I've tested that it works, and deployed it as a SQL Job to run regularly. Strangely, it seems that the SSAS server hangs fairly regularly and when the SSIS job starts to run, it'll be stuck for hours. Is this expected Should I be bumping our SSAS service nightly Are there tools available to monitor SSAS service health Sure, go ahead and contact product support services, guys there should be able to help to trouble shoot the issue. Hangs (or persived hangs) really hard to troubleshoot. There could be multiple things going on. For one, try suggestions Wayne had in his article. Quite a few customers run into this problem and were able to solve ...Show All
SQL Server Multiple Client on the same ReportServer
Hi ! Once again i have a question . We have a Web application and lately we have install ReportBuilder to allow some of our Clients to create their own reports. I was wondering how to "hide" reports made by a Client from another client For exemple if a Client 'A' create a report and save it on his folder. When the client 'B' open reportBuilder and select the option OPEN, currently the Client 'B' can see the folder of the Client 'A'. So the Client 'B' could modify a report that belong to another client. I was looking in the Report Manager but i couldn't find how to 'hide' a folder from user using the security option. Maybe we haven't configuer ReportServer propely. How can we solve this problem Is there a good website that expl ...Show All
Visual C++ length limit in include file search path?
Hi, It seems that when I have too many directories in my include file search path, the compiler starts giving error about some headers not being found. By taking some of the unused directories out of the search path, these headers are found again. Has anybody experienced a similar problem I'm using Visual C++ .NET 2003 (without SP1). Thanks! Stephane Hello Re: length limit in include file search path Such questions (on VC++ 2003) are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use an appropriate newsgroup, potentially one at h ...Show All
Visual Studio Team System TF30059: Fatal error while initializing web service
Hello, I hope someone can help me here. I have a VSTS subscription, but since I'm trying to install and evaluate the Trial version of TFS, Microsoft won't provide telephone support. I have installed TFS Trial on a virgin Win2K3 R2 server (single server install). There were no issues during the installation. The network is using ISA 2004 firewall. The TFS is inside of our firewall. Our client machines are outside of the firewall. I can connect to the TFS from VSTS but cannot create a project, either when I Remote Desktop into the server, or from the client machines. All required ports for TFS are open. I have searched, high and low, on the various error codes and messages, but none of the solutions have worked. 1. When connectin ...Show All
SQL Server Multiple Matrix Headers
Hi All, I have a project that deals with matrix or crosstab. I created an SP that looks like this in the RDL. Month | Quarter Channel | Revenue | Target_Revenue | Previous_Revenue | Revenue | Target_Revenue | Previous_Revenue Channel2 | 100000 | 150000 | 1250000 | 100000 | 150000 | 12500000 ...Show All
SQL Server SSIS Hung or Exited after a long foreach loop
I am having some problem in running SSIS scheduled job. The job is processing (updating and inserting) batches of data using Execute SQL Task inside Foreach loop container. But to make sure the batch complete successfully I put the "Begin Tran" Execute SQL Task and "Commit Tran" Execute SQL Task before and after the foreach loop My workflow is like the following.... - Execute SQL Task "Begin Tran" - ForEach Loop Container for a batch of records. - Insert the records into the database - End ForEach Loop -Execute SQL Task "Commit Tran" if the above ForEach Loop complete successfully -Execute SQL Task "Rollback Tran" if the ForEach Loop failed Normally the insert records are around 10~200 ...Show All
Software Development for Windows Vista Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)
I installed Daemon Tools on Windows Vista Business. The result was that my CDrom went dead. System Restore hasn't helped. Then CDrom properties reveals this: "Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)" If you update driver, you get " Windows has determined that the driver software is up to date" Hi Bruce Is there any risk in trying to remove upper/lower filters If so, what should I do to minimise these risk. I am not too confident trying this, and am worried that my system may not work properly afterwards if something goes wrong. Any guidance would be highly appreciated. If it helps i have a compaq presario ...Show All
Windows Forms Needed: tutorial with VS2005/MSBuild, Dotfuscator CE and satellite assemblies
ClickOnce has great potential, but it turns out to be poorly documented when like me... - you want to obfuscate your application (a sensible requirement for a commercial application), for instance with Dotfuscator CE - you want to localize your application (again, a sensible requirement) - you prefer VS2005 settings and MSBuild over Mage command lines (a sensible requirement if MSBuild is to become our unique build tool) What would be great is a good step-by-step tutorial. Am I getting too old Thanks Robert. Your links will certainly help. I'm currently able to obfuscate my application and publish it with ClickOnce through Visual Studio, thanks to a bit of MSBuild code injected in the proje ...Show All
