Minherz's Q&A profile
Windows Forms assigning public key token by mage
Hello I have a problem in using mage. When I compare the Application manifest generated by mageUI it has public key token that I don't have it in generated by mage in command line (I have its attributute on assemblyIdentity tag but its value is 000000000000). When I added it will work. How can I assing it by mage. Thanks Mohsen ...Show All
Visual C++ Illegal System DLL Relocation?
When I intend to manually load the user32.dll into memory, after loading the sections and calling its DllMain, an error message appears that the system dll was relocated in memory. If I load it at its preferred ImageBase and thus do not do relocation, this error occurs. However, if I load it into a system choosed address (pass NULL to VirtualAlloc), no error occurs. I can confirm that the loading position of the sections of user32.dll are as correct as the specification tells. Could anyone tell me why Sincerely thanks! No, system restore failed. Had a restore point on 31st March. Doesn't say why it failed, it just states that it couldn't be used. ...Show All
SQL Server Transferring data from Postgres 8.x databases to SQL Server 2005
I have a requirement to pull data from several large tables residing in a Postgres 8.x (PG) database into our SQL Server 2005 warehouse every night. I have been doing this via data dumps to a file then bulk loading said file into SQL2005 but I am running into character encoding issues and newlines embedded in some of the strings which is causing the bulk loader some problems. I would like to take advantage of the power of SSIS to move the data. I cannot find a current working OLEDB driver for PG and I cannot find an ODBC Data Flow Source in SSIS to use the ODBC driver that is available for PG so I am stuck. If someone would be kind enough to shed some light on whether this is possible and if so where I could get the instructions on how to ...Show All
.NET Development Thread.Start() and Really started??
Hi, I am implementing multithread application. After I have created thread and called start method, I want to know whether that thread is really started. Because of this need is I am trying to kill all of the threads respect to program flow. And there can be problem in my flow. Problem is; I have created threads and started threads - OK My threads does not start really, (but thread.IsAlive is true and thread.ThreadStatus = Running) I have tried to kill threads My threads started - Yes, because of they are not really started altough I have aborted them, they started new. How I am understanding that this error has occured In my application, I am implementing network prog. And when a UDP packet has recevied, I am ...Show All
Visual Studio 2008 (Pre-release) loose xaml hangs in ie7 on XP
I am trying to run a simple xaml file in ie7. Open the file, iE7 launches but then doesn't do anything. The progress bar slowly progresses but nothing happens. The xaml file just contains a page with a textbox. I have .net 3.0 installed is anything else needed on an XP machine to run xaml pages/apps Update, for the record: Matt's computer had inadequate permissions set for HKCU\Software\Classes and for the local Application Data folder in his profile ("c:\Documents and Settings\xxx\Local Settings\Application Data"). To harden the "sandbox", PresentationHost.exe runs with a restricted process token. Specifically, it gives up the Administrators group SID. Thus, to get access to registry and file locations ...Show All
Visual Studio MSBuild FAQ issues you'd like to see?
Hi everyone, I'm Kemp Brown, the new documentation writer for MSBuild. Like all products, there are undoubtedly issues with MSBuild and questions you have that you just can't seem to find good answers for. (Hence this forum. ) Or there may be gems of wisdom that you've found that you wish you'd known before. At the risk of sounding cliche, we honestly do feel your pain. And in addition to participating in this forum, we want to help by addressing the most critical and prevalent issues and questions you have in an FAQ format. Bear in mind that -- as hard as this might be to believe -- even big 'ol MS has resource constraints, so as much as we'd love to, we probably won't be able to address all of your issues. But we'll tackle the bigg ...Show All
Visual Studio Team System Coded webtest datasource problem
Hey all, I've generated a coded webtest from a webtest that works just fine. When trying to run the unmodified newly generated coded test, I'm getting this error: Error WebTest1Coded WebTests Could not run web test 'WebTest1Coded' on agent 'MachineName': Object reference not set to an instance of an object. I've found that the culprit has something to do with this attribute: [ DataSource ( "TestData1" , "Provider=SQLOLEDB;Data Source=ServerName;Integrated Security=SSPI;Initial Catalog=DatabaseName" , Microsoft.VisualStudio.TestTools.WebTesting. DataBindingAccessMethod .Sequential, "TableName" )] If I commit out this line, the test runs fine...but I can't access my test data. Any ideas ...Show All
Windows Forms Code released for .NET Terrarium?
Does anyone know if the code for the Terrarium was ever released Is there going to be a new one for .NET 2.0 Can you guys at least open source since it was pretty cool and I think there would be an audience for it if it were to be maintained and improved. Yeah, if only they had made it about robots or tanks with explosions and such you know put a little testoserone in it. But, I guess people weren't too interested in doing bug brains. Oh well. I played with it a bit and I thought it was great. I wish they would keep their promise and release the source code so we could learn from its implementation. ...Show All
.NET Development looking for lifetime and sponsorship sample
I am looking for a clear vb sample regarding implementing lifetime and sponsorship. Anyone Thanks. ...Show All
SQL Server login failed for smo backup operation
Dim srv As New Server(".\SQLEXPRESS") ' srv.ConnectionContext.ConnectionString =connection string Dim bk As New Backup bk.Action = BackupActionType.Database bk.Database = application path+"\"+databaseName+".mdf" Dim bdi As New BackupDeviceItem(backuppath+"\"+databasename+ ".bak" , DeviceType.File) bk.Devices.Add(bdi) bk.Initialize = True bk.Incremental = False bk.SqlBackup(srv) This is a pretty standard procedure for doing backups. For some reason I am getting 'Failed to connect to server. Cannot open user default database. Login failed' for MachineName\Administrator' error message. This error message appears when the application ...Show All
Visual Studio 2008 (Pre-release) Collection with custom properties
Hi, I've been experimenting with deriving a custom, strong-typed, collection and add a custom property to it. The problem I'm having is that on the clientside, the custom property is always omitted in the generated collection stub. I've tried to derive my class from both CollectionBase and List(Of T) ' SERVER <CollectionDataContract()> _ Public Class MyCollection Inherits List(Of String) Protected mComment As String = String.Empty <DataMember()> _ Public Property Comment() As String Get Return Me.mComment End Get Set(ByVal value As String) Me.mComment = value End Set End Property End Class ' CLIENT Public Class MyCollection Inherits System.Collections.Generic.List(Of String) End Class ' SERVER DER ...Show All
SQL Server Unable to Open DTS Packages Anymore
Hi, I installed the dts designer component for 2005 so I could migrate over some 2000 packages and was able to successfully open and run dts packages under 2005. Then all of a sudden I get this error msg and can't open them, migrate them, export them, etc: "here were errors loading the package "MyPackageName": [DNETLIB][ConnectionOpen (Invalid Instance()).] Invalid connection. (Microsoft.SqlServer.DtsObjectExporerUI)" That is not a typo, it actually says "here were errors..." instead of "There were errors..." I've tried the obvious, repair the dts designer component and rebooting, no luck. Anybody seen this Hope this is the right group to post to... Thx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Magenta sprite color comes up transparent?
This seems to be a new behavior in Beta 2, is it a feature or a bug When I draw a sprite with SpriteBlendMode .AlphaBlend that contans the color (255, 0, 255) that color shows up as transparent. Is this to allow an easier way to create transparent regions in your sprites Bill Leaf. wrote: Magenta is often used as a key or mask colour so it seems likely that something is keying your texture - I'd suspect the SpriteTextureProcessor in the content pipeline. Use a different texture processor or change the colour slightly. Cheers, Leaf. Thanks for th reply, I guess what I'm really wondering is whether this is "standard" behavior in XNA that I can count on so that I can blog about it as an option wh ...Show All
Smart Device Development Problems with more then 5 CE devices connecting to a webservice
we made a program in .net 2005 for a windows CE device. It uses a webservice to read and write information in a database. Everything works well, till the moment we start working with more then 4 devices. With 4 it works sometimes but with 5 or more after some minutes all devices stop working. They can't connect to the webservice anymore. Does anyone has an idea what could be the reason. Because we need to be able to work with 10 devices. thanks, Bart the server is heavily loaded because the webservice uses an access database which is not very kind with server load. But still i don't understand why extra connections are opened and how to solve it. You are talking about async service call, normally the webse ...Show All
Visual Studio Team System Overwrite Drop Location and keep output from project files!!
Hi All, Is there anyway that I could by pass drop location and keep the output as I set in the project files Best Regards, Thanks so much for your responded Steve. You are right. I wish to have a build that output binaries to be in the folder that define in the project build configuration's output path. Here is the reason. I've a build project which multi solution files, and mix of Desktop application, web application, web service.... After the build is done, I've to run a script to create zip package for Desktop, web....etc. If I let it output to drop location, I won't have the exactly folder structure when I run zip package. In addition, all the web site files, non-binaries will be missing. ...Show All
