SmartSpy's Q&A profile
.NET Development .NET (v2.0.50727) server committed a protocol violation
Hi, I’m working on a simple web service in C# running on IIS which sends a GET-Request to an external server. The Get-Request is received properly and processed by the external server. A trace with Network Monitor tells me that the response code from the external server is 202-Accepted. I guess this might cause the problem that the HttpWebResponse class throws the following WebException “ The server committed a protocol violation. Section=ResponseStatusLine” I looked at many mailing lists and found the ( httpWebRequest useUnsafeHeaderParsing="true" ) patch. I changed machine.config and web.config but without any changes. I also changed the header field “connection” in the Get-Request from “keep-a ...Show All
Visual Basic Need Bootstrapper help
Hi, everybody, Does any body know a sample or easy way to customize the bootstrapper feature in vs2005 When I tried to ClickOnce deploy my win app, I saw two kind of prereq are needed: office 11.0.0.0 and Crystal Report Engine to be installed in the GAC. I think bootstrapper is the right tool to take care of these. All I found were Sean Draine MSDN article( http: / / msdn. microsoft. com/ msdnmag/ issues/ 04/ 10/ Bootstrapper/ ), which is pretty good, but I would like to see more details samples or step-by-step. And Davide Icardi's Code Project sample( http: / / www. codeproject. com/ dotnet/ dotNetInstaller. asp print= true ), which is for vs03, and was 3 years old. I am not sure it is still the most updated method of doing custom b ...Show All
Windows Forms disabling click event while a process is running
I would like to start a new process (.exe application) from my form when a button is clicked. I dont want to get back to my form till the application exits. So I use waitforexit(). However if I click on the button in the form when the application is running, the click event is stored and when the application ends the event is processed and the application starts again. How do I get any click events that occurs on the form to be ignored when another application is running Thanks Karthik for your reply. The reason why I am trying to disable my form is that I don't want any application thats started from my form to be hidden by the form. In other words my form should be the window thats ben ...Show All
SQL Server Database is read-only.
Hi I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when I run the app from the Browser tells me that he Database It's set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open the App. on hte VS and it runs find. This is the error: Exception Details: System.Da ...Show All
Visual Studio Team System Unshelve then Undo pending changes leaves files writeable?
Unshelve then Undo all pending changes leaves files writeable Is this the correct behaviour I would have expected the files to be rolled back to the previous workspace version or top of tree maybe Steps: 1. A developer with checkout only permission shelved his changes into a shelveset for review. Changes were just adds and edits to existing or newly added csharp project files. 2. I Unshelved the shelveset to my box. 3. I selected all files in pending changes right clicked and selected Undo. All files were removed from my pending changes. 4. I Unshelved the same shelveset again and it reported it could not unshelve as I had to resolve writeable files. I selected overwrite and ...Show All
Windows Forms Watermark TextBox in winform
Trying to create a control like Atlas control that will put a watermark inside a textbox while it is empty. My original idea was use UserControl1_Enter and UserControl1_Leave and set this.Text appropriately, but this method could foul up other code using the Text property. My next idea was to use the Paint method, but I am not even sure that TextBox has a OnPaint event at all. Any tips Jon, as far as I know there is no way you can override the painting the a TextBox control, short of drawing everything yourself. There is a solution that should do the trick for you, though. You will need to sublcass the TextBox and override a few things. Consider the following code I put together (far fr ...Show All
Software Development for Windows Vista CardSpace rich client (desktop application) sample?
I spent some tome poking around with the intent to find a sample which demonstrated how a desktop application can use CardSpace infrastructure to authenticate itself to a Web Service (Web application). Did not find any. Can someone please point me in the right direction Alternatively, if such sample does not exist, I will trade the sample (once finished) for some initial guidance how to do it. Nik, Not sure of what you mean by a rich desktop application using Cardspace. I assume you mean consuming a s:web service via a Windows Form If this is it, then it is not much different from the usage of a normal web service via a Windows Form - except that you change your binding config to use a "issuedTokenType" The ...Show All
SQL Server Sharing remotely
Can you use SQL Express remotely instead of locally. I have been told that I might be able to use SQL Express as my network server for sharing files. Is this possible, or do I need a different version of SQL to do this I have been reading the VBE forums and from what I gathered was that SQL Express is only for a local table only, is this true If not, what is the work around, and how do I go to another pc to find out if it is sharable I would hate to get several months in my app design and learn that I was headed in the wrong direction. Thanks David David - SQL Express is exactly right for the small network you desciribe. As long as you don't require any functionality that is not inclu ...Show All
Visual Studio Team System Unit Testing
Can Unit Testing in the DataBase Pro product allow for Edit-and-Continue to help debug SP's that call one another, a tracing mechanism so to speak We will not be able to support TSql edit and continue in this release. For tracing - what do you mean Something similiar to the level of tracing you can get in SqlServer, or more verbose tracing of the test execution and condition evaluation ...Show All
Visual Basic form size constraint of screen resolution
hi, i recently switched monitors from one with a resolution of 1280x1024 to 1440x900. this change has caused havoc to my vb forms since i was using the max resolution of 1280x1024 and vb keeps on resetting my forms' sizes to a minimum of 900 in height, i can't resize them back to 1024. is there anyyway to get by this thanks dave The maximum form size is relative to the screens size...so on form load set the max bounds to the screens size: Private Sub Form1_Load ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Load Me . MaximizedBounds = Screen . PrimaryScreen . Bounds End Sub as far as working with the form in design mode...you can't get ...Show All
Windows Forms taking variable from Public Form1()
how can i reach initial variable from functions_ ok, in that case, you have to make "b" public, within its scope, but private so other classes can't access it but only this class: private kayit[,] b; public Form2() { InitializeComponent(); string[] dizi = Directory.GetFileSystemEntries(@"d:\deneme\"); int tanedosya = dizi.Length; this.b = new kayit[tanedosya,300 ]; //her olcumun 7000 olcum de eri olabilir &nbs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How long does it take to make a game?
i'm answering my own question here. For people new to game development: longer than you think! i was just cruising around a forum where some folks were daydreaming about what they'd create with XNA GSE, and giggled a little when i read "Grand Theft Auto" and "FPS": http://forums.gametrailers.com/showthread.php t=32477 The Independant Game Festival has a great site if you want to check out the cream of the indie crop. It's especially valuable because it records how long each game took to complete: http://www.igf.com/02finalists.html You might check out some screenshots and think "three years But that game looks like ***!" Yes, my friends. Yes. :) Start small. Build complexity from simplicity ...Show All
Visual Studio Express Editions how can i select startup to user control at start up
I am new to programing and would like to know how to do the following. I have multiple use controls and i would like to select the control to show at start up from a combobox list. i would like to save the selected control to a usersetting so it will start up when the aplication is restarted. Thanks I don't know, is 'indentation' not a word Sounds like sup'en to me Besides, I was the first to use 'booleanessity' on the forum. I'm always on the cutting edge of changing vocabulary as we know it. I R eucaded U no! You and Stephen need a guy like me around to make yall look good ...Show All
Windows Forms ListView.CheckedItems.Count throws NullReferenceException
I have an UserControl with a TreeView on it. I have added an handler for the TreeView.ItemChecked event. This method will check if we have at least one checked item in the list. When adding the control to a Form the event will be fired and when trying to access ListView.CheckedItems.Count I get a NullReferenceException. You can try the sample application and you'll see it for youself. Just press the button and the exception is thrown. Code at http://users.telenet.be/-_X_-/ TestCheckedItems.zip Well I know it works like that, but my controls are generated at runtime and it's inside a MVP application which handles the structure of the loading, so I can't really change the order. As you I also u ...Show All
SharePoint Products and Technologies Unable to map a Crawled DateTime field to a Managed DateTime field
Problem Unable to map a Date Time field crawled from a BDC source to a managed property. Scenario: Using BDC to map ther Adventure Works database. 1) Defining the fields from the HumanResources.Employee table 2) Crawling the content results in new crawled properties existing in search (specifically looking at HireDate) 3) HireDate mapped as below < TypeDescriptor TypeName = " System.DateTime " Name = " HireDate " /> This gives the details: Property Name: AdventureWorksInstance.HumanResources.Employee.HireDate Category: Business Data Property Set ID: 2edeba9a-0fa8-4020-8a8b-30c3cdf34ccd Variant Type: 7 Data Type: Date and Time Multi-valued: No ...Show All
