Robert Kozak's Q&A profile
.NET Development Problem uninstalling DLL from GAC
I have created a DLL that is to be shared between an ASP.NET 2.0 web application (hosted in IIS 6.0) and several SQL Reporting Services 2005 reports running on the same web server. I strongly named my DLL, installed it in the GAC, and the web app and reports were able to utilize the DLL. The problem arose when I found a bug in my DLL, rebuilt it using the same strong name, and attempted to install it in the GAC over the top of the old version (I didn't want to create 2 side by side versions of the DLL, since the second version was really just a hot fix for the original version). Anyway, after successfully installing the new DLL to the gac (successful meaning I didn't receive any warnings or error messages), my web app and reports appea ...Show All
.NET Development Generating additional [field | property] at runtime
I have a need to track objects at runtime that don't have a uniqueness to them. I guess to describe my ideal situation would be to somehow mark objects in memory with some additional unique identifier that I could then use to track these objects. My overall goal is to build an object that can watch and manage other objects, and should those objects change their public properties, my object will still know them. I've poked around Reflection.Emit and I'm not sure if that's going to do what I need. I also wonder if I can attach something to an object at runtime, if when calling the object normally or with boxing/unboxing if I will lose the additional data. Thanks, Ryan Generic solution: add a s ...Show All
SharePoint Products and Technologies How to set the number of display rows to unlimited?
The MOSS 2007 Excel services' report only display ~70 rows at a time. Is there any way to display all rows at once (about 120 rows) Regards, Can anyone give me more detailed explanation how to set up this in SharePoint Thanks. Aleksandra ...Show All
.NET Development Update Issue
I'm updating my data table this way: DataRow row1 = this . Ds . Tables [ "Group" ]. NewRow (); row1 [ "Name" ] = this . txtNewGroup . Text ; this . Ds . Tables [ "Group" ]. Rows . Add ( row1 ); this . AdGroup . Update ( this . Ds . Tables [ "Group" ]. Select ( "" , "" , DataViewRowState . Added )); But later when I access the added group in the dataset, the Id column(which is auto-increment) returns DBNull value. To solve this, I refill my dataset again which needs new connection to be established with sql server and it affects my application performance. Is there a way to force the adapter to update the table with the new Id TIA ...Show All
SQL Server Deploying packages with SQL Server based configuration
Hello, We have been conducting some testing regarding package deployment and SQL Server based configuration. It seems there is a problem that was documented in an MS Feedback entry ( https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=126797 ) I searched for a viable answer, work-around, or hotfix that would address this issue but found none. The jist is that a package that uses SQL Server based configuration must have an xml-based configuration entry to "re-point" the SQL Server based configuration connection manager to the deployment target server. We cannot use environment variable or registry as this is against internal policy. The problem is that even though the xml based config i ...Show All
SQL Server Uselesss Error Calling SSIS from Reporting services
I'm trying to call an SSIS package from Reporting Services and I get the follwing error. Has anyone seen this before An error occurred while executing the query. The package failed to execute. (Microsoft Report Designer) I'm following the instruction from Microsoft defined at the following link: Defining Report Datasets for Package Data from SQL Server Integration Services Thanks, Greg van Mullem ...Show All
SQL Server SSAS 2005 - Displaying metric values for some elements of dimension only
Dear all, I have certain metrics which, when crossed with my Product dimension, must display values for some elements of the dimension only. For the other elements, it must display 0. This rule applies to this dimension only. Can someone help me on how to achieve this Regards, Pedro Martins ...Show All
Visual C++ Problems with VS2005
Following a mini-rant regarding the quality of VS2005 on the DirectX Dev list, it was suggested that discussion was continued on these forums, so I'll try and quantify my earlier rants/complaints with real problems I've encountered over the last six months. It should be noted that all these problems I've encountered are with the Professional version of Visual Studio 2005, building native C++ projects targeting x86, x64 and Xbox 360. My PC is a dual core 2Ghz AMD with 2GB of RAM and an X800 ATI video card. IDE Aside from the performance issues, which I'll get to in a minute, these are the main problems I have with the IDE in VS2005: Configuration Manager is broken. Really broken. Changing platform or solution configuration l ...Show All
SQL Server Locking in sql server 2005 & dead locks
Hi I know that SQL server 2005 takes care of Locking .... but is there any time DBA has to take care of this, If a dead lock occurs will SQL server resolve it I there any thing to be taken care or modified in configuration when migrationg from SQL 2000 to 2005 i had a few locking issues in 2000, think its because of index defragmentation,,not sure .. does index fragmentation be the cause for locking awaiting reply Thanks in advance......... Hi Thank you for your reply. Does SQL server takes care of dead lock automatically or do we need to configure anything in the default installation. Thanks in advance ...Show All
Visual C# System.Web.HttpException: Request timed out.
The following program is to strip the string of its HTML tags. After running for several minutes, anyway, which is much longer than other normal program, then the error was complained finally. Why Thanks. <%@ Import Namespace="System"%> <%@ Import Namespace="System.Text.RegularExpressions"%> <script language="C#" runat="server"> void Page_Load(object sender, EventArgs e) { string temp = "<NOSCRIPT><IMG height=0 alt= src=HTMLfiles/s9.gif"; Response.Write(StripHTML(temp)); } public static string StripHTML(string strHtml) { string [] aryReg ={ @"<script[^&g ...Show All
Windows Forms selectedtext changed event
Hi, vb6 offered for the Textbox control the event SelectedTextChanged. How is this done in .net Cheers, Frank a textbox is enough. I added two eventhandlers to the code, KeyUp and MouseUp. This gives me the possibilty to check whether or not the user selected some text in the textbox. Cheers, ...Show All
Visual Studio Team System Do shelvesets save all workspace file versions?
When you shelve does it save the current version information for all files in your workspace, so that you can be sure to get back to where you were when you shelved The typical example is I am working on some files but need to work on a different issue, I shelve my current changes, then do a get latest to make sure I'm in sync, make my new changes, checkin then unshelve the code I was working on previously. The question is would my workspace be rolled back to the point prior to me doing get latest or would I potentially have files out of sync at that point (sync I was editing the files I shelved possibly related to early versions of other files in my workspace.) I don't think I hit a scenario like this yet, wondering if that i ...Show All
.NET Development How can I convert this c# code into a regular expression?
I'm trying to create a "path validation method" to check if a string can be used as a valid path in my program. The path must contain an indication character at the beginning of it which can be either minus, tilde or a dot. In case of a minus character than it must be followed by a number. In case of tilde or a dot than it must be followed by any valid step format. A valid step format is either a s tring enclosed by a sharp brackets , a number or a combination of a string enclosed by a sharp brackets followed by a number without white spaces between the brackets and the number. After the initial step we can have a dot separator to indicate that we have additional steps that must follow the normal step format without the starting indicatio ...Show All
Visual Studio Express Editions print on screen
hello this is the dumest questin u will ever here... how can you print things on the form. i tried print "" and it dosnt work. how can i print on my forms. thanks Try a console mode program and use Console.WriteLine() to print something. On a form, use a TextBox and set its Text property. ...Show All
.NET Development Derived types and System.Collection.Generic.Dictionary?
Hi, I have a Dictionary in one of my classes: private Dictionary<string, RobotPart> _parts = new Dictionary<string, RobotPart>(); RobotPart has many derived Classes (Rod, Joint, Body, etc.) . I have a method called GetFlatPartList that flattens out a treelike structure of RobotPart objects, for easy iteration through the child objects. Hopefully, once I hit "post" my tabs will be kept for the following method: EDIT: I took this method out, and placed it in the following post for readability Now, my problem is that my program will crash, giving me an invalid cast exception when I am trying to search (using a for each statement) for any Type other that RobotPart, even though they (Joint, Rod, Body, etc.) are ...Show All
