JFoushee's Q&A profile
Software Development for Windows Vista Problems with Tutorial Lab03/Ex02/Task02
I am having problems with Lab03/Ex02/Task02. Following the directions I get different problems with different connection strings. For reference, I am using SQL Server 2000 sp4 and has a name of (local)\Tutorial. I have a Data Connection in the Server Explorer to the database, so I know I can connect and view data. Any thoughts would be appreciated. Dave ================================ static string connectionString = @"Integrated Security=SSPI;Persist Security Info=False;" + @"Initial Catalog=TrackingStore;Data Source=(local)\Tutorial"; static string connectionString2 = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;" + @"Initial Catalog=TrackingStore ...Show All
Visual C# Added a .Net Reference, error message "the type or namespace cannot be found"
Hi All, I am sorry to bother you all with a stupid question, but I installed a new custom .Net control. I then opened up one of the example projects and tried to compile. I am receiving the same message, "the type or namespace cannot be found". VS05 throws up an exclamation symbol next to the reference. I got the same problem, when I opened up a project of my own, added the reference and then added a couple of lines to use the new object. How does the build engine (compiler, linker, whatever) know about the location With VB6 the installation of a COM object and then registering the control is all that is needed. Do I need to do something different here Thanks in advance, Marci Weinberger Hi, ...Show All
Microsoft ISV Community Center Forums This is an unexpected token. The expected token is 'SEMICOLON' while Loading xml file which is read from share point
Hi Everybody, I am reading xml file from share point which is uploaded already. For reading I used SPFile.Openbinary()..... the problem is after reading the xml file from share point, i tried to load the xml file in to XMLDocument object xmlDoc.LoadXml(gxmlContent); But ist is throwing an exception "This is an unexpected token. The expected token is 'SEMICOLON'". exception thrown because that xml file contains Special character &.... I uploaded the following part of xml to share point... <PartDescription title="SKIL: And Then There Was One…A Great Consolidation Play in a Growing Market at 12x Pro-Forma EPS. Initiating Coverage With a Buy Rating and $10 Price Target." synopsis= ...Show All
Software Development for Windows Vista Tracking Query returns null
I have update the Workflow Foundation from the Beta 2.2 to the RC1. In the RC1 there is no "SharedConnectionWorkflowService" anymore. It is called "SharedConnectionWorkflowCommitBatchService" now. So I changed that. Since that I get an error in following code statements: SqlTrackingQuery sqlTrackingQuery = new SqlTrackingQuery (ConnectionStringWorkflowService); SqlTrackingWorkflowInstance sqlTrackingInstance; sqlTrackingQuery.TryGetWorkflow(e.WorkflowInstance.InstanceId, out sqlTrackingInstance); The method "TryGetWorkflow" doesnt populate the SqlTrackingInstance. It is being null. Before changing the Shared Connection Service it worked. Any suggestions, where the problem may be Thanks ...Show All
Software Development for Windows Vista Task scheduler in Vista
The IScheduledWorkItem::GetExitCode function behaves differently in Vista. It returns SCHED_S_TASK_HAS_NOT_RUN even if the task has been run. Steps to reproduce: Create a scheduled task, in the "Configure for" combo box select "Windows Server 2003,XP,2000". Wait for the task to start and complete. Write a small program that gets a pointer to the task's IScheduledWorkItem interface and calls GetExitCode. The return value will be SCHED_S_TASK_HAS_NOT_RUN. In Windows XP it would be S_OK. Is it a bug Thanks for your great help! It works. I have another question about ITaskScheduler. How to use the flag TASK_FLAG_DELETE_WHEN_DONE to delete a task when it's done I set the only trigger's type ...Show All
.NET Development How to design class in net2.0 with C#
er... The problem is, I have learned the basic of C# and OO, then I want to start to write code, but, I found that all my studyed is like an empty paper, I do not know how to begin, somebody help me please Thanks a lot, I am a beginner. What i will suggest you to follow following steps 1. First create small application with each topic , you can go in MSDN and go to Development tool and languages , then clikc on .NET Development and then finally go thtrough each topic in Core development. This is best way and should try each feature of the .NET by creating small application . That's how i also learned . 2. Once you done with core development , you can move to Advanced Development. In case you need any help reagrding which b ...Show All
Visual Studio Team System Build fails with: The binary form of an ACE object is invalid
I can't seem to get team builds to work at all. They fail with "The binary form of an ACE object is invalid" but, there's no indication of which ACL has an invalid ACE. Any ideas The complete log is: Build started 7/22/2006 8:51:35 PM. __________________________________________________ Project "E:\Checkin\JAMS\Checkin\BuildType\TFSBuild.proj" (EndToEndIteration target(s)): Target InitializeEndToEndIteration: UpdateBuildNumberDropLocation BuildNumber='Checkin_20060722.3' DropLocation='\\MVP\Cmn\Kits\Checkin\Checkin_20060722.3' C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(165,5): error : The binary form of an ACE object is invalid. C:\Program Files\M ...Show All
SQL Server mdx parameterized query and security
My group is building a .NET app to build to tap into a SSAS 2005 cube using adomd.net. Within the app, we are employing the adomdparameter class for parameterized queries. My question is about security vunerabilities from SQL injection, or should I say MDX injection, attacks. If it were pure SQL, best practices dictate that one uses parameterized calls to store procedures and not have explicit SQL in the app. The issue with SSAS, is that there is no such client-side construct similar to a TSQL store procedure. Is this a valid security concern How has anyone dealt with this issue thanks for your time and input. We're also building a .NET app using adomd.net. There are two reasons we're not using parame ...Show All
.NET Development DuplicateAndClose - Sockets and Processes
Hi People, Okay so, I'm basically trying to duplicate a socket and and pass it to a new target process id, that seems to be completely do-able via the Socket.DuplicateAndClose method. How would I go about retrieving the the new SocketInformation within the other process, How would I pass the SocketInformation This can be done via AppDomains and calling a function/method but I'm trying to send it to a completely different process. Any ideas Using another socket for example :). Just that you have to synchronize with the new process so you know that it's ready to receive the data. Using a named event for example. ...Show All
Visual Basic Array starting at One
I'm trying to make a array start at 1 and go to 600, i tryed using "to" but never worked. ReDim Preserve Array(1 to 600) You still dont understand, what i'm trying to do is start with 1 and then go up to 600, so its 1, 2, 3, 4, ....., not 0, 1, 2, 3, ...... For example in vb6 i could have used, but i'm using vb.net ReDim Array(1 To 600) As Byte So that it starts at 1 and goes up NOT 0 and up ...Show All
Visual C# Need help converting VB to C#
Hi Can someone help me by converting this VB to C#. Thanks a bunch. James Keele Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Modulo10(TextBox1.Text)) End Sub Private Function Modulo10(ByVal strNummer As String) As Integer 'strNummer may only contain numbers between 0 und 9! Dim intTable(10) As Integer Dim intTransfer As Integer Dim intIndex As Integer intTable(0) = 0 : intTable(1) = 9 intTable(2) = 4 : intTable(3) = 6 intTable(4) = 8 : intTable(5) = 2 intTable(6) = 7 : intTable(7) = 1 intTable(8) = 3 : intTable(9) = 5 For intIndex = 1 To Len(strNummer) intTransfer = intTable((intTransf ...Show All
Windows Forms how to execute a button_click event from a different form
I have a form with a data grid, i want to execute a button.performclick() for each row in the datagrid; the button is in a different form which outputs a word document file and saves it. the below code is in form ProspectsList; the button (btnEmpDoc) is in form Prospects Dim i As Integer = 0 While i < Me .TblProspectListDataGridView.Rows.Count SelectedProspectID = Me .TblProspectListDataGridView.Rows(i).Cells(0).Value Prospects.btnEmpDoc.PerformClick() i += 1 End While how can i get this done and have it loop thru each row and so that it creates a word doc for each row If you can avoid using the PerformClick the better. Always try to make your forms, cont ...Show All
Software Development for Windows Vista Custom loop with multiple activities
I want to implement a custom loop that has multiple activities occur during each loop. I have looked at the for each loop at http://wf.netfx3.com/, but although this solution works with one item in the loop, I am having problems detecting when all items in the loop are done. Currently, I end up closing my activity too early when child activities are still executing. Any suggestions Amanda I have the custom loop which derives from SequenceActivity and uses the default designer. In the loop's activity designer I placed within the activity a built in SequenceActvity, which I have being the single activity that my loop executes. If I place activities within this sequence directly from the activity desinger, ...Show All
Visual Studio Express Editions serial port - sending 8 bit problem
Hi, I have a problem with sending 8 bits through the serial port. I tried to sent chr(129) and I received in the other computer chr(63). when I sent chr(0) till chr(127) it work fine. from chr(128) till chr(255) some of them are fine and some of them I'm getting chr(63) I saw that if I sent 6 or 7 bits it's getting fine and the problem occur in the 8 bit sending. this is how I open the serial port:: --------------------------------------------- sp.PortName = "COM1" sp.ReadTimeout = 500 sp.DtrEnable = True sp.RtsEnable = True sp.BaudRate = 19200 sp.DataBits = 8 sp.StopBits = StopBits.One sp.Parity = Parity.None sp.Open() -------------------------------------------------------- ...Show All
.NET Development WebService Proxy generated with earlier Framework version cannot connect to WebService written with later one.
I wrote my WebService with Visual Studio 2003 and it was Framework version 1.1 Then I opened this WebService project in Visual Studio 2005. Visual studio performed conversion. Now Framework was of version was 2. After that my old generated Proxy stopped working with this new WebService. Any help One error which one might run into is a what version of .Net that ASP.Net is set to use on the after such conversion. Just because the code is compiled to the new version and published, does it mean that IIS can use it. For example when one upgrades to .Net 2, asp.might still be set to use .Net 1x. To check/change it to use v2 do this: aspnet_regiis Check via aspnet_regiis in the Framework version directory s ...Show All
