Kursat Konak's Q&A profile
Visual Studio 2008 (Pre-release) UpdateObject() / AddObject issues
I just got done reading Danny's excellent article here and I just tried to incorporate that logic into my own ObjectDataSource. When I call db.AddObject(), the entity's ID gets reset to 0. This doesn't seem right at all. :) Is there something I could be overlooking Thanks for any help! (Have I mentioned yet that this is AWESOME STUFF I haven't been this excited about programming in years!) Mike Yeah, that's messy. Our CTP has missing functionality. AddObject assumes you're adding an object to the context to add that object to the database. AddExistingObject (that you need that we don't yet support) assumes you're adding an object to the context that already exists in the database. AddObject (when ClientAutoGener ...Show All
.NET Development Am I using ngen correctly?
Hi! First, I put the assembly in the gac (it is strong named). Then I do "ngen install AssemblyName.exe" Will this give me the maximum performance ~Matt You wouldn't put an .exe in the GAC, Ngen doesn't require it. Ngen provides faster startup but slower execution. Check this article for reference. ...Show All
Visual Basic Printing screen through code
Is there code to print screen through VB you can't quite do that. .NET 2.0 has a rich text box control which you can use to save RTF documents. you could probably take the screen shot, save the Image object into the Clipboard then paste it into the rtb control ...Show All
Software Development for Windows Vista Windows Mobile 5 and DirectShow StillImage Capture. Any Advice/Tips?
Hi All, Unfortuantely I'm not a C++ developer but I dable with it when the need arises and a need has certainly arisen. I have a .NETCF2.0 application targeting a WM5.0 PPC device. I want this application to control and use the devices built in camera. Now this has been a hardware specific thing and difficult to code, until now. I have looked at using the .NETCF2.0 Managed Camera API that wraps up the native SHCameraCapture() call in WM5. The managed code fails dismally but I managed to write an embedded C++ DLL that wraps up the SHCameraCapture() call and this works for me. Two problems with this 1) Its horribly slow loading, kind of unacceptable, the built in HP software loads a lot quicker. 2) The complete lack of control over ...Show All
Visual Studio 2008 (Pre-release) Cannot run August CTP Samples
I installed the August CTP, after the LINQ Preview. Everything installs correctly. I opened the solution in VS2005 and built it, everything compiled. I mapped a virtual directory to the installation folder of the webapp sample (on my machine - 'C:\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Samples\CSharp\WebAppSample') The first time I try to access the sample it takes a long time, then errors out to this : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Descr ...Show All
Visual Studio How to get labeled version from vss
Hi all, I Just want to get the labeled version of project from the VSS to the specific path. how we can achive this...Please help me out Thanks in advance.. Manish Bhushan. Hi This way, i need to do this for each and every file, can I get a specific version for the whole project Im looking something like by specifing the label for the solution or the project, can I get the specified version of all the forms, codes and other files which are marked with the mentioned label... ...Show All
Gadgets Can someone make me a gadget?
Hello, I am a complete noob to making gadgets, and was wondering if someone could make me one I like to have one to let me know the temp of my dual core processor and the speed. Don't know if it can be done or not. Thanks in advance Denver Here is a simple article to create a gadget Daily Dilbert Windows sidebar gadget http://www.codeproject.com/useritems/DailyDilbert.asp Hope this helps ...Show All
Visual Studio PLK information
I am getting these errors in the activity log trying to run with the /noVSIP option to test my PLK: <entry> <record>69</record> <time>2006/08/09 15:14:06.580</time> <type>Warning</type> <source>Microsoft Visual Studio Appid Stub</source> <description>CheckPackageSignature failed; invalid Package Load Key</description> <guid>{4A644ACC-B41D-48CE-B192-F8CF92B02A0F}</guid> </entry> <entry> <record>70</record> <time>2006/08/09 15:14:06.595</time> <type>Warning</type> <source>Microsoft Visual Studio Appid Stub</source> <description>CheckPackageSignature failed; invalid Package ...Show All
Visual Studio Team System Random string for UserName.
I would like to generate a random string for every new registration transaction on the site. After I record the test, I am able to generate code and add a random string function. But, is there a way I can do it with the .webtest file We really like the GUI part of the .webtest file. Unfortunately, you cannot sync up the .webtest with the generated code file. Any help will be appreciated. Thanks in advance. You could use a WebTest Plugin and set the Username in the PreWebTest event there. This way you don't lose the UI for the web test, but you still have code level interaction. Here's an MSDN walk-through on creating a WebTest Plugin: http://msdn2.microsoft.com/en-us/library/ms243191(VS.80).aspx ...Show All
Visual Studio Express Editions XML Question
Simple XML file < GPS > < League1 > < TEAM > < NAME > Team1 </ NAME > </ TEAM > < TEAM > < NAME > Team2 </ NAME > </ TEAM > </ League1 > < League2 > < TEAM > < NAME > Team3 </ NAME > </ TEAM > < TEAM > < NAME > Team4 </ NAME > </ TEAM > </ League2 > </ GPS > User clicks on a button and the following code is executed. Dim sr As New System.IO.StreamReader( "text.xml" ) Dim xr As New System.Xml.XmlTextReader(sr) Dim TeamDoc As New System.Xml.XmlDocument TeamDoc.Load(xr) Label1.Text = TeamDoc.InnerText ...Show All
Software Development for Windows Vista Problem starting a workflow compiled from an application that re-hosted the WF designer.
Hi, I’m developing an application that host the workflow designer. I’m trying to load (from a .xoml file – with its codebeside file, rules file, layout file) and compile (to dll) a workflow with the hosted designer. This operation seems to complete successfully. After that I would like to load the compiled workflow (the dll) and execute it in the workflow runtime, but when I start an instance of the workflow and I try to get the possible state transitions I get the terminated event on the WF instance. In the inner exception I found the following message ( Could not load file or assembly 'CustomWorkflow28c81c69-b15e-4119-9fcc-08630911885e, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Unable t ...Show All
Visual Studio Team System Can we mange the notification for all the member?
I'm the administrator of our TFS. As we know the notification is very important. And I want to make sure all the member can get the notification related to his defect. So I just try to find a way to set the notification for each member. Yes, we can though "Project Alerts", and ask each one to set the notification by himself, but it's not convenient. Also, some guys may be forget to active the notification. And regarding to the command of "Bissubscribe", the user will get all the notification, eventhough the defect is not belong to him. So is there a way to allow the administrator to set the notification and user can get the notification while the changes are related to him Thanks.. You can use the ...Show All
Windows Forms Case study Problems... PLEASE HELP...
Dear people, I am getting very very crazy. I am trying to make a case study but I just cant do it. In the link you will find the requirements of the case study... I realy hope that you can help me. Its my last case and then I am done.... http://www.vbforums.com/showthread.php p=2766193#post2766193 Ken Tucker wrote: I get an error when I try and open the pdf you attached in the first post. Hello, Thanks for the quick reply. I have tried to open it and it works just fine. Can I send it to you someway Greetz, John ...Show All
Visual C# Interested but lost! :(
First off. Hi! Just want to introduce myself since I'll be lurking around these forums for awhile. I know action speaks louder than threads but please bare with me. After looking through one of my PC magazines I found an article talking about Microsofts XNA and became very interested in something I gave up a very long time ago, programming. Why did I give it up Simple, you have to dedicate time and hard work and can't simply wish and will your way through it and amount to anything.. So I just moved on and never looked again at it.. However I've found myself still interested, even with the knowledge its hard work and doesn't amount to much for a very long time. Want I want is some help on things that really crushed me last time I trie ...Show All
Visual Basic ContextSwitshDeadlock pain in the rear
ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1b0a08 to COM context 0x1b0b78 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations. When I pause processing, and go into the immediat ...Show All
