Quack!'s Q&A profile
Smart Device Development StackOverFlow Exception
Hi all, I am developing an Pocket PC application in vs2005 in vb.net with requent load of xml files.when i run the application, sometimes it shows STACKOVERFLOW EXCEPTION and quits from the application.My question is 1)Is it pocketpc [Hardware] related problem b'cos the same application runs fine in the other pocket pc. Best Regards, MMBVN If you firing event from the same event that absolutely can cause this problem. To avoid the problem - don't do it. If you can't avoid it then your application will crash. If your current design won’t allow you to stop doing that then you’d need to redesign the application so it can be avoided. ...Show All
Software Development for Windows Vista Help with Hands on Labs
Hello, Over the last days I've started to experiment with Workflow Foundation, but I've had some problems. I find that when I want to create a local variable in a "HandleExternalEvent" object, it won't let me do it. I explain, in Lab05 for example, it asks you to insert a HandleExternalEvent object to handle the user's vote, and once you've changed the interface type and the event name, the manual tells you to " type the value votingArgs into the (Parameter) e field, this will create a local variable named votingArgs within the workflow". I do that and once I click somewhere else or I hit Enter, the word "votingArgs" disappears from the (parameter)e field, and the variable isn't created. The same thin ...Show All
Visual Studio Tools for Office Security bypass(VST 2003)
In the older discussion group I found a post relating to the warning messages generated on the "Users" tube re: unsafe macro's etc. Albert posted : "Simply add the following keys to your runtime packing (the package wizard does have provision for adding regs keys). ROOT:Local Machine Key: SOFTWARE\Microsoft\Jet\4.0\Engines Name:SandBoxMode Value:#00000002 ROOT:Local Machine Key: Software\Microsoft\Office\11.0\Access\Security Name:Level Value:#00000001 If you add both tof the above, then you get no security prompts at all...even if the later jet sp8 is NOT installed. It is clean...and no prompts.... -- Albert D. Kallal (Access MVP) " Knowing the dangers of the registry and being "thick", I have ...Show All
.NET Development how to dial a phone number in a ASP .NET application?
Hello: Does anybody know how to dial a phone number in an ASP.NET application Thank you. Emerson ...Show All
Visual Studio Running reports through URL...looking for sample code or tutorial page
I'm inching my way through ReportViewer and how have reports running on ASP through ReportViewer control. But I can only run one report. I would like to pass in the report name and it's DataAdapter/Source and any params, through the URL and have the report run. I've seen many postings on this but they're just pieces and don't have a complete picture. Is there a page with sample code or tutorial where I can get a better picture of this aspect of reportviewer I'm not using SQL Reporting Services but rather RDLC's. Any direction is appreciated, thanks!! The ReportViewer control is just a control that sits on your own page and renders based on the properties you have set. Just like any other control, it doesn't parse the URL. This is th ...Show All
Software Development for Windows Vista CardSpace and Single Sign On
Hello, When I have authenticated myself once to get a token for using a specific card, I don't want to be asked for authenticate again with the same card, for another RP, during the session. In fact, I want Single Sign On. Is it possible I'm trying to remember where my head was when I said "if you use WCF"...I guess I was really thinking about passive profile WS-Federation capabilities. In fact, all parties in the identity metasystem including cardspace, identity provider (IP/STS), relying party (RP) and client (browser plug-ins to CardSpace or client proxies such as WCF) are interoperable in theory. So, to revisit my statement, with personal cards, you can't get single sign-on unless all relying parties don ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Intercepting Exit
Is there a way to intercept and abort the closure of the Game window when the user clicks the close button Something similar to the FormClosing event for a Form window, where FormClosingEventArgs.Cancel can be set to true, if the user decides to change their mind and save their location, for example. I haven't found it yet... I'm just hoping I've missed it. Alternatively, can I disable the close button Thanks, Paul EDIT: Nevermind, I think I answered my own question. Out of curiosity, does this mean we could build a handler for incoming system messages through this as well ...Show All
.NET Development problem with export data from datagrid to excel
hello I have a problem, I want to make button,when i click them all my data in datagrid will be exported to xls file I want it in vc# I have found this article http://www.codersource.net/published/view/283/exporting_data_grid_to_excel.aspx private void button1_Click(object sender, EventArgs e) { Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/vnd.xls"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); ...Show All
Visual Studio Team System Copying Specific Drop files from Development Directory to Staging Directory after approval
I have question on moving from part 3 to part 4. (Copying Specific Drop files code from Development to Staging Directory) After the code fixed in development server, I would like be able to copy the specify "DropFile directory" to staging. (Instead of using TeamBuild to recreate from specific version) What is the best approach a. When approval email send out, in the email has a link to a website which execute the copy statement from Development to Staging b. Or using Custom Task to do it Reason to to have separate directory for "Dev", "Staging" and "Production", I only want to keep specific version that already being tested. Thank you, John Workflow scenario 1. Developer Checkout fil ...Show All
.NET Development XML Backslash problems
This is probably an easy solution for somebody but with my limited xml experience it's throwing me for a loop. In my app.config file I am storing the server name and database name. It looks something like this: <add key="MainDBServer" value="Name-Blah\Server1"/> When this gets read by my c# code it adds an extra slash to the value making it: Name=Blah\\Server1 How do I make it so that it only reads in the one slash that I need Thanks, Eric Do you see this double slash in Locals/Watches windows If yes, then this is the expected behavior—all slashes within a string literal, according to C# rules, must be escaped with another slash unless you are using @"..." syntax. If you output ...Show All
Visual C# how to cut string into two parts
I have a string and I want to cau it in two parts the string is 16 char , and I want the first eight alone and the second alone for example string = 1234567855555555 label1=12345678 label2=55555555 help me RizwanSharp wrote: As suggested by geert, You can use Substring function to tear out a string in different sub strings based on index and/or character count. But if you need to tear out a string after some specific character's occurance then you can use String.Split function. You can specify after which character's/string's occurrance it should split the string to multiple sub string. I hope this will help. Best Regards, Rizwan aka RizwanSharp ...Show All
Visual Studio Inline Text of SeeAlso
Hallo, the inline text within a seealso tag is ignored in the generated documentation for both styles, for instance /// <seealso cref="IComparable.CompareTo">IComparable.CompareTo</seealso> For this example a reference for CompareTo is displayed as a link and not for IComparable.CompareTo. With best regards Dr. Voss Dr. Voss, Using a mixed-content <seealso> element was supported by NDoc, but it's not officially documented as valid in any MSDN documentation that I've seen ( http://msdn2.microsoft.com/en-us/library/xhd7ehkk.aspx for example). It would be a useful feature, however. There are a number of cases where I'd like to display a more full-qualified type or member name than what is sh ...Show All
.NET Development WSE 2 HTTP Compression
Has anyone implemented WSE 2 with HTTP level compression using GZIP I have a web service that returns data in compressed format to improve performance but the WSE proxy does not let me extend the SoapWebResponse in proper fashion to decrypt incoming stream. I was able to do this with SoapHTTPClient. Explanation:I am able to request GZIP stream data from the server by overriding GetWebRequest (which is type of SoapWebRequest for WSE) but I can't decrypt the response since it's wrapped in SoapWebResponse. The SoapWebResponse does not allow direct access to the stream which I can understand since it's setting up Pipeline and filters but why doesn't it allow HTTP level access Is this a bug Does anyone have a workaround to this N.S. ...Show All
SQL Server Who's the idiot that designed the file destination?
It's funny: Everyone thinks that CSVs are awesome to transport data. I mean after all, SSIS defaults to Comma Delimited files. Even Excel defaults to it. Microsoft is supposed to be our leader! They should get this right. And get the terminology correct too. How many people describe the file as comma separated It's delimited! Even SQL server calls it delimited by the "delimited" drop down. CSVs suck and i will tell you why: When you transport any text field (especially Address) it has the possibility of containing a comma. This causes data to be parsed into the wrong fields. Why in God's grace would you EVER get in the habit of choosing a delimiter that SOMETIMES doesn't work I'll tell you a little short story: I hav ...Show All
Visual Studio 2008 (Pre-release) problem in generating proxy file for the typed dataset using Svcutil.exe with Jun CTP
While trying to generate a proxy file for the typed dataset using Svcutil.exe I am getting the following error: WS-Metadata Exchange Error URI: net.tcp://localhost/servicemodelsamples/service Metadata contains a reference that cannot be resolved: 'net.tcp://localhost/servicemodelsamples/service'. The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:04:59.9843748'. An existing connection was forcibly closed by the remote host I was getting the same error with the Feb CTP but I did not find any problem with Jan and May CTP. Any one has any idea Also ...Show All
