NETLAND's Q&A profile
Visual Studio Team System Error: Additional code analysis warnings or errors cannot be displayed
I'm getting a couple of errors consistently when I enable Code Analysis on my ASP.NET Web Project in VS 2005 RC1. The build fails, and around 200 warnings from FxCop are displayed. Here are the errors: Error 204 CA0503 : Additional code analysis warnings or errors cannot be displayed Error 205 FxCopCmd.exe returned error code 8. I looked up error code 8 for FxCop, and found it to be an "Assembly load error". It did give me a couple of other errors related to the loading of external referenced assemblies (which do exist locally): Error 1 CA0055 : Could not load XXXXXXX.dll. I can't understand what the problem is. Those DLLs are in my project's Bin, and when I unc ...Show All
Visual Basic combobox.selectedvalue
combobox selected value : FIRMALAR FIRMALARKODU automatik add " FIRMALARKODU ". FIS_BASLIGI FB example 1: D00001. HESAP_PLANI , D00001. FIS_BASLIGI example 2: D00005. HESAP_PLANI, D00005. FIS_BASLIGI vs.. System.Data.SqlClient Public Class Form1 Dim cn As New SqlConnection( "Server=.;Database=prest;User ID=sa;Password=;Trusted_Connection=False;" ) Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim da As New SqlDataAdapter( "select * from D00000.FIRMALAR" , cn) Dim ds As New DataSet da.Fill(ds, "D00000.FIRMALAR" ) ComboBox1.DataSource = ds.Tables( "D00000.FIRMALAR" ) ComboBox1.ValueMembe ...Show All
Visual Basic Capture line of an exception
How can i capture the line of an exception using Try...Catch There would be a number of methods... Here's one that seems to work: Try Dim o As Object = New TextBox Dim i As Integer = o Catch ex As Exception Dim lines() As String = ex.StackTrace.Split(ControlChars.NewLine) Dim regex As New System.Text.RegularExpressions.Regex(":line\s") For Each line As String In lines Dim m As System.Text.RegularExpressions.Match = regex.Match(line) If m.Success Then Dim vals() As String = line.Substring(m.Index).Split(" ") MessageBox.Show(vals(1)) End If Next End Try Some exceptions may have multiple line ...Show All
SQL Server Poor performance with functions in selects
Hi We have the following query that we were trying to execute and it performs very poorly... SELECT ITEM_ID , PART_NO , PART_TITLE , dbo . SFDB_NVL_VARCHAR ( DRAWING_NO_DISP , 'N/A' ) AS DRAWING_NO , dbo . SFDB_NVL_VARCHAR ( DRAWING_CHG_DISP , 'N/A' ) AS DRAWING_CHG , DRAWING_NO_DISP , DRAWING_CHG_DISP , REV_SOURCE , ITEM_ID AS ASSY_ITEM_ID , dbo . SFDB_NVL_VARCHAR ( DRAWING_NO_DISP , 'N/A' ) AS ASSY_DRAWING_NO , SFMFG . SFDB_NVL_VARCHAR ( DRAWING_CHG_DISP , 'N/A' ) AS ASSY_DRAWING_CHG FROM SFSQA_CHAD_PART_DSPTCH_DSP_SEL ORDER BY PART_NO The function SFDB_NVL_VARCHAR is nothing but a replication of nvl function of oracle. CREATE FUNCTION [dbo] . [SFDB_N ...Show All
Visual Studio problem with FileBrowserDialog in asp.net
hi there i have a problem with FileBrowserDialog in asp.net .i'd downloaded this code from one site. it is working fine when i run the app through visual studio ,but when i browse the app ,this dialog never opens thereby giving request time out error. do anybody have any advise.thanx. Shell32.Shell picker = new Shell32.ShellClass(); Shell32.Folder folder = picker.BrowseForFolder(0, "Select Folder", 0, 0); //picker.BrowseForFolder((int)this.Handle, "Resource Updater", 0, 0); if (folder == null) { return; //user hit cancel } Shell32.FolderItem fi = (folder as Shell32.Folder3).Self; strDownloadPath = fi.Path; Thank u for ...Show All
.NET Development Conditional compilation without polluting your code?
You know how you can put Debug and Trace statements in your code and as long as you uncheck the Debug or Trace option in your project properties, those statements are removed from your compiled version. Well, is there a way that I can achieve that functionality with some statements of my own (not Debug or Trace) without polluting my code with a bunch of crappy conditional compilation statements surrounding every statement I want left/removed Perhaps an attribute or something Pretty easy: [Conditional("DEBUG")] public void DoSomethingDebug() { //Stuff goes here } ... public void Caller() { //The next call will not be compiled in if DEBUG is not defined. DoSomethingDebug(); } By adding the Conditional ...Show All
Visual C++ Using DateTime in a Console Application
using namespace System; int main( array <System::String ^> ^args) { DateTime tm = DateTime::Now; return 0; } I think, you've fogotten to add using namespace System; It works fine. ...Show All
Windows Forms ClickOnce Fails with "Value does not fall within the expected range."
I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All
.NET Development Using XML to select a user
Hello all, I am trying to create a program that presents the user with a text box where they enter a number it logs them into a system where they have specific things they can do and some they (possibly) can't. I would like to use an XML file to do this. For example Number 0000 Logs in the user Jane. Jane has admin privileges Number 1111 Logs in Dick Dick can only access the Sales portion of the program. I'm not sure if XML is the way to go with this but it seemed to be the best choice. If you need a copy of my XML file I can post it. I think it is done correctly. Thanks Thomas I found that it was something with this line: strExpression = "\"Employees/Employee[@empID='" + strID + " ...Show All
Visual C++ I am stuck please help
I need to write a program that will calculate the difference between those two days, I am getting those two errors: ------ Build started: Project: compare_2dates, Configuration: Debug Win32 ------ Linking... compare_2dates.obj : error LNK2019: unresolved external symbol "public: class Date __thiscall Date::operator-(class Date const &)const " ( GDate@@QBE AV0@ABV0@@Z) referenced in function "public: int __thiscall Date::GetData2(void)" ( GetData2@Date@@QAEHXZ) compare_2dates.obj : error LNK2019: unresolved external symbol "public: int __thiscall Date::compare(class Date const &)const " ( compare@Date@@QBEHABV1@@Z) referenced in function "public: int __thiscall Date::operator==(clas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error message when dowloading
Hey all, I'm trying to download 9.0, but it gives me the error message, "the cabinet files necessary cannot be trusted." Does anyone have any idea how to fix this I'm going crazy here. Thanks I'm assuming you're talking about the DirectX SDK. I've seen this before, but rarely. It may be the cryptographic service has stopped working properly. Download the file (select "Save as" instead of Run). Then, open a command prompt and do this: net stop cryptsvc net start cryptsvc Then run the file you saved. I think that will fix the problem. ...Show All
Visual Studio VSDB Output file path
I am trying to figure out the Output path of a built VSDB project. I can get the IVsOutputGroup for the “Built” configuration. and call the get_KeyOutput method. This always returns an empty string. If I have a C# project it returns the correct assembly path. Is this a BUG in VSDB Or should I get a different inferface for VSDB Thanks. This feature is probably not implemented by the VSDB project. Actually I think this project type is very poorly supported with respect to extensibilty so I don't think you should expect to get very much information out of it. Ole ...Show All
.NET Development C# form isn't getting key strokes
I developed a C# form in a C# project. From a C++ application I open the C# form (using Managed C++). The C# form works as expected, until I do a File Drag-and-Drop operation on it. After that the C# form quits responding to any key strokes. This prevents the user from doing things like entering text into a TextBox. If I close the C# form, then reopen it (without closing the C++ app) everything works fine. The output window shows no exceptions being thrown, and I'm also trapping "AppDomain.CurrentDomain.UnhandledException" and "Application.ThreadException" and writing the results to the Output window, and nothing is raising those events. Any ideas on why the form quits responding to key strokes thanks for any input! ...Show All
Visual Basic IDE Buggy, SLow, errors
Where oh where do i start. I am an experienced B developer + 8 years from VB3. We have been using VB 2003 for about two years and have managed to get used to it's foibles. We decided it was time to investigate VS2005. I was using Windows 2000 but due to the fact that I could not install/uninstall a new version of comonent one tools I had my machine rebuild using Windows XP and then i installed VS2005 & the latest version of our component one tools. First of all there is the problem withthe properties windows. I dave a dual monitor system, in fact all the developers have the same set-up. SO in VS2003 I have the main IDE in the left screen and the various propert windows (solution explorer, properties, toolbox etc on the r ...Show All
Visual Studio 2008 (Pre-release) error: The mapping for Entity Container 'HRISBusinessModel.HRISArchitectureWorkbench' was not found in Workspace.
Hi, I have a problem using ADO.NET vNext... and cannot find a solution, please help :-( I use now the following connection string : <add name="HRISArchitectureWorkbenchConnectionString" connectionString="metadata=D:\\HRISWorkspace\\HRISEDM\\Domains\\Person;provider=System.Data.SqlClient;provider connection string='Data Source=HRISDEV02;Initial Catalog=HRISBusiness;Integrated Security=False;User Id=HRISBusiness;Password=fakepwd01'" providerName="System.Data.Mapping"/> and I got the following error : "The mapping for Entity Container 'HRISBusinessModel.HRISArchitectureWorkbench' was not found in Workspace." and the stack trace: System.Data.Metadata.WorkspaceMappingCache.GenerateViews(M ...Show All
