qadirsyed's Q&A profile
.NET Development Microsoft .NET Framework window at closure of Outlook 2002 or during opening
Hi, I have very often when I shutdown Outlook 2002 the following message: Microsoft .NET Framework window An unhandled exception has occured in a component in your application. Click continue and application will ignore this error and attempt to continue. External component has thrown an exception then if I click details there is a long list of items. It also happen from time to time during opening of Outlook and freeze the software. I have to use cntl+alt+delete to shutdown Outlook. Anyone can help on this matte` Thanks Ray ...Show All
.NET Development Using .config file
Hi there, I have a standard c# class project (ie it's not a win forms project) which includes an application.config file. I have code which seeks to read some configurations from the file using the standard code - ConfigurationSettings.AppSettings["KEY_NAME"]. However, the code doesn't return a value. But the same code seems to work when I'm using it within a winforms project. Surely I'm missing something simple here PS My code is using the System.Configuration namespace - using System.Configuration; Cheers. :) I just wanted to say that different classes should use different keys. For example by including the class name in the key. Class A would have A_setting and class B ...Show All
SQL Server Convert columnar data into rows
I have a table of data that needs to be converted to rows but with a way to identify for each row the column the row value came from. Here's an example table: Employee FED MEDI SOCSEC 123 $100 $25 $70 234 $242 $54 $90 345 $75 $10 $55 Here's the format the data needs to be in after it's converted. Employee CodeType Code Amount 123 T FED $ 100 123 T MEDI $ 25 123 T SOCSEC $ 70 234 T FED $ 242 234 T MEDI $ 54 234 T SOCSEC $ 90 3 ...Show All
SQL Server Accessing an SSRS report from the web, being prompted for Guest signon screen
I have a sql server 2005 application that uses asp and some canned reports that I built using SSRS. All reports run from the server but not when to try accessing from another computer on the network. I get a prompt from windows that requests me to enter a password for the Gurest account. The Guest account is not selectable. Does anyone know how to supress the signon page I am using sql 2005 workgroup edition. I would like the users to go directly to the ssrs report without any logon screen. Thanks Rich I figured it out, I turned simple file sharing off in explorer. Thanks everyone for all there help.... ...Show All
SQL Server Live communication Address book service
Hi, when I try to activate my address book, i get the error "There is no pool available for this operation. Exit the wizard. (Error Code: 0xc3EC78D9)". I have verified my mmc shows that LCS is at SP1, it is activated, and functioning properly (users able to interact via OC2005). It is locally installed on the standard edition server. As per the Technet reference : Possible causes include: ? The Live Communications Server service is not running on the pool or server. ? No servers or pools in your topology have been upgraded to Service Pack 1. ? The Standard Edition Server is not activated, or none of the Enterprise Edition Servers within a po ...Show All
Windows Forms Opening a Form
Hi, i'm using VS 2005... I can open a form from an existing one using this code: Dim myForm As frmForm2 Private Sub btnOpen_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click myForm = New frmForm2 myForm.Show() End Sub Now, i don't know how to do this: if i click on btnOpen and frmForm2 is already running bring that to the front instead of creating a new instance. I kwon about .BringToFront, but i don't know how to validate that an instance is really opened. Private Sub Button1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Button1 . Click Dim FormOpen As Boolean = F ...Show All
Visual Basic i need help! please someone help!!
hey guys, i'm doing a project that requires me to build an application with a database. i need to gather information from the database to use with the applicaiton. for eg.. a login page. and the application will look for the appropriate userId and passWord from the database. can someone give me some starters as to how to do it. it has been a frustrating 2 weeks trying to do sumthing. i've tried table adapters, functions and everything but i just can't get it to work. THANK YOU VERY VERY MUCH!! mel well, Dim cnn As SqlClient.SqlConnection = New SqlClient.SqlConnection() cnn.ConnectionString = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\winApp\winApp\winAppDB.m ...Show All
Visual Studio Express Editions how update SQL database in VB
when i m trying to insert duplicate entry in database , an exception comes out and to resolve this i have written code for update existing one. but it doesn't update existing record. and also please tell me how i can found specific record in Database. here is my code: Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim tfp As FileIO.TextFieldParser = My.Computer.FileSystem.OpenTextFieldParser("MyTextFile.txt") tfp.Delimiters = New String() {"!"} tfp.HasFieldsEnclosedInQuotes = False While Not tfp.EndOfData Dim Fields() As String = tfp.ReadFields InsertSQL(Fields) End While End Sub Private S ...Show All
Visual Studio Express Editions How can I show part of a picture(*.bmp) in a PictureBox?
Hi, I have a BMP file that I scanned and now I want to show only part of this picture(file) in a picturebox. how can I do this Regards, yaniv pinhas thank you for your quick answer.. it's work fine, but I want to stretche the part of the picture that I want to show in the picturebox. I tried to define the picturebox as strtcheimage but it doesn't work. Best Regards, Yaniv Pinhas ...Show All
SQL Server What is the best most efficient performant way to do a Control break in SSIS?
I have an EDI file with Different Transaction types. I would like to read for a Header, capture some specific info on the header, and read for another specific tran type that comes after and capture additional info. I have a couple of ideas like tagging the records with a key and loading into two temp tables for matching later but that means I would have to do double processing. Maybe a conditional split for the two transaction types and then unioning them downstream, but not sure if the right records would be associated. Possibly tagging sequential key and writng to raw files and matching on the raw file keys downstream. I have a lot of ideas but I am looking for the best proven practice here so i don't spin my wheels or have to g ...Show All
Visual C++ Specifying DLL Location
I've a C++/CLI console application which utilizes a custom-written DLL. How do I specify the location of the DLL when I startup the application I would like to have the DLL stored somewhere other than the current directory of the application. I think that a setup program willl take care of that. I am not sure but you probably need to create a setup program anyway. Visual Studio: Deploying Applications and Components .NET Framework Developer's Guide: Deploying .NET Framework Applications Visual C++: Deployment (C++) ...Show All
SQL Server Dynamic Security Stored Procedure Repeatedly Called
I have implemented an SSAS stored procedure for dynamic security and I call this stored procedure to obtain the allowed set filter. To my supprise, the stored procedure is being called repeatedly many times (more than 10) upon establishing the user session. Why is this happening To make the things simpler, let's assume that that in both cases the security policy will be materialized into the same table (dimension surrogate key, employee surrogate key). In the case of dynamic security, the stored procedure will query this table by user and apply the allowed set but the allowed set will not exceed the maximum number of members that the user can access. In the case of the security measure group, EXISTS can b ...Show All
SQL Server upgrading from 2000 to 2005.big issues
I am trying to upgrade from analysis serivces 2000 to analysis services 2005. When i try to select the instance name, which is "Analysis Services" , i am told i cannot use this name. I have looked this up on the web and found that indeed the name cannot be "Analysis Services" or any keyword. how do i find out the instance id/name of my current installation I only had the default installation of analysis services on the server, and i installed sql server 2005, but my cubes are no longer accessable. all that is in the analysis serivces menu on the start menu is "deployment wizard", and i cant find any cube files to deploy. have i lost my cubes i have a backup of my cubes as cab files. can these be used teh depl ...Show All
SQL Server Simple Calendar Parameter question
This is probably pretty simple, but i've never done it before. Im trying to put a Calendar up for the parameter, So they can click a date on the calendar, and get it quiered. Is this done in the dataset or in the report Parameters and what do i need to do I keep getting the same error. I tried 1/1/2000 and then 01/01/2001. And i got the error both times. Do you think it might have to do with the fact that some of my dates are listed as 1999 or by quarter. but when you drill down, its listed as Jan 1, 1999 and so on. ...Show All
Visual Studio 2008 (Pre-release) What's the replacement for GetTable() in DataContext?
A question regarding LINQ to SQL in the January Orcas CTP. DataContext.GetTable is now internal - what method should we use instead For now I'm calling GetTable via reflection which works fine but is a bit messy. I notice a number of LINQ to SQL bugs have been fixed which is great. Thanks Joe There are two public GetTable methods in DataContext class as follows. public Table <TEntity> GetTable<TEntity>() public ITable GetTable( Type type) For example, if dc is the data context and Customer is an entity class for a table in the data context. You can get the table object as follows. System.Data.Linq.Table< Customer > customerTable = dc .GetTable< Customer >(); ...Show All
