Kamen's Q&A profile
.NET Development How to get all the cookies
Hello, I have a problem with getting all the cookies. I use HttpWebRequest and Ethereal shows the following HTTP/1.1 302 Found : Hy There, Well if the path of the URL changes you also have to change the path of the cookies. For example if you logged using this url: www.site.com/login.php and you want then to access another location with different path www.site.com/subdirectory/file.php then you have to modify the cookies got from the first request: wresponse = (HttpWebResponse)wr.GetResponse(); if (wresponse.Cookies != null && wresponse.Cookies.Count > 0) { foreach (Cookie c in wresponse.Cookies) { c.Path = "/subdirect ...Show All
.NET Development Serialization problem after migration to .net 2.0
Hi, i have problems de-serializing objects (saved by .net 1) with .net 2.0. The project was recompiled for .net 2 and it seems that it searches for old assemblies. I migrated to .net 2 and won't use .net 1 anymore. Is there an easy way to fix this problem Well, yes :). But this doesn't seem to work. So an idea would be to install 1.1 with the hotfix, deserialize and serialize back again so 2.0 can deserialize it later. Just an idea. Maybe there are simpler ways. ...Show All
Windows Forms Change the default install directory
Is there any way to change the default installation directory in VS.NET 2003 It is a setup and deployment project. I have found the dialog in the user interface, but there is no property to change the default location from "C:\Program Files\..." to a different path. Is there some other way to do this Thanks ...Show All
Visual Basic OTP: Problem in Visual Basic 6.0 Enterprise Edition
Dear friends, I am using VB 6.0 Enterprise Edition. Today I come to know that some of the options such as ActiveX Document Dll, ActiveX Document EXE, etc have not been in my New Project Wizard. And only Std Exe, ActiveX Dll, ActiveX EXE,User Control are there in my New Project Wizard. And in Add ---> New Class Module also is showing only one Module...The VB Class Builder, etc are not there in the same wizard. Earlier those were there and were working smoothly.... What happened to my VB 6.0 Thanks in Advance Regards Gnanas.SNG These forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microso ...Show All
Visual Studio Anoying delay after every build cause and relief
We've just converted a large .NET 1.1 service application to .NET 2.0. The solution includes 17 projects. The build progresses roughly the same amount of time as the VS2003 build. But after success or failure, the IDE hangs for 30-45 seconds. There is no additional information sent to the output window, there is no additional information on the status bar, it just hangs, then the final line is sent to the output window: ========== Build: 17 succeeded, 0 failed, 0 up-to-date, 1 skipped ========== While this is only a few seconds it is very anoying and it always occurs even if we issue a rebuild all with no changes to any file! Is this a known issue and I should just suck it up Is this a know issue and is there a configuration ...Show All
Visual C# Timer ticker is called after timer is disposed
Hi everyone, I have a System.Threading.Timer that update a progress-bar on a form. The problem is sometimes the update method still is called after the timer and the form are disposed and get following msg: An unhandled exception of type 'System.ObjectDisposedException' occurred in System.Windows.Forms.dll Additional information: Cannot access a disposed object. The related code: private volatile bool WaitFormDisposed = false ; System.Threading. TimerCallback waitDelegate = new System.Threading. TimerCallback ( this .DoWork); this .waitTimer = new System.Threading. Timer (waitDelegate, null , 500, 500); EndWait() is called from outside the form: public void EndWait( object sender, EventArgs ...Show All
Visual Studio Team System Re-assign removed permissions in a branched folder?
We have a problem at a client location that will potentially affect a major release scheduled for next week. The organization's (previous) TFS administrator removed permissions on various sub-folders after branching the main project. Therefore those folders in the branched project now have only read access. Perhaps because the perpetrator was logged in as TFS adminstrator, it appears that not even the TFS administrator account can restore the permissions through the GUI. As a result, we can successfully perform developer builds in TFS, but any builds performed by the TFS Build Service fail at critical points where permissions such as 'label' and so forth are required. The build logs clearly identify that permissions to the affe ...Show All
SharePoint Products and Technologies Site Content Types with PDF template not working
I am working in MOSS 2007 and am creating new site content types. I have used word documents here and also InfoPath forms. However I also want to use a .pdf file as a template here as well, it is actually the standard government W4 form. I have created a new Site Content Type in the Site Content Type Gallery, named it W4, set the parent content type to Document Content Type / Form. I have also tested using the Parent Content Type of Special Content Type / Unknown Document Type. Then I go Advanced Settings on my new Site Content Type and Upload a new document template and hit OK. The new template that I upload is the W4 form. I then go to my document library and add a New Content Type from Existing Site Content Types. I select W ...Show All
Visual Basic Help with disable keyboard, mouse and screen
I currently doing a project tat requried a pop up to warn the user to take a rest. Upon the pop up the user will not be able to continue using the computer is there any suggestion on how i can do that thank alot. they wont be able to pretty much run the application or continue using it, and ONLY that application - not the entire PC, the entire PC would not be able to be controlled using this method. There maybe a way however it can be a security issue ...Show All
.NET Development Sending multiple http requests with one connection
Hi, I'm trying to send multiple batch of http data to a server while using only one connection. I must use the same connection every time, since the first batch of data sent is some sort of logging and the other batch of datas asks for informations from the server, based on the logging previously sent. The problem I have is that after the second batch of data sent, my connection is closed (the server informs me that the socket was closed). I can't understand why it is closed and how to keep it open. I'm still new to C#, so it might be pretty easy. The code is from a function that gets called every time I have a new request to send to the server. Here's my code: // Create the Uri object for the resource you want to access. U ...Show All
SQL Server ole db source query assistance requested
my query is below: "SELECT * FROM " + @[User:: TableName] + " WHERE OrderDate = " + "'" + @[User::dTrxnDate] + "'" needless to say, the ole db source editor is giving me syntax errors. the data type of TableName is string. the data type of dTrxnDate is DateTime. can someone please help me resolve the syntax errors thanks in advance. Duane Douglas wrote: i'm still seeking assistance. Duane, The Ole DB Source only understands SQL, you cannot use SSIS expression there;tWhat you have to do is to put your expression in a variable(create a variable and then press F4 to get access to the propety pannel) and then in your OLE DB Source component choose Data Access Mode : SQL ...Show All
.NET Development Collection without duplication
I can't find a collection in the framework that doesent allow duplicated values. is there an alternative thanks in advance Have you seen System.Collections.Generics.Dictionary Its saves a pair of values at each index 1 is Key the orther is Value, Key is Unique and it cant be duplicated if your try to insert a duplicate it'll raise an exception!!! Best Regards, ...Show All
Software Development for Windows Vista Problem with (SDK Samples)DynamicUpdateFromWorkflowSample
Hi everyone, i study the SDK Samples "DynamicUpdateFromWorkflowSample" but the dynamic update workflow not work correctly. the code. yes i configure sqlpersistenceservice but not work correctly the output: just Workflow 1: PO Request Amount of $750.00 Background check delay Workflow is in idle state Ending workflow... Workflow 2: PO Request Amount of $1,200.00 Background check delay Workflow is in idle state Ending workflow... in my pc the sqlpersistenceservice db have CompletedScope and InstanceState Tables and UnlockInstanceState RetrieveNonblockingInstanceStateIds RetrieveInstanceState RetrieveExpiredTimerIds RetrieveCompletedScope RetrieveANonblockingInstanceStateId RetrieveAllInstanceDescriptions I ...Show All
Smart Device Development WINDOWS CE 5.0 AND MVS 2005
I have a windows CE 5.0 platform being called up by mvs 2005 when i first start mvs 2005. i want to call up the pocket pc 5.0 platform or any other standard platform. is there a way in mvs2005 to set the boot platform sdk. i am not able to access my smart devices with the CE 5.0 platform. i reload windows CE 5.0, and made some progress i get these two error messages when i try to build a new smart device, "error retreiving information from user datastore", and "the project could not be opened because it refers to a device platform that does not exist in your datastore" i went to a corecon search, and set show hidden files and i found two directories with corecon i delete both and restarted vs and i got smart devices to ...Show All
Windows Live Developer Forums spatial queries
Is there a way with the latest release of Virtual Earth to perform spatial queries For example I want to know if a point from my database (like an address) is within a polygon I defined or list all points inside a polygon area... or list all addresses 3 miles from a point. If not then what are my options Pay for MapPoint web service and then is there a way to combine that with Virtual Earth instead of the maps made by MapPoint web service I want to stick with Microsoft but I do know that ESRI has spatial queries feature in their web mapping service. Thanks! Andrew Jones General MWS info, including links to the SDK: http://msdn.microsoft.com/mappoint/ Page to sign up for a free developer accoun ...Show All
