Zulbaric's Q&A profile
.NET Development Cannot reference dsofile.dll in ASP.NET project
Hello! I have successfully registered dsofile.dll on our development web server and want to use it in a project to read Structured Storage files. My first question is will dsofile.dll allow me to read outlook .MSG files My second concern is regarding an error I receive when trying to add a reference to dsofile.dll in my project. I browse to the server share that holds the dll and get the following error: "A reference to 'Z:\DsoFile\dsofile.dll' could not be added. Could not register the ActiveX type library 'Z:\DsoFile\dsofile.dll\1'." Any ideas on either of these Thanks in advance! There is a structured storage API but I've never worked with it personally: Structured Storage Fun ...Show All
Visual Basic writing to a text file
I just want to write one row of text to a text file either using a button or on close. thanks for the help Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My .Computer.FileSystem.WriteAllText( "d:\temp\testfile.txt" , "Text to be written" , False ) End Sub Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing My .Computer.FileSystem.WriteAllText( "d:\temp\testfile.txt" , "Text to be written" , False ) End Sub ...Show All
SQL Server Full Text Search Weighted Question
Hello, I have the following query: USE test SELECT new.[key], new.rank, test_Class.Manufacturer, test_Class.Model, test_Class.Title, test_Class.Description FROM test_Class INNER JOIN FREETEXTTABLE(test_Class, (Manufacturer, Model, Title, Description), 'Logan') AS new --CONTAINSTABLE(test_Class, (Manufacturer, Title, Description), 'Logan Magnolia') AS new --FREETEXTTABLE(test_Class, (Manufacturer, Title, Description), 'Logan') AS new on test_Classs.Class_ID = new.[key] ORDER by rank desc I want to have the search work so that if the word logan is in the Manufacturer Column it has a higher rank than if it apeared twice in the description. Basically I want to weight the colomn instead of specific words in the search, which I know how to do. A ...Show All
SQL Server Help me optimize a daily events query
We keep a database of events that are classified by severity. I've got a good, efficient query that gives me the grand total for these events. And I have a bad slow query that breaks down the information into daily totals. My fast query will count the totals for 3213586 events in 4 seconds. The slow daily query takes about 60 seconds for each day. Please help optimize my slow query! ------ Database schema is: Column Name Data Type Length Allow Nuls 1 msrepl_tran_version uniqueidentifier 16 0 0 [time] GMTtime (int) 4 0 0 msec int 4 1 0 offset GMToffset (smallint) 2 0 0 type nameType (varchar) 15 ...Show All
Visual Studio Team System Test Run deployment issue
Hi all, I am currently trying to run a web test and keep getting the following error: Test Run deployment issue: The location of the file or directory "\\ardc2\users\debram\my documents\visual studio 2005\projects\testproject1\webtest1.webtest is not trusted. I would love step by step instructions on how to fix this if anyone knows how to fix it. Also, I was wondering if there is any books available on the Testers edition as I would like to learn more before jumping in with both feet. Thanks in Advance! William, Thank you for your reply but, after I get into the .Net framework 2.0 Configuration what do I do to change the location I need to get this up and running but I need more step by step instructions. ...Show All
Visual Studio Express Editions Dtagridview problems!
sup! I have three problems. Answer to any or all of these problems is welcome. I am using VC++ Visual Studio .NET Express edition. So i would appreciate if the answers are for this tool. Prob1: GridViewProgram->CurrentRow->Index . This gives the index of the current selected row of the datagridview.What i want to do is i want to select a particular row in a datagridview when i know the index so that i can write something into this selected row. Please note that i know just the index of the row and i need to select this row in runtime.How do i do it Prob2: I am trying to figure out how i can allow a user to edit a row (which is by default read only)when he makes a mouse click on this particular row(cell). ...Show All
Visual Studio Microsoft Visual Studio 2005 Team Suite - ENU: [2] ERROR:Error 1304.Error writing to file: H:\Program Files\Microsoft Visual Stu
Hi all, I am trying to install Visual Studio 2005 on my laptop. I'm placing the code on my second hard drive, the "H" Drive. While installing, I get this particular error message: "Microsoft Visual Studio 2005 Team Suite - ENU: [2] ERROR:Error 1304.Error writing to file: H:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\mfc.bsc. Verify that you have access to that directory." Then the log shows the stuff at the bottom. What I can tell you is that the PC use to have VS2003 on it, and that was removed. Now I'm trying to get 2005 on it. Any ideas how to move beyond this The installation won't go any further and I've done everything I can to give permissions to that location and file. Thanks, Keith [02/22/07, ...Show All
Visual Basic Dialogs Does Not Display in the IDE
While working in the IDE I would do some testing then I would need to see the dialog I was working with. It is not displaying properly Basically it is blank. What I do, is shut down Visual Studio and restart it again .. this fixes the problem. Anybody have a solution, Microsoft I believe if you have a certain anti virus software, the recent update blocks the messages preventing it from displaying it in the dialog. There is a patch out for it apperently which seems to resolve the issue. I believe it is using the Mcafee software: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=232807&SiteID=1 Even though this particular poster's solution was to remove the software, there is an upda ...Show All
Visual Studio 2008 (Pre-release) TreeView Sort
Hello. Is there any way to sort the ItemsSource of a HierarchicalDataTemplate I tried with a CollectionViewSource, but it seams that the Binding doesn’t work. I tried to use a Converter method, but the value uses an internal class (MS.Internal.Data.XmlDataCollection) so I can’t sort it :( Any idea Thanks This blog entry shows how to sort (and group) the data bound to a TreeView: http://www.infusionblogs.com/blogs/jsmith/archive/2006/07/11/644.aspx HTH ...Show All
.NET Development lockup problems with ASPNET Web Service
I've been trying to solve an issue for 2 months now in which our web service locks up when more than one client application is pulling data at the same time from it. This makes no sense to us, since we are using MySQL's data adapter to open the connection, do the fill/update, and close it. It typically results in a Operation Timeout exception. The point of where it locks up seems almost totally random, we've filed a bug with MySQL but so far it has come back with no findings on their side after an entire month. Today we did some testing, and turned off timeout on the client side of the web service, and found that instead of timeout exceptions, things freeze indefinately....which is definately strange because the web ser ...Show All
Smart Device Development timer issue
Hello, I'm trying to use a System.Threading.Timer in a class in a DLL library, however, the timer never seems to fire. If I move the class into the project that declares the over all object it works fine, but if it's in a different dll it never fires. Any Ideas Simple example create 2 projects one a classlib and one a smardevice application, put the testreader class in the classlib and create a button on the smartdevice appliation form as shown in the form1 class. the timer's callback method (readcard) is never called. if you change it and put the testreader class in the smartdevice application, readcard is called like you'd expect: Public Class testreader Private t as system.threading.timer public sub startTimer() t = New Sy ...Show All
Visual Studio Crystal report runtime for VB 6
What Crystal report runtime files do i need to compile and deploy with a VB 6 application and successfully run reports in the VB application without having to install the entire Crystal Report application on the End-User's system Hello Ryan, Which version of Crystal Reports are you using and which technology There are the OCX, COM and RDC that can be used with Visual Basic 6.0. If you have a full product version then there is a runtime files help file that is installed by default. Keith - Business Objects ...Show All
Visual Basic The Code Did not work
WHAT IS WRONG WITH THIS CODE: When I print using Button8 it prints a blank page only . I want to print the Text File on the C drive. Imports System.IO Imports System.Drawing.Printing Imports MathCalculation Imports System Imports System.Drawing Imports System.Windows.Forms Public Class MathCalculation 'Declare num1 and Num2 as variables Public Num1, Num2 As Double Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Assign text box values to variables Num1 = TextBox1.Text Num2 = TextBox2.Text 'Determine the checked button and calculate If RadioButton1.Ch ...Show All
Visual Basic Problem with OpenFile dialog
Hi all! I am using VB 2005 to develop a small app that processes land parcel information. The program works very well when the .EXE is located on my station (WinXP SP2). When I place the app on a network share, the Browse button I coded no longer works. I click on the button and no OpenFile dialog appears. If I move the app back to my station, everything works great. Are there any limitations to .NET functions when using mapped drives Is there a service pack for the framework 2.0 to fix this problem Is my code bad I coded the same app in .NET 1.1 and the same problems occurs. Here is the code for the Browse button (in 2005). Private Sub btn_Browse_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handl ...Show All
Visual Studio One or more rows contain values violating non-null, unique, or foreign-key constraints
Hi. i was Trying To read report and i got this error through reportviewer I'm No sure of wats wrong. I tried Searching the net it seems to be the Dataset Prob. But im positive Dataset is working as im using VWD dataset to bind data. even had a preview Which get the data i want. So it means its working. Which then shows that its Reportviewer thats gibing me this error. Appreciate any help thx "An error has occurred during report processing. Exception has been thrown by the target of an invocation. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. " I had the same problem,and just added all of the fields t ...Show All
