Rajeev2006's Q&A profile
Visual Studio Team System Custom FxCop rule for detecting empty catch blocks?
Hi, I'm looking for a custom rule that checks if there are empty catch blocks in a method. If you know of something like this that already exists, that would be great. If you have pointers on how to implement such a rule, that would be great too. Thanx, -KC This code might help you. This has been written in FxCop1.30 public override Problem[] Check (Method method ) { bool isCatchExists = false; bool isThrowExists = false; //Get all the instrections of the method. InstructionList iList = method.Instructions ; for(int i=0;i<iList.Length;i++) { if(iList .OpCode == OpCode._Catch ) { ...Show All
Visual Studio mshelp:link does not work
Hi, Recently I run XP Repair Pro 2006, the program that cleans up the registry. After that many features stopped working and MSDN is one of them. Now tags starting from <mshelp don’t work. For example all link that were created like <mshelp:link don’t work. They are displayed as links but when you click on them nothing happens. However there are no errors displayed. I looked for a solution on different forums, followed many suggestions but nothing helped. I tried to uninstall and install again MSDN and VS 2005, use IEFix, run ie.inf, install SP2 again (I have Windows XP SP2). I found similar descriptions concerning to VS ...Show All
SQL Server Cannot access ReportManager: HTTP Error 403 Forbidden.
Basic info: Win2k3 server, SQLServer 2000, SSRS 2000, report created with VS 2003. I'm trying to set up a secure SSRS server that will require two-way certificate authentication where the client cert is mapped to a windows login. I'm no security expert but I've configured IIS and the CA as best I can figure. In IIS I've set the Reports/ReportServer Directory Security tab as follows. On the "Authentication and Access Control" tab I've disabled anonymous access and set it to use Integrated Windows Authentication. I've set the up the machine as a stand-alone root CA and I've (I think) successfully installed the server certificate u ...Show All
Visual C++ Vector data corrputed
And here i am... again -_-, hope its ok with you, because this is the only forum i can find with a quick and good answer. Here is the situation: inside a thread i'm creating a vector<myclass>. myclass is contains some members and functions, non of them are really important. the vector can get a size over 2000, but here is the hitch. for some or other reason, i'm using a loop witch reads every single member of the vector, and manipulates the data. But at some unpredictable moment, the program just crashes. even my exception handler cant catch the error. when the debugger kicks in, i see that he tried to acces a member of the vector. ...Show All
SQL Server Attach mdf to remote server
Hi I'm trying to attach a local mdf file to a remote Sql Server 2005 using Sql Server Management Studio. When I click add I can only browse what seems to be drive c of the server. How can I attach a mdf file from my local machine to a remote server Thanks! Rudi ...Show All
Visual Basic Error message ''Library not registered'' when using Masked Edit control (I m using VB2003 with Windows2003)
Hi dear, I m using VB2003 and windows 2003. I add reference to the Masked Edit control through the menu: Projetc --> Add reference --> COM. But when I try to drag the control from my Windows Form Toolbox to the target form, I get the error message: ''Library not registered'' . I did teh ''regsvr32 C:\windows\system32\msmask32.ocx'', but It didn t work Please if you could assist, I appreciate your help, Happy new year. Hi In the past i have the same problem. i found that some ocx wasnt install correctly. Try it (works for me) Install your VB in a directory like (c:\vb_xyz) after that it will regi ...Show All
Visual Studio “Error reading from file” when try to access VSS
Hi Alin, I might need your help. I’m having a problem regarding the Visual SourceSafe. Before this it works perfectly. The problem arises when one of the developers claiming that they can’t access the VSS (previously was OK). It says “Error reading from file” . Before this, usually if there’s an error regarding VSS it must be the pointing from client to the srcsafe.ini file at server is not correct. To solve this, just create a new path and point it to the file. I already done this but the error still occur. For you information, I already restarted the server machine ...Show All
Visual Studio Express Editions Old components from betas not removed.
I have run both auto and manual uninstall of Express betas but get "SQL Server2005 has detected incompatible compnents from beta versions of Visual Studio, .net framework or SQL Server 2005. Use Add or Remove programmes to remove these compnents and then run SQL Server 2005 setup again. For detailed instructions on uninstalling SQL Server 2005, See SQL Server 2005 REadme." when I try to install SLServer 2005 Express . No components are listed in the Add/Remove Programmes. C# Express and Web Developer Express has installed OK Any ideas That's what is failing !! The uninstall tool says that I do not have p ...Show All
Visual Studio Express Editions Debug problem - Source code/original difference...
Any change to my source results in the following (abbreviated) message in debug mode at the breakpoints when moused over: "The breakpoint will not be hit. Source code is different from the original version. To allow breakpoint to be hit when sourcecode is different right click, choose 'Location' and turn on 'Allow.....'. To allow for all BP's disable the option 'Require source to exactly match...' under Tools>Options>Debugging>General" What causes this phenom I have none of the suggested options in the menu system or context menus Using Beta 2 - clean install, new machine, using old code written in Beta 1/old machine For anyon ...Show All
Visual Studio Team System Error during creation new project in Team Explorer
When I try to create new project in Team Explorer, I receive error: Project creation failed with error: "Initialization failed for plugin(s):'Microsoft.Pcw.wss','Microsoft.Pcw.currituck'" with following log: 08/08/2005 11:50:53.648 | Module: ELeadServiceMediator | URL for eLead web service retrieved as " http://as-cmp-1:8080/bisserver/EleadWebService.asmx " from the registration service | Completion time: 0.0300432 seconds 08/08/2005 11:50:56.052 | Module: ELeadServiceMediator | eLead web service proxy constructed | Completion time: 2.403456 seconds 08/08/2005 11:51:02.902 | Module: ELeadServiceMediator | Template Information for domain "as- ...Show All
Visual C# how an app talk to service
I need to create a service for my app, but how my app can talk to service so that my service can do some function according to what my app asked. any ideas I prefer a TcpChannel either because you are able to "talk" with the service from a remote location. Using text files for communication is not that good. You will run into problems when you use several threads within your application. ...Show All
Windows Forms Binding of dynamically created controls
hi, i have a form which creates in the loop i am creating them nicely here is my code for that Sub createcontrols() Dim i As Integer = 1 Dim j As Integer = 1 Dim k As Integer = 64 For i = 1 To Me.txtloop.Text ...Show All
SQL Server SQL server 2005 express connection fail. Please help me
Hi all, When i attempted to connected to Microsoft SQL Server 2005 Express via ASP.NET 2.0 application, it seems to throw the following error. I had set up the Protocols for Express (TCP/IP and Named Pipes are both enabled) to allow remote connections using both TCP/IP and named pipes. Login failed for user ''. The user is not associated with a trusted SQL Server connection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Log ...Show All
Windows Forms This is just as simple as crazy!
Hi guys I have some data (capturing them from another application) and just want to show these data in a SIMPLE TABLE inside my Win Form. Yes that’s it, without any database or BLA BLA BLA. When I got a piece on data, I just want to know how to put it in the right please ROW, CLOUMN in my simple table inside my table (and build  ...Show All
Visual Studio Team System Deployment items in runconfig file
Hi Is there any way I can dynamically alter the associated deployment files with my test project so that in the case of a 'debug' build, I can copy files from a debug folder and on a release build, deploy files from a release folder Thanks Great!....I've opted for the post-build step idea. Works a treat. Thanks ...Show All
