Mike Barry's Q&A profile
Software Development for Windows Vista Vista and workflow
I just installed Vista beta2. I want to get windows wokflow started. Does anybody know how to install all software and do all settings Thanks, Jian Are you using Visual Studio Express Edition or do you have a fully licensed copy What is the exact error message you are getting Can you create a new workflow project in VS Please post links to the samples are having problems with ...Show All
SQL Server The format of a message during Web synchronization was invalid
my merge replication is suddenly not working properly and the error message on client side is: The format of a message during Web synchronization was invalid. Ensure that replication components are properly configured at the Web server. I haven't changed anything on server or my application, anyone knows what might caused it pls: funnily I've only got this error every morning. once it's ignored a couple of time, it won't occure again but will come back next morning. I have also tried to turn the auto generate snapshot feature off, but it's the same This is due to the fact that there is a mix of .NET frameworks. Either you could uninstall applications that need 1.1 or re-compile those applications with .NET 2.0. That should ...Show All
Visual C# Switch statement
Hi, all: [I guess this could be considered a rant, but I'm still curious if anyone shares my opinion on this] I am still wondering why the switch statement is not more flexible. For example, I feel that a switch statement using objects makes sense. I'll give a more visual example for ease of understanding more than anything else, so picture this: I have three buttons on my form, button1, button2, button3. I set the click event to the same event handler, button_ButtonClick. Inside the button_ButtonClick method I want to check the sender to see which button was clicked, so I do this: switch (sender) // or even (sender as Button) { case button1: // do something here break ; case button2: // do somethi ...Show All
Visual Basic connection to FTP server
I am trying to connect to a FTP server using the FtpWebRequest class in visual basic 2005. Right now, I am merely trying to get a list of files on the server. I have the IP address, the username and password to the server. I also had to install a certificate in my browser. I get a "The specified network password is not correct" - error when trying to test the code. I get it after the Client certificates statement. Public Shared Function ListFilesOnServerSsl(ByVal serverUri As Uri) As String Dim username As String = "username" Dim password As String = "password" Dim retStr As String = "" ' The serverUri should start with the ftp:// scheme. If Not (serverUri.Scheme = Uri.UriSch ...Show All
SQL Server My biggest complaint (and a problem MS should fix ASAP)
When you are using a table and have several table header rows, you can't set just 1 to repeat on the next page. It's either all of nothing. I think this is a big problem. We should be able to set a row to repeat or not and not have it affect all the table header rows. I am hoping someone has a work around to this. If not, MS really should fix this soon. Daryl The way I got around this was rather than putting everything in the header row. I declared additional groups with bogus group criteria and place the rows you want to repeat into that group. ...Show All
Visual Studio VS2005 Pro Setup Fails on Vista Ultimate
Trying to install and get the warning "Missing Required Prerequisites: Windows XP Service Pack 2" setup ends. Does anyone have a suggestion. Thanks Well this is getting old. Now fails because: [02/03/07,17:23:16] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InstallManagerHelper() with HRESULT -2147023293. [02/03/07,17:23:17] setup.exe: [2] Component error string not specified in ISetupManager::AddToActionResultCollection() [ 02/03/07,17:23:30] VS70pgui: [2] DepCheck indicates MSXML 6.0 Parser is not installed. [02/03/07,17:23:30] VS70pgui: [2] Unknown component status forMicrosoft Document Explorer 2005 [02/03/07,17:23:30] VS70pgui: [2] DepCheck indicates Mic ...Show All
Visual C++ Problem loading dll created by VisC 2005
Hi, I converted a C++ project from VS .NET 7.1 to VS .NET 8. The project uses old fopen methods and similar. Under 7.1 the project compiles and runs, but under 8, I am unable to run. First, when running the application, it complains about missing msvcr80.dll. Then, when I locate it (somewhere) on the computer, I get the error that the application tried to load the dll in an illegal manner. When searching for info on this, I stumble into manifests, and I see that the manifest should contain some lines about the msvcr80.dll, version etc. But my manifest file is empty. It only contains this information: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manif ...Show All
Windows Live Developer Forums [CSS BUG] Trouble with a map loaded in a hidden div
Hello, I am very fan of your VirtualEarth service but unfortunaly, i am confronted with a bug than is cause by the way you use CSS (I think) I know that all of your teams are celebrating the Vista worldwide availability… but I expect that the VE team will take a look on this bug. I attach to this mail two examples showing and reproducing this bug (vmap_good.rar et vmap_bad.rar) All the problem is the way that the map is loaded/matched in a div with CSS property “diplay:none;” Hope you will resolve it. Thanks Th. /* GOOD SOURCE CODE */ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.or ...Show All
Visual Studio Express Editions Simple Focus form problem
Well, I have been coming up with an error, but its not an actually error read by the program. I have the following code: Private Sub NotepadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NotepadToolStripMenuItem.Click DAPM.notepad.Focus() End Sub End Class Well, when ever I compile and run the exe, and click notepad menu item, it doesn't focus on the notepad form. Well, could anyone please help this simple problem It still wont switch the forms with each other. Heres my code: Public Class Form1 Private Sub NotepadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NotepadToolStripMenuItem.Click DAC.notepad.Select() End Sub End Class ...Show All
SQL Server Trouble finding Error Code 40 or 53 in BooksOnline
When my .NET 2.0 app can't find the server, it yields a SqlException with error code 53 and a message that states SQL Server 2005 may not accept remote connections. It also has a Named Pipes Provider error numbered 40. I need to make the error message more user friendly, so I went to BooksOnline to get a complete understanding of the errors. Unfortunately, the Troubleshooting topic entitled "Errors 1-999" enumerates errors 1, 21, 102, and beyond. What happened to 40 and 53 What is the best way to look at detailed documentation for these error codes By the way, I'm using BooksOnline for Sql Server 2000. Digging further, "select * from master.dbo.sysmessages" shows the sysmessages table ...Show All
.NET Development Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'
I did a quick search around this forum and around the web but I can't find any helpful information regarding this problem. Currently, I am running a site on asp.net 2.0 within a shared hosting location. Their SQL backend is 2000. I managed to create the db via aspnet_regsql, and then upload the aspnetdb and set provider stuff to the correct bits of information, however when I try any query, like logging in, it doesnt work, and get the error could not find stored procedure... I checked, and the procedure does exist. Everything is set up as it should be, schema and all. Any ideas I used Scott Guthries blog on how to use asp.net authentication on SQL 2000, and that worked without any problems. ...Show All
Visual Studio Team System n mi Upgrade database to specified version in automated build task
We are using team build to run a nightly build and deployment to our test environment. We are thinking about to create a DBScripter.exe app to upgrade our Oracle DB to the specified version. It will look for change scripts and handle the upgrade of the database to a specified version. What can be a good approach to integrate this in the build process I was thinking about calling this at the BeforeCompile Event and the Exec command. But if the return code is less than zero from DBScripter.exe I want to cancel the build. How can I check for the return code and cancel the build if there is any error I would also thinking about using the assembly info task to apply a custom build number to the assembly files. How can I access the buil ...Show All
SQL Server Bulk Insert vs. Data Flow Task (different row results using flat file source)
I'm importing a large csv file two different ways - one with Bulk Import Task and the other way with the Data Flow Task (flat file source -> OLE DB destination). With the Bulk Import Task I'm putting all the csv rows in one column. With the Data Flow Task I'm mapping each csv value to it's own column in the SQL table. I used two different flat file sources and got the following: Flat file 1: Bulk Import Task = 12,649,499 rows; Data Flow Task = 4,215,817 rows Flat file 2: Bulk Import Task = 3,403,254 rows; Data Flow Task = 1,134,359 rows Anyone have any guess as to why this is happening Can you compare the rows imported by FlatFile with the rows imported by Bulk insert task and see if there is any d ...Show All
.NET Development Retrieving username of a running process
Hello, I've a windows service who's looking the owner of the Internet Explorer running process. I retrieve the PID with following code : Dim theProcesses() As Process = System.Diagnostics.Process.GetProcessesByName("iexplore" ) Dim PID As String Dim tp As Process For Each currentProcess As Process In theProcesses PID = currentProcess.Id tp = System.Diagnostics.Process.GetProcessById(PID) Next The question is now : how can I retrieve the username who is executing Internet Explorer Thank you for your help. wum using the Process.StartInfo.UserName should work for you. it gets or sets the username of the process. so.... For Each currentProcess As Process In theProcesse ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Normals - Crazy mirrored artifacts
Hi, hmm I have once more a little problem, i have a generated mesh using a vertex- and indexbuffer. Therefor i need to calculate normals for the lightning. So i found the need the cross-product of two sides of my triangle. With this info and some sample code I tried this: // Calculate normals for (i = 0; i < indices.Length; i += 3) { Vector3 vert0 = vertices[indices ].Position; Vector3 vert1 = vertices[indices[i + 1]].Position; Vector3 vert2 = vertices[indices[i + 2]].Position; Vector3 normal = Vector3.Normalize(Vector3.Cross(vert2 - vert0, vert1 - vert0)); vertices[indices ].Normal = normal; vertices[indices[i + 1]].Normal = normal; vertices[indices[i + 2]].Normal = normal; } for (int vert = 0; vert < vertices.Le ...Show All
