948 Posted Topics

Member Avatar for dbalas

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?

Member Avatar for Ketsuekiame
0
219
Member Avatar for Jade87

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 …

Member Avatar for Ketsuekiame
0
114
Member Avatar for aditya.bhoi.35

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.

Member Avatar for Ketsuekiame
0
364
Member Avatar for Mike Askew

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 :(

Member Avatar for Dani
1
638
Member Avatar for thrisha

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?

Member Avatar for Ketsuekiame
0
49
Member Avatar for Sara_5

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.

Member Avatar for Ketsuekiame
0
185
Member Avatar for pritaeas

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". …

Member Avatar for pritaeas
0
264
Member Avatar for wbsat

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 …

Member Avatar for Ketsuekiame
0
155
Member Avatar for happygeek

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 …

Member Avatar for mido2013
8
2K
Member Avatar for Exinta

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` …

Member Avatar for Ketsuekiame
0
215
Member Avatar for yaser.jaradeh

Is [this](http://www.codeproject.com/Articles/85763/C-NET-RTP-MJPEG-Player) what you're looking for?

Member Avatar for Ketsuekiame
0
125
Member Avatar for Sumith Asanka

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 …

Member Avatar for Ketsuekiame
0
312
Member Avatar for ahmadroos
Member Avatar for salesman91

1. Have you stepped through with the debugger to see what's happening? 2. You will need to post some code.

Member Avatar for salesman91
0
793
Member Avatar for dhruv_arora

[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 …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for AmrMohammed

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.

Member Avatar for castajiz_2
0
161
Member Avatar for Sphinx'LostNose

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 …

Member Avatar for pritaeas
0
330
Member Avatar for <M/>
Member Avatar for salesman91

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 …

Member Avatar for salesman91
0
2K
Member Avatar for Xeromus

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 …

Member Avatar for Ketsuekiame
0
559
Member Avatar for RogerInHawaii

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 …

Member Avatar for Ketsuekiame
0
196
Member Avatar for ManthanB

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?

Member Avatar for Ketsuekiame
0
589
Member Avatar for JOSheaIV

Did you try `g.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit` and/or `g.SmoothingMode = SmoothingMode.None` ?

Member Avatar for ddanbe
0
212
Member Avatar for pritaeas
Member Avatar for Ketsuekiame
0
176
Member Avatar for WildBamaBoy

`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 …

Member Avatar for Ketsuekiame
0
542
Member Avatar for castajiz_2

Can you provide an example of what you're doing in code? I don't quite understand you.

Member Avatar for castajiz_2
0
142
Member Avatar for Su Myat Naing
Member Avatar for castajiz_2
0
98
Member Avatar for Ketsuekiame

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 …

Member Avatar for Ketsuekiame
0
263
Member Avatar for abinaya_1

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 …

Member Avatar for Ketsuekiame
0
281
Member Avatar for castajiz_2

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 …

Member Avatar for Ketsuekiame
-1
173
Member Avatar for dannilip

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 …

Member Avatar for Ketsuekiame
0
503
Member Avatar for ScubaSam

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, …

Member Avatar for Ketsuekiame
0
293
Member Avatar for CJMW

To expand on the previous post... `RichTextBox textBox = TabControl1.SelectedTab.Controls.Find("MyRichTextBox", [True]) as RichTextBox;` Sure you can figure out the rest...

Member Avatar for CJMW
0
2K
Member Avatar for Mohsin89
Member Avatar for darrylnuyda

Have you tried executing the SQL on the database without the C# in the middle? Does the database throw any errors back at you?

Member Avatar for darrylnuyda
0
4K
Member Avatar for alek.mieczkowski

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 …

Member Avatar for JorgeM
0
146
Member Avatar for bertha

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.

Member Avatar for Ketsuekiame
0
130
Member Avatar for Shari_1

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 …

Member Avatar for Ketsuekiame
0
140
Member Avatar for josiahemmy
Member Avatar for ddanbe

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 …

Member Avatar for pitic
1
169
Member Avatar for gingank
Member Avatar for suryawanshi

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 …

Member Avatar for ddanbe
0
2K
Member Avatar for Shari_1

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 …

Member Avatar for Shari_1
0
301
Member Avatar for 9tontruck

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)

Member Avatar for 9tontruck
0
6K
Member Avatar for prabhakar78

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?

Member Avatar for Ketsuekiame
0
125
Member Avatar for KushMishra

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 …

Member Avatar for KushMishra
1
8K
Member Avatar for asifjavaid

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 …

Member Avatar for Ketsuekiame
0
334
Member Avatar for prabhakar78

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 };

Member Avatar for prabhakar78
0
2K
Member Avatar for </scorpion>

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 …

Member Avatar for </scorpion>
0
574
Member Avatar for Triryche

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.

Member Avatar for Triryche
0
328

The End.