948 Posted Topics
Re: Does your account have permission to use WebDeploy? It could also be that your remot IIS is configured incorrectly. Is your `<uri>` tag inside the `<configuration>` tag? | |
Re: What exactly is it that isn't working? How do you want it to work? WebServices aren't WinForms applications so you should not treat them as such. I notice that the code you want is in the `Page_Load`. Are you wanting this code to run when the WebService starts up, at … | |
Re: There is nothing that you've posted that will cause an "unreachable code detected" error. The only problem I can see is the same that other people have mentioned; the loop controlled by `K` will never exit because `K` is never updated. | |
Re: OAuth is pretty bad for native apps, whilst maintaining the trust of your users. There's ways around it of course, but none of them lead for a good user experience. Unfortunately nothing can be done about that :( | |
Re: RC4 is insecure and has been marked as "avoid" by CISCO. You should choose a different algorithm. Additionally, is there any particular reason you chose a stream cipher rather than a block cipher? | |
Re: Find out what the error is and decide yourself how to handle it. It may be recoverable, it may not be. If it isn't, you'll have to decide what to show the user and whether or not you need to close the application. | |
Re: The easiest way is to set up a proxy list. In your drag drop event, move the items that you've "dragged" into a secondary list and cancel the entire dragdrop event. Watch this list for changes. When you detected changes to this list, pull out any you wish to "cancel". … | |
Re: Not that I'm aware of, so if you've looked at the WMI documentation on the MSDN and not found one, I guess there isn't one. In this case, you would need to write a System Filter driver to monitor IO requests. You will need to do this in C, not … | |
Re: I've been running Windows 8 for a while now and I have to say that for me, Metro is pointless. It seems the decision for Metro being the default "desktop" is because is massively improves start up time. The next time you load Windows up, leave it a moment to … | |
Re: If I were in your position and re-writing the entire file everytime, I wouldn't bother trying to modify the existing one. Just create a new one from scratch an over-write the existing file. If you want to continue to modify the existing file, pick whether to use `SelectSingleNode` or `DocumentElement` … | |
Re: Is [this](http://www.codeproject.com/Articles/85763/C-NET-RTP-MJPEG-Player) what you're looking for? | |
Re: Unless you're using distributed transactions, you need to share the connection on which you create the transaction. The better way in my opinion is to use `TransactionScope` outside of your `SqlConnection` eg. using(TransactionScope tScope = new TransactionScope()) { using(SqlConnection conn = new SqlConnection(CS)) { // Do stuff } // You … | |
| |
Re: 1. Have you stepped through with the debugger to see what's happening? 2. You will need to post some code. | |
Re: [QUOTE=Ancient Dragon;1249976]Microsoft decided to hide that menu on you thinking that programmers are too dumb to know how to use it. To activate the Build menu click on Tools --> Settings then select [b]Expert[/b].[/QUOTE] Wow are you serious? I thought this was just some sort of troll ^^ (Or maybe … | |
Re: Image files also include header information and some of them are compressed. If you're talking about bitmaps, the exact file format is written on [the wiki](http://en.wikipedia.org/wiki/BMP_file_format) Bitmaps are the easiest to read because they are uncompressed. | |
Re: Personally I would only use async/await if you're running on the UI context as I believe that's the entire reason it was designed (to prevent blocking the UI thread) You can have the await chain run serially on it's own context by setting `.ConfigureAwait(false)` but each method in the chain … | |
Re: Your database design should change slightly. Having an ID that is not unique is not very well named, so pick something that better describes this. Your image table should contain three columns: 1. The primary key column, probably an int, possibly an identity column (auto generated id). 2. This other … | |
Re: It could be something to do with the "On-Access" scanning that Kaspersky does. I think that disabling the antivirus doesn't actually stop this process from taking place, you have to go in an manually change that setting somewhere. Either that or it's the network filter driver that they all seem … | |
Re: Are you bound to using WinForms? WPF has some nice components that will let you play videos. They actually run on DirectX underneath. I don't think it's DirectX that's depracated, simply the managed framework for it in .NET. If you want to use DirectX still, try something like [SharpDX](http://www.sharpdx.org) The … | |
Re: Agree with ddanbe, you're going to get yourself into a neverending loop there. `this.WindowState = FormWindowState.Minimized` should work. What kind of timer are you using? Are you sure that the tick event is fired? | |
Re: Did you try `g.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit` and/or `g.SmoothingMode = SmoothingMode.None` ? | |
Re: We write our own (in a word document) as generally TFS can't be trusted :) | |
Re: `Socket.Receive` even with the byte length argument, isn't guaranteed to actually have that much data. Essentially, the byte length argument is a "max limit". It will receive as much data as possible *up to* that value. So if your socket has sent 15 of 30 bytes in the first TCP … | |
Re: Can you provide an example of what you're doing in code? I don't quite understand you. | |
Re: Testing it in what way? There are several was to test things... | |
With the new changes to make it mobile friendly and the removal of the menu bar that moves down with you, is it possible for us to have a "Back to Top" or similar functional button on the header that will return us to the top of the page so … | |
Re: Select the data from the database, create a file with the correct name and write the data to it. You will need to decide what kind of writer based on the data type ie. Binary or Plain Text You can use methods on the `File` class to do things like … | |
Re: Just to put my nose in...Unless you need to use the counter variable outside the for loop (which in my opinion is bad practice in nearly all cases) you should initialise the counter value in the loop declaration. It ensures that the counter can only be modified in the scope … | |
Re: Essentially you only defined the query but you never executed it (this is called deferred execution). You should be able to correct that simply by putting `.ToList()` on the end of your LINQ. var words = File.ReadAllLines(path) .Where(line => line.StartsWith(intro)) .Select(line => line.Substring(intro.Length).Trim()) .ToList(); This will cause the query to … | |
Re: To create a class library, you just need to create a project of that type in Visual Studio. A binary search tree is just a fancy name. Essentially it means; look at the value in the middle, is your value higher or lower. If higher, discard everything before now, otherwise, … | |
Re: To expand on the previous post... `RichTextBox textBox = TabControl1.SelectedTab.Controls.Find("MyRichTextBox", [True]) as RichTextBox;` Sure you can figure out the rest... | |
Re: How are you writing the file? | |
Re: Have you tried executing the SQL on the database without the C# in the middle? Does the database throw any errors back at you? | |
Re: All you're seeing is your IPv6 local host address. Effectively 127.0.0.1 in IPv4 You will need a service that exists outside your local area network that can tell you your IP Address. Google will be able to give you a list of those (and might even have something to tell … | |
Re: Either a *lot* of your code is missing, or you're mis-bracketing. Essentially, in this code, you're closing your method on line 8. None of this code should compile. | |
Re: You don't need to be so heavy handed here. `db.Users.SingleOrDefault(u => u.Email == email);` will achieve the same effect. All you need to do then is transfer that data to your view model. If I were you I'd have some kind of data loader on your VM that you can … | |
Re: The way that VS currently handles it is pretty neat and tidy, with all the control setup happening in the .Designer partial class. I wouldn't recommend changing it to be honest as you'll only end up reproducing the same functionality as you increase the amount of controls on the form … | |
Re: What version of the framework? | |
Re: First, explain what an UNV file is. Unless it's a proprietary file, you should be able to find the format somewhere that will tell you how the data is layed out. Use that to figure out how many bytes you need to read to retrieve the data you're interested in … | |
Re: You need to create your own custom initialiser, override the `Seed` method and set this initialiser for your Context. Example; public class DbInitialiser : CreateDatabaseIfNotExists<ContextClass> { protected override void Seed(ContextClass context) { context.Genre.Add(new Genre { GenreName = "Computer" }); // Add everything as necessary } } This needs to be … | |
Re: Did you check that the file still exists in the output folder of your build? Visual Studio could be deleting the DLL because you're doing a rebuild. (Performs a 'Clean' step) | |
Re: The number of columns won't change regardless of whichever cell you pick. Do you mean you want the column index of the currently selected cell? | |
Re: Personally speaking, a combobox is the wrong object for this job. It would be much better (and simpler) for the user, if you populated DataTables. Your functionality would still exist, only they UI would be better. I would do this in a class structure that your ViewModel will utilise. Create … | |
Re: 1. Can sometimes depend on the Camera implementation, but generally if you use Microsoft libraries it will be WMV. 2. Yeah, just find a library to do that for you. 3. It will be stored in Silverlight's local storage. You may not have enough room to store an entire video … | |
Re: DateTimePicker dateTimePicker = new DateTimePicker { Format = DateTimePickerFormat.Time, ShowUpDown = true // Set to false if you don't want the up and down arrows to select the time }; | |
Re: Essentially you're submitting every row to the update method. Instead, you need to select the current row you're working on and check whether it is "dirty". foreach(GridViewRow rowView in dgv.Rows) { DataRow row = rowView.Row; dgv.CurrentCell = dgv.Rows[rowView.Index].Cell[0]; if(row.RowState != DataRowState.Unchanged || dgv.IsCurrentRowDirty) { maDDL.submitItem(.....); } } This is probably … | |
Re: If you call `PlaySync` instead of `Play` it will queue the audio so that they play one after the other, not over the top of each other. If you want any more complicated scenarios then you will need to create your own audio manager. |
The End.