Anarchy's Q&A profile
Visual C# PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. I encountered the same issue when trying to encorporate XPExplorerBar into one of my projects. It turned out that the vers ...Show All
.NET Development Using remoting features inside a .NET applet loaded in a tag object
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page <OBJECT id="myID" height="150" width="300" classid="http:applet.dll#test.applet"> </OBJECT> If not please can anyone explain why I think yes and so I'd written a small example immediately I've met a problem. I'm using .NET Framework v. 1.1.4322 and it's the only version installed both client side and server side. My test applet is correctly loaded into IE client but when I try to setting programmatically the remoting I aways obtain a SecurityException even if the assembly is strong name signed and client side fully trusted. The exception is the ...Show All
SQL Server How to attach network file when send email with msdb..sp_send_dbmail, thanks
I need attach file on other server on the same network. My sql is on a server named sql8, so I send email like this execute msdb..sp_send_dbmail @recipients='wyx1999@hotmail.com',@subject='subject',@body='body', @file_attachments='c:\header.gif' it works fine, but if I send execute msdb..sp_send_dbmail @recipients='wyx1999@hotmail.com',@subject='subject',@body='body', @file_attachments='\\sql8\header.gif' it gives me error Msg 22051, Level 16, State 1, Line 0 Attachment file \\sql8\header.gif is invalid. Any idea Not within Databse Mail. In a stored procedure you could always use xp_cmdshell to copy or rename a file and then call msdb .. sp_send_dbmail and attach the copi ...Show All
Visual Studio Team System Best Practice for DB Versioning?
Looking at the docs now and trying to figure out how we'd use this to handle DB's the regularly go through changes. Would this be one large project Many small ones What if we had different versions of stored procs, tables, functions, etc that we don't want to deploy until the framework is there to support those changes in the application I like what I've read so far and am pretty excited about the product. Just wondering how this should be handled to avoid trying to move changes into production when we're not ready for them yet and how we'd merge those changes together. On a similar note, what is the best way to handle major and minor version releases as far as the DB schema is concerned New projects SubProjects Built-in to the produ ...Show All
SQL Server SQL Server 2000 - SQL Query and Explain Plan CACHING
Hi, I would like to know whether in SQL Server 2000 individual queries (not SPs) along with the query plans are cached or not If yes then how can I check it Also, what would be the measurement Is there a hit/miss ratio In the SQL Profiler Trace events, I do not see any event for Individual Query & Query plan caching but I do see for SPs. Any guidance/steps would be really apprecaited. Thanks/ ...Show All
Visual Basic Appointment Reminder Help
First off, if this is in the wrong forum move it please. Ok, so... I am making a program that would help remind someone of an appointment. It has four basic objects - a DateTimePicker, a Button, a TextBox, and a CheckBox. I have set the DateTimePicker to a custom format of dddd, MMMM dd, yyyy -- hh:mm:ss tt. When the user sets the date and time and clicks the appropiately named "Add" button, it will add it to a list of appointments - the textboxes. Of course these probably aren't the best way to list them is it, but more on that later... When the system time reaches what is in the textbox it is supposed to alert them and give them maybe a couple of choices of dismissing it or moving it. The checkbox I haven't decided 100% on, ...Show All
Visual Basic Magic Number???
I'm trying to decompress a ZIP file using VB 2005. When calling the Read() method on a GZipStream object I get this error message: "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream." I think I'm doing everything by the book. What is this magic number Hi ReneeC, How then can this be resolved This problem surface only when my counter-part in malaysia upload the file but it doesn't as often when I upload from my PC Thanks. ...Show All
Visual Studio Express Editions Visual Studio crashes after selecting "Add Existing Item..."
In Solution Explorer, I right click project, select Add, then Existing Item... The IDE immediately exits (crashes). A box pops up with the message "Microsoft Visual C# has encountered a problem and needs to close." and prompts me to send and error report to Microsoft. It does this every time. I'm using version 8.0.50727.762. For some reason, the problem is no longer happening. At the time I posted my message, it was happening every time. ...Show All
Silverlight (formerly WPF/E) Does Downloader allow cross domain calls?
I'm developing a WPF/E application and I'm trying to download content using the Downloader object. While this works when the url property points to a relative path the downloader fails (no event is ever fired) when the uri points to another site/domain. Is there a security restriction preventing cross domain downloader calls Wouldn't be usefull an onError event on the downloader were you could retreive information on why your request failed Thanks "One other thing to observe in the sample... the sample makes requests to the Flickr service directly without going through a server-side proxy. To make these cross-domain calls successfully, It uses <script> tags rather than XMLHttp to work against Flickr, and uses the JSONP supp ...Show All
.NET Development Connection Pooling not working
I have a form that has a number of database calls. It does these sequentially. In some cases it's not possible (due to archetecture more than anything) to make these calls all on the same connection. However it does open then close the connection. (all connections created are in using statements) What I'm seeing is that we're getting a timeout when the 100 connection limit is hit. Looking at Activity Monitor I can see these connections growing and growing over time in the activity monitor the more windows you open and close even though these connections are closed. (and they all use exactly the same connection string) data source=(Local);initial catalog=Evolution;password=dyknalna;user id=EvolutionUser;Connection Timeout=20; I read ...Show All
.NET Development Clickonce installer?
Is there any way to compile a program in C# Express Edition that would use the windows installer instead Or better yet, allow me to create just an exe for a console program It seems odd that my users should need to install a program that is just a simple console program and I hate having to zip up all of the additional setup files with the exe. There are setup/deployment project options included with Visual Studio, but they are only available in the the standard edition or higher. If you are using the express edition, you might want to consider a solution such as WiX ( http://wix.sourceforge.net ) to create a simple MSI-based setup for your application. Thanks! Aaron ...Show All
Visual Studio Team System Had to use Mercury Loadrunner to capture certain HTTP Requests
While recording scripts, certain pop up screens weren't captured by Visual Studio. Hence ran Mercury Load runner and captured the corresponding HTTP request. Copied nad pasted that HTTP request in the appropriate section of the Visual studio Web test. On playback, instead of displaying the corresponding web browser, the code was displayed. - <P2PApprover> <RequiresP2PApproval>True</RequiresP2PApproval> </P2PApprover> You could also use a tool called fiddler for trying to record requests missed by the VS recorder. www.fiddlertool.com . This tool has an option for generating a webtest file. The web browser in the playback UI is displaying the result of th ...Show All
Visual C# move file to a directory
Hi everyone, i’d like to move files from a directory to another directory, with move() or copy() i can only move a file to another file. Can you tell me how i can solve this problem please. Thankyou Thanks for your reply, i just want to move some of files in one directory to another directory, not directory to directory. Have you an algorithment or idee thanks in advance ...Show All
SQL Server How to detect Backward Compatibility pack if it's already installed using C#?
We have our custom install code using C# for a huge Client desktop application. We package SQL Express 2005 along with Backward Compatibility pack as this application was using MSDE before and at 11th hour management decided to pack SQL Express and backward compatibility pack. During installation we want to detect if the Backward compatibility pack is already installed to avoid overwrite. Can anyone suggest how to detect if Backward compatibility pack is already installed using C# I am sure there should be some registery keys to look for but don't know which. Thanks. ...Show All
Software Development for Windows Vista Specifying privilege level for dynamically loaded assemblies.
I have an EXE application and its assembly manifest has requestedExecutionLevel set to "asInvoker". This exe loads a managed DLL, which performs File IO operations in the ProgramFiles folder. I have created a assembly manifest for this DLL and set the requestedExecutionLevel to "requireAdministrator". So my assumption is that when this DLL is loaded by the EXE and the code to perform file IO executes, Vista's UAC should present the user with an elevation prompt. But this does not happen and the file IO fails. Any suggestions Am I missing something fundamental Is it possible to have a dynamically loaded assembly to perform file IO without having to change the privilege associated with the EXE Thanks & Regards, Vi ...Show All
