learning_new's Q&A profile
.NET Development How to read Assembly Level attributes of asp.net 2.0 project
Hello, We are converting our project from 1.1 to 2.0, and we are using reflection to retreive the Assembly version and present it in the UI. Due to the new compilation model, the existing code does not work. Is there a way to do this in 2.0 Thanks for your input You can't access the assembly of the web-site itself, because each folder has it's own assembly, and it's not named after the site. You could try experimenting with the MSBuild options to use fixed name assemblies. ...Show All
Visual Studio Team System [Urgent Help needed] VSTS unable to log into ADFS!
Hi All, First of all, here is what the performance rig is like 1) Two webservers in clustered environment on a subnet. 2) One ADFS server in the same subnet as the webservers for authentication. 3) One DB server on the same subnet. When user navigates to the http://webserver/ they are redirected to the http://ADFS/ machine which would display the user a page where he/she would choose their federation server, once they choose their federation server this page would place a cookie and would not be displayed next time user is redirected for authentication. After choosing the fedration server user is presented with a login page which is hosted on the ADFS box, user would put their CORRECT user name and password ...Show All
Visual Studio Team System Doc lacking for the Process Editor
This is the supplied documentation for the Process editor section in the Powertool.doc : Installed Microsoft Visual Studio Team System Process Editor The TFPT application installs an editor that you can use to edit process templates. The installation media includes separate documentation for the Microsoft Visual Studio Team System Process Editor. The included documents are User Guide and Readme with Known Issues. Where do I go to access the tool within the IDE Where do I go to view the User Guide/Readme Any guidance would be greatly appreciated. Thanks, Will S. Hmm... I am missing the start menu items as well as the IDE integration. I will try to re ...Show All
Visual C# How to force writing to label.text and textBox.text in a loop at runtime?
I have a loop doing some I/O. I want to see the progress. What I've ususally done in VFP, for instance, is to direct some output to a label.Caption property, I mean, just the loop vairable, the counter. I also want some limited text info appear in a textBox like the stock symbol: "AIG" for example. It works in VFP but not in C# as I found out. While the while loop is going through the cycles no output appears. Once it is done, I see the last cycle output. Can I force it to show all cycles Some potential loss of performance is no factor in here. I can set up a progress control, I guess. I may end up doing it too. I am more used to this method. It gives me a feeling of having better monitoring control. Also the progress ma ...Show All
SQL Server Sql 2005, x64 box, bad performance on data import
We are importing 5 millon records from a legacy ssytem into sql 2005, x64 eiditon (box has 8GB of RAM, dual cpu, triple-bonded NICs). We are getting terrible perofmance (say 150 records/sec imported). We have not been able to determine the "bottleneck" I have set the database we are importing into to use "Bulk Logged" mode. We will see if this has any impact. Do you have any other general suggestions for the sql side for how to improve import performance TIA, barkingdog 5 mil records is not a big deal. DTS is definetely slow. Even slower with SQL 2005. I have had to move about 5-600 mil rows across tables. The quickest way would be to BCP OUT the data into multiple ...Show All
Visual Studio Building solution with multiple platforms
Hi, I'm currently implementing a project whereby I want to build a big VS solution through automation, containing C++ and C# projects. However C# and C++ uses different platforms, causing only some of the projects to build when using the VS automation interface. The solution builds fine from the IDE when "Mixed Platforms" is selected before building the main project. The automation application is currently set up to build this same project. How do I specify the "Mixed Platforms" option through the automation interface I have tried changing the dependency settings, to no avail. Thanks Thanks, that worked. However, the item name is the file name of the project (i.e. zzz.csproj), and I h ...Show All
SQL Server Report viewer
Can anyone help me in providing Report Viewer with Network Credentials (web service ) in SQL Server 2000 Reporting Servcies ,.NET Framework 1.1 , VS2003 ...Show All
Windows Forms PropertyGrid
The question is, how to make several groups in PropertyGrid, and i do: MyPropertyGrid.SelectedObject = mySomeObject; It only gives "Misc" Group, but how to organize it in to serveral groups I don't quite follow your question... are you looking for a way to build your own editor or visualizer for the propertygrid so that when a custom object is being displayed you have that much more control over it If so... take a look at this MSDN article which includes info on building your own object converter and type editors. ...Show All
.NET Development CreateParameter give bad performance
We are working with MSSQL 2005 and ado.net framework 1 .1 During our performance tests over large DB (~1M records) I found out that when I run one of our queries, with embeded values in the query -string, instead of using the CreateParametr method, the query ran 40 times faster!!! The parameters are 2 strings (~30 characters) , the type in database is varchar(255). Wh at can cause such a huge difference in the execution time This is our AddParameter source: public void AddParameter( object parameterValue) { string paramName; IDataParameter IParam; //For string that is empty do nothing means null is entered to field. if (((parameterValue is string ) && (parameterValue.ToString( ...Show All
Visual Basic Best method to restrict input
I need to restrict the input in a text box to '0 to 9' max 10 digits or 'NA' max 2 char. allowing for the backspace. Can anyone suggest the best method. If regex is suggested I would need the formula. change the textlength to 10 and on the keypress event, check to see if the character pressed is numeric. if not, set e.Handled = true; private void TextBox1_keypress (object sender, KeyPressEventArgs e) { if (!Char.IsNumber(e.KeyChar) && !Char.Iscontrol(e.KeyChar)) { e.Handled = true; } } ...Show All
Visual Basic string manipulation
I've got a string "6/78=12.34" i need to get the value to the right of the = sign how would I do that Mitch Or using the more traditional VB methods, which will work in every version of VB and VB.Net Dim theString As String = Textbox1.text If theString.Contains("=") Then Dim iPos As Integer = InStr(theString, "=") Dim theWantedString As String = Mid$(theString, iPos + 1, theString.Length - iPos) MsgBox(theWantedString) End If ...Show All
Visual Studio Express Editions 'Comment Out The Selected Lines' button
Can't find 'Comment Out The Selected Lines' button. When you right click on the menu bar area of the IDE... do you have the Standard group checked, if not, check it as it is there. Also, you may want to just use the control+k, control+c key combination to comment out the selected text and then control+k, control+u to uncomment. Does this work for you ...Show All
Visual Studio Namespace-level comments in Sandcastle?
Hi Anand, We have been using NamespaceDoc.cs to supply namespace-level comments to NDoc. Does Sandcastle allow for namespace-level comments If not, is there a plan to incorporate them at some point Thanks, Richard Richard, We do not support such a feature currently. All I was saying was to include comment at the namspace or roolt levl in your code and it will show up. I will be happy to look at this nDoc implementation to see if we can support something similar for our RTW. Anand.. ...Show All
.NET Development Problems connecting to sybase from serviced component
Hi, folks: I'm new in this forum. I'm running an application in a Sybase DB. I have the following code: using System; using System.Configuration; using System.Data; using System.Data.OleDb; using System.Reflection; using System.EnterpriseServices; using System.Runtime.InteropServices; using System.Runtime.Serialization; [assembly: ApplicationName ( "DistributedTransaction" ) ] [assembly: ApplicationActivation ( ActivationOption.Library ) ] namespace TestEnterpriseServices { [ Transaction ( TransactionOption.Required ) ] public class DistributedTransactionSybase : ServicedComponent { public DistributedTransactionSybase () { } [ System.EnterpriseServices.AutoComplete() ] public void NewItem () { OleDbConnectio ...Show All
SQL Server Generating and Printing Reports
I've created a data flow where I have linked to an OLE DB Source then created a Flat File Destination. My file is now on my c: drive. I'd like to use that data to create a report, then print to a PDF. How would I do that Currently I was doing this in Access, but I am moving my processes to SSIS. ifaber wrote: Bingo!! Now how do I call the API :) I was worried you were about to ask that. I don't actually know, but I've no doubt that you can do it. To know more about the SSRS API you;d be best checking out the SSRS forum. What I DO know is that SSRS itself is a web service which means that everything that can be done in SSRS can be called via that web service. essentially that web ...Show All
