« first day (1412 days earlier)      last day (3552 days later) » 

5:00 PM
Snippet question: Is there a way to tie method/var names together in vs after the snippet is made? For example if I'm making a snippet where with two methods
public void X()...
public void RealX()...
Where X is a replacement, can I get visual studio to auto update those things after the snippet is created?
 
Don't think so...
 
@NETscape What should I be doing instead?
 
MusicSource.Source is going to be a "list" of all the items being shown, right?
 
damn...
 
just in a grouped fashion
 
5:01 PM
Yes, It was initially an ObservableCollection, but based on the answer to the question, I changed it to a list.
So yeah, it will be a "list" of items.
 
all of the items
it should be all of the items, right?
 
Yes, all of the items.
 
then whats the point of ObservableCollection<GroupKeyList<Music>> list =...
if all you have to do is: groupedListView.Items and get the same collection of items
 
I am using the code given in this answer:
1
A: Scrolling a ListView CollectionViewSource to a group of items based on a search textbox's text in C#

Chubosaurus SoftwareWow that is one hard problem. I've done something very similar in the past. Basically you want an AJAX solution to an ObservableCollection set. You can achieve this by writing a search function through your AlphaKeyGroup with the help from a Regular Expression match. This should return your e...

@NETscape The problem is, this solution will fail when there are multiple items that have the same word in them.
 
how does it fail?
 
5:08 PM
If there is an item called "Beat It" and then there is another item at the bottom of the list called "Beat the Heat", the search will only scroll to the first item ("Beat It"), it will never go to the other one.
Perhaps, a way to filter the list and only show the matching items would work better.
 
well how is it supposed to go to the next one?
 
There is no way it is supposed to. Because it's a as-you-type search box. There is no way it can go to the next one.
I guess, my strategy should be to filter the list.
The problem with filtering, however, is that when I filter it, I have to set the ItemSource of the listview to that new filtered list. That's fine. But as soon as the user is done with the search and wants to see the entire list again, all of the items which were initially selected become deselected.
 
@DemCodeLines Would it be helpful ?
 
probably your Regex has to be fixed, or something.
 
If I can figure out how to filter the list without having to change the source of the listview, then it would be all fine.
 
5:28 PM
var view = MusicSource.View;
var scrollToItem = view.FirstOrDefault( x => // do some type of matching );
if( scrollToItem != null)
    contentList.ScrollIntoView(scrollToItem);
@DemCodeLines does dis work at all?
not sure what type the IEnumerable<T> view would be
you might need to cast it though
var scrollToItem = view.FirstOrDefault( x => (Music)x.Song.Contains(Search.Text))  );
maybe that?
 
Alright, @NetScape let's forget everything for a minute.
and start over, because things are starting to get very complicated.
This is what I need:
 
If I type "Xscape", the listview automatically finds all the items that have "Xscape" in their title and shows them to me. It only shows them. From there, i click/tap on the item to select them, and then delete everything in the textbox to show all the items again, but those items I just clicked/tapped on should remain selected.
Is that possible?
 
selection can be something you manage on your own
separate from the filters
so yes, that should be possible
(and you can make your filter include selected items even if they don't otherwise match, should you choose)
 
5:36 PM
it's possible, though it might be difficult because of virtualization @DemCodeLines @ReedCopsey
 
@ReedCopsey I have been trying to solve that for the last 2 days and @NETscape has been trying to help, but we haven't been able to do it successfully, perhaps you can help us out a little (of course, if you don't mind)?
 
@NETscape Using ICollectionView and the filters there, it should be fine
just make the filter include both
 
@DemCodeLines my link wasn't enough ?
 
@DavidKhuu It helps, but I don't want to reset the item source, else the entire list gets refreshed and all the selected items lose selection.
 
@DemCodeLines ItemsSource is never changed
 
5:38 PM
@ReedCopsey I think when they go out of view (using filters), the ListView will unselect them. Happens with my GridView
 
A predicate is applied to the ListView and it automatically filters the items that return true, using the function
 
First problem is that GetDefaultView is no longer available, at least not in WP C#.
 
@NETscape That's why I said "selection can be something you manage on your own"
just make a separate IsSelected property, and use it, not the normal selection mechanisms in XAML
(on the VM)
 
@DemCodeLines have you tried adding lets say 2000 items to the collection. selecting the top item, then scrolling all the way to the bottom, then all the way back to the top? is the first item still selected?
 
@ReedCopsey some code would help.
@NETscape Yes.
 
5:42 PM
@DemCodeLines rent-acoder.com
 
sigh
nvm
 
@ReedCopsey of course, but then there is the virtualization issue that I had. Once an item is recycled, the control will set the IsSelected = false in the VM
 
I'm happy to help refine something - but I'm not going to write an app for you
@NETscape Not if you mange the selection yourself - ie: Don't use selecteditem/selecteditems
 
@ReedCopsey And I don't expect you to either, but I just need help on this listview issue.
 
just have a property you set
 
5:42 PM
It's a freaking pain.
 
on the VM for each item
 
which is what I did, used behaviors
 
make a "bool Selected" property on the VM, and set it true when you "select" the items yourself
 
(I don't think that's available in WP)
 
so it's completely ignoring the built in selection
(You can always do it via codebehind)
 
5:43 PM
true, true.
 
just pretend WP doesn't handle selection
and it becomes relatively easy
 
I see multiple ways to implement, all are just a little time consuming
 
exactly - it's going to take some code - but nothing's really a hard problem there
 
if you don't have VMs and what not (which he doesn't)
 
heh, well, that's a whole different issue then :p
 
5:45 PM
forget it thanks for the help @NetScape
 
You need some place to store that info - a VM is the idiomatic way to do it
but @DemCodeLines if you want to avoid that, you'll still need to make some class to track selection and/or put it in the model data itself
 
guys in this code:
long a = Convert.ToInt64(textBox1.Text);
Str.textbox = a;
Str.textbox is always 0
 
mmm - why do you have a property or field named "textbox" that's a long?
 
Str is an instance of "Elemanlar" structure,
public struct Elemanlar
{
public long textbox { get; set; }
...
@ReedCopsey
 
5:48 PM
and that's my cue to leave... haha (not about you Dem)
 
@NETscape It's not haha, I just wanted to say thanks for helping me the past couple of days.
 
i'll try to replenish myself and help out later.
 
This is a stupid problem to have and I am essentially trying to do something which I am not capable of doing, so I'll forget it.
 
Anybody can help?
 
@DemCodeLines what @ReedCopsey is saying is make a MusicViewModel that has a public bool IsSelected property. In code behind, anytime an item is selected, do (e.Item as MusicViewModel).IsSelected = true or whatever, and anytime the View changes, iterate through the source and manually select any item that has IsSelected = true
correct me if i'm wrong Reed
 
5:55 PM
basically - and you can have your filter return true if the string matches OR if IsSelected is true
 
@KeremZaman you're a C developer aren't you? C++?
 
so it doesn't "hide" selected items (if you want)
@KeremZaman Are you getting any exceptions? What's in textBox1.Text as you run?
 
I don't have a Filter and I am unable to implement one. WP has extremely stripped down versions of CollectionViewSource.
 
I suspect the problem is that you used a struct and not a class, and you're probably doing something when you use the result later that's making this lose the values
 
@Netscape no, C# :) @ReedCopsey no I'm not getting any exceptions
 
5:57 PM
@DemCodeLines Filtering works fine in WP
 
@DemCodeLines right, that's why I think you want to use CollectionViewSource.View, because its an ICollectionView (which is an IEnumberable<object>). You can use ICollectionView's MoveToCurrentPosition after you find the index of the items you match, and that should change the position of your view
 
I will try with class instead of struct
 
There is no ICollectionView.Filter @ReedCopsey
 
@KeremZaman my suspicion is that switching that will likely solve your issue - but if not, step through in the debugger
@NETscape @DemCodeLines you need to do the filtering on the source itself in WP - see: spikie.be/blog/post/2012/04/12/…
(had to track down a sample - that's WP 7, but it should work in WP8+ too)
 
@ReedCopsey I have been already working with breakpoints :)
 
6:04 PM
CollectionViewSource doesn't have a Filter property.
 
@DemCodeLines Here's a full sample: hanselman.com/blog/…
you can most definitely filter collection views in WP :p
 
So not only I can't use LINQ where to filter the list, but I have to implement the whole filtering system...
collectionView.View.Filter doesn't exist.
Why doesn't it work properly?
 
@DemCodeLines This is why I'm frustrated with you - There are hundreds of samples online that demonstrate how to filter with CollectionViewSource on Windows Phone...
that's WinRT, not Windows Phone
 
@ReedCopsey You really think I come here before doing research?
 
Here, this one has a full source downloadble: babaandthepigman.wordpress.com/2012/02/01/…
it sure as hell seems like it - you ignore what people tell you, and ask the same questions over and over - even after we've told you multiple ways to approach it... I can find multiple articles within seconds of trying via google/bing, etc.... and you keep just repeating the mantra of "This doesn't work in Windows Phone". It obviously does, and does for many other people out there
so.... at this point, I've given you links to multiple samples that do filtering... you should be able to figure it out from those
If not, I recommend posting targetted questions on StackOverflow
 
6:19 PM
Does anyone know what would cause the runtime to refuse to execute my breakpoint conditions?
 
@KendallFrey I've seen issues when edit and continue is enabled/used
 
@ReedCopsey Do you actively develop for WP (specifically WP8.1)?
 
Nope - done a bit with it, but don't actively develop it
 
You've done a bit with WP8 or 8.1? Because there is a massive difference between 8 and 8.1
 
@ReedCopsey thanks, using class worked. But I have different problem now.
the for loop in function is skipped
 
6:24 PM
@ReedCopsey I haven't edited anything, it happens a lot
 
with no reason
 
When I want to check a value, I usually have to create a temporary variable.
 
@KeremZaman set a break point on the loop and check the values
 
@KendallFrey Try disabling edit and continue - I've found that the debugger works better when it's not on.. but yeah, I've seen that too :(
 
@juanvan I have already set breakpoints on the loop, but the application doesn't stop on the breakpoints in loop, skips them and stops at a breakpoint after loop.
 
6:27 PM
set it to the line prior to the loop - put one of the variables in the watch window and see what value it has
@KeremZaman What is the loop check look like?
 
@ReedCopsey Are you familiar with .NET network possibilities ?
 
@DavidKhuu Some - that's a pretty broad area, though
anything in particular?
 
@juanvan for(int i = 20; i < 20; i++)
 
tell me when 20 < 20
 
Hi
 
6:31 PM
Neva
 
I have a winform application. deployed in server. when i click the exe, the application is not opening\
but i see the process in task manager
 
@shakthi Windows Forms isn't for servers in general
it needs a local desktop to open up and display
 
@juanvan oh come on, is it joke or I became blind
 
yes in local too\
@Reed , Server means its a production test machine. win 7
 
try For(int i =0; i<20;i++)
 
6:33 PM
@shakthi What's the Program.cs / main file look like?
 
Its a new release of new version. old version is already present and i updated the dll with hotfixx
huh, its a large application reed, code base of 15GB+ everything is fine in all the other machines
this machine alone it doesnt open the application. i posted the dlls again, but still it doesnt
 
@ReedCopsey I want to make a very small game. The user interface would use WPF, so I can train myself with it. This part will be fine, but I don't know how to handle the multiplayer part. I searched for basic applications, like chatting apps, but I am lost. I saw exemples using WCF, UdpClient or TcpListener classes, and I am not sure what I should pick.
 
The English in this room is outstanding today.
 
@KendallFrey Thanks _/_
 
@juanvan thanks and sorry for this silly question :)
 
6:35 PM
@ReedCopsey I would like to do something simple, like being a host, or joining existing rooms thanks to an IP, but I don't know what I should use to achieve that level of simplicity.
 
@DavidKhuu Do you know how to send one byte across a network?
 
@ReedCopsey I did.
0
Q: Filtering a listview in Windows Phone 8.1 app

DemCodeLinesI am working on a Windows Phone 8.1 app in XAML/C#. I have a listview, whose item source is set to a CollectionViewSource called MusicSource. On the backend in C#, I have an ObservableCollection called source and the following code populates it by getting getting all the music files on the phone...

 
@DavidKhuu It really depends - networking, in general, isn't "simple" :) WCF is probably the easiest, once you grasp all of the configuration (and provided you don't try to self-host)
 
@ReedCopsey WCF exemples showed that a server was required to run, but launching a second application in addition to the game seems overkill for me...
 
@DavidKhuu A lot of games do that
But you can make a server and a client in the same process
 
6:36 PM
@KeremZaman it happens :)
 
Should I care about and learn CQRS ?
 
@ReedCopsey I saw an short exemple of a use of UdpClient class that involved other classes : Socket, IPAdress, IPEndPoint. Since I read some articles about UDP being unreliable, I wasn't sure I should stick to that.
 
Did they change the font in here?
 
What makes you say that?
uh, no?
 
@DavidKhuu server can be the game itself, too - doesn' thave to be a separate process
@DavidKhuu udp is common for games, but writing it all yourself is a lot more work than something like WCF
 
6:41 PM
Any ReSharper experts around?
 
@Darek Depends on how over architected you need to be ;)
 
@ReedCopsey That's what I thought
 
@ReedCopsey @KendallFrey Would WCF allow me to have a single executable that would allow the player to be a host (server) or to join a host (client) ?
 
I would think so
 
@DavidKhuu yes
@Darek It's potentially useful - it's just separating out things more than most people want/need to do. The concept is interesting, and very simple, though
 
6:42 PM
Why does ReSharper complain about "possible multiple enumeration of IEnumerable"
 
I will say, though, that a separate server process will be easier to implement
 
@Darek You're looping through an IEnumerable<T> (potentially) more than once
which is potentially dangerous/less efficient/etc
 
in a foreach loop ?
how?
 
code?
 
@Darek it could be using it in further LINQ queries more than once
or having a foreach then LINQ, etc
if you show your code, we can explain better
 
6:43 PM
@ReedCopsey @KendallFrey The game is a simple card games. There is no physics or realtime requirement. Is WCF a good choice ?
 
@DavidKhuu Sure - It's easier than writing the socket plumbing yourself (and more flexible)
 
@DavidKhuu In that case, forget UDP. WCF will work fine
 
            foreach (Entity busEnitity in businessEntities)
        {
    private List<BusinessFormDataEntity> RetrieveFormInformation(IEnumerable<Entity> businessEntities)
    {
        var busForm = new List<BusinessFormDataEntity>();
        foreach (Entity busEnitity in businessEntities)
        {
OK, so lets assume that businessEntities is a result of LINQ Where ...
 
I've been using WCF for months, and I still have no idea how to write WCF
3
 
would it enumerate the original collection many times over?
 
6:45 PM
@Darek One call wouldn't
 
@KendallFrey Ditto
 
@Darek That won't - but if you call it more than once, yes
 
@Darek - It would only enumerate the IEnumerable that resulted from the Where call
 
or if you use the variable you passed in other places
 
Hey guys
Hi @ReedCopsey
 
6:46 PM
It is so confusing. Need a decent plain and simple example, time for Google
 
@Darek what's the code look like where you call RetrieveFormInformation?
 
    List<BusinessFormDataEntity> formData = RetrieveFormInformation(entities);
I think I get it
if it is a in-memory enumerable, it really doesn't matter that much
but if it is from database or that service that @KendallFrey doesn't understand after few moths of working with it, than it would retrieve that information many times
 
Hi everyone
I want to learn the C# anyone know some good video?
 
@MarkLi - Start with hello world! :)
(canonical c# example)
 
that is every start - even xcode does it for you
 
6:54 PM
@MarkLi - dotnetfiddle.net/CsCons And there it is.
 
There is a bunch of them from Microsoft. But I like Pluralsight better. @MarkLi
 
@MarkLi - Now try to make your own message there, and after that, make a string message and try to pass it to the console method.
@MarkLi - If you get that far, you can start to read or watch material.
 
Tnx, But I know the asp.net and I watch one of the movie that was about C# and I saw that it's very similar to ASP.net and I know about 70% of php can IT help?
 
@MarkLi - Yes, knowing other languages helps because it means you understand things like methods, classes, and general design patterns.
 
yep I know them
 
6:58 PM
@MarkLi - If you are really intent on learning c#, buy a book
That is essentially all you will need to get really far into c#
@MarkLi - Out of curiosity, what problem are you solving that requires c#?
 
I don't know :D I just want to know about Programming
Is it really hard to write a c# program?
 
yes
 
Well, programming in general is language agnostic. So if that is all you are interested in, you should learn about language agnostic tools such as discrete math, algorithms, project documentation, online collaboration tools such as github, and advanced design patterns such as dependency injection.
 
I'm smellin' what your cookin'
 
this book you said C# in Depth, 3rd Edition can help?
 
7:12 PM
I LOVE THIS BOOK!
It is awesome!
and so is Jon Skeet
3
 
@MarkLi - If you read that book in its entirety you will be extremely knowledgeable on c#
But it wont cover the language agnostic topics I brought up earlier
Well at least not more than cursory
 
Is there anyway to buy the PDF version?
so I can read it in my laptop and I can copy the code to test them
 
@TravisJ, what's a good book for language agnostic topics?
 
@Nathvi - So many of them, which topic specifically?
 
@TravisJ, I don't even know
what are some good things to know?
 
7:25 PM
In software engineering, don't repeat yourself (DRY) is a principle of software development, aimed at reducing repetition of information of all kinds, especially useful in multi-tier architectures. The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." The principle has been formulated by Andy Hunt and Dave Thomas in their book The Pragmatic Programmer. They apply it quite broadly to include "database schemas, test plans, the build system, even documentation." When the DRY principle is applied successfully, a ...
KISS is an acronym for "Keep it simple, stupid" as a design principle noted by the U.S. Navy in 1960. The KISS principle states that most systems work best if they are kept simple rather than made complicated; therefore simplicity should be a key goal in design and unnecessary complexity should be avoided. The phrase has been associated with aircraft engineer Kelly Johnson (1910–1990). The term "KISS principle" was in popular use by 1970. Variations on the phrase include "keep it short and simple" and "keep it simple and straightforward". == Origin == The acronym was reportedly coined by Kelly...
"You aren't gonna need it" (acronym: YAGNI) is a principle of extreme programming (XP) that states a programmer should not add functionality until deemed necessary. XP co-founder Ron Jeffries has written: "Always implement things when you actually need them, never when you just foresee that you need them." Other forms of the phrase include "You aren't going to need it" and "You ain't gonna need it". == Context == YAGNI is a principle behind the XP practice of "do the simplest thing that could possibly work" (DTSTTCPW). It is meant to be used in combination with several other practices, such as...
I learnt a lot of things from Wikipedia
 
I really so sleepy and very thanks to @TravisJ
good bye everyone
 
@MarkLi Good bye
 
@TravisJ I wouldn't push people into "design patterns' if they're just learning and want to be language agnostic - most design patterns are just workarounds for flaws in the language :p
 
@ReedCopsey Workarounds for flaws in the language ? Could you give an exemple ?
 
@DavidKhuu Okay - an easy one for C# - the Observer pattern is really useless in C#, since it's built into the language as events - there's really no reason to learn the classic observer pattern if you're working in C#
it only exists in the GoF book because the popular languages of the day didn't have features to handle that
 
7:30 PM
@Reed Copsey, reed, are they flaws, or just not implemented features?
 
@Nathvi depends on how you look at it
 
@ReedCopsey We can't really say the observer pattern is useless because "it is built into the language" (as event), can we ? The old and classic implementation, using interfaces like Java, is useless in C#, sure, but its main concept (publishers, subscribers) is not ?
 
@ReedCopsey, I guess I don't see what you mean by flaw. I guess when I think of flaw, I think of something that is supposed to work, but doesn't, rather than something that doesn't exist.
 
the "Design Pattern" is based around all of the crap to make it work if you don't have it
 
@ReedCopsey, ok that makes sense.
 
7:34 PM
"Adapter Pattern" is another one - in reality, it's just a convoluted way to support currying
if your language is decent and that's built in, you don't need iot
 
currying?
 
@ReedCopsey, but if the method is implemented in the language, doesn't that give you less control over it?
 
In mathematics and computer science, currying is the technique of translating the evaluation of a function that takes multiple arguments (or a tuple of arguments) into evaluating a sequence of functions, each with a single argument (partial application). It was introduced by Moses Schönfinkel and later developed by Haskell Curry. Uncurrying is the dual transformation to currying, and can be seen as a form of defunctionalization. It takes a function f(x) which returns another function g(y) as a result, and yields a new function f′(x,y) which takes a number of additional parameters and applies them...
 
Read the last paragraph of this answer:
546
A: Does Functional Programming Replace GoF Design Patterns?

jalfThe blog post you quoted overstates its claim a bit. FP doesn't eliminate the need for design patterns. The term "design patterns" just isn't widely used to describe the same thing in FP languages. But they exist. Functional languages have plenty of best practice rules of the form "when you encou...

it summarizes it very well ;)
 
@ReedCopsey Isn't actually adapter supposed to decouple and shield two differents implementations, by making a single class that redirects calls from one object to another one ?
 
7:42 PM
@ReedCopsey, I can see how that makes sense, why write boilerplate code if it can be handled by the language.
 
@DavidKhuu Yeah - it's just adapting from one implementation to another. Just a "wrapper" that changes the API
 
just to be clear on what you mean, would you say it was a flaw not to have the shorthand { get; set; } in previous versions of c#? At least I think there were versions that didn't support this syntax, correct me if I'm wrong
@ReedCopsey
 
it's not a "flaw" - that, technically, didn't change how you'd design something
it was just a shorthand
I'd say .NET 1.1 had major shortcomings which meant extra "patterns" due to lack of generics, though, for example
 
I see
 
8:18 PM
@ReedCopsey you're still here, now I can't ask again ;)
:D
Lol jk
 
hehee
 
Sorry, had a meeting
@ReedCopsey - I meant language agnostic design patterns such as the ones described by Martin Fowler as you mention in the nod to GoF. While these are not important to implement, it is good to at least be aware of the history of design patterns and which are still used versus deprecated.
 
Is C# actually slower than C++ or are the "experts" who claim it stupid?
 
depends on what you're doing I think
 
Anyone know how to fix an FTP issue, everytime you connect to the domain it says "Unknown Host"?
 
8:27 PM
@DemCodeLines So much depends on how things are written
it can be slower (or faster) depending on how it's written in both languages, tooling used, system, etc
my thought is almost always that it's much easier to write reasonably well performing managed code - mostly because measurement is FAR simpler, and its easier to get the algorithms right
so, in general, I find that most people, given an average developer skill set, typically will write C# code that's as good or better (performance wise) than C++ code
but... if you know what you're doing, and want to take the time, you can make C++ much faster in many cases [which is why my company has huge portions of our code in C++ :) ]
 
when you need fine-tuned control over stuff like memory allocation and driver interaction, then C++ is the norm (e.g. for many game engines).
Although I'm not in the game business, so maybe that's a-changin'
Does Unity use C# just for scripting?
 
game engines are often fine in managed code in terms of perf - but the GC kills them :(
Unity is all C#
 
@gregg what does the url look like?
 
performance isn't the issue there - it's GC lag
 
answers.unity3d.com/questions/9675/… "The Unity runtime is written in C/C++ ... Wrapped around the Unity core is a layer which allows for .net access to core functionality. This layer is used for user scripting and for most of the editor UI."
 
8:33 PM
interesting
I had been told differently at one point (by somebody who works for Unity :p )
but that was a long time back
 
8:45 PM
posted on August 28, 2014 by Immo Landwerth [MSFT]

This post was authored by Ron Cain, a Software Development Engineer on the WCF team. In our previous post, we mentioned that some of the client components of Windows Communication Foundation (WCF) had been made available for .NET Native Windows Store apps in Visual Studio "14" CTP3. In this post, I will describe how to build a sample WCF Windows Store App using CTP3 and make it run using the .

 
Right at this moment, I hate variable scope
Holy crap, long weekend starts tomorrow
XD
 
@ReedCopsey I have a question...
 
Don't we all.
What does the fox say?
 
NO
The fox says NO
 
Your mom says yes.
 
8:54 PM
I've got the following:

            string[] allocate = server.Split('\\');
            string ftp = @"182.16.1.2/" + allocate.Last();
            Uri uri = new Uri(ftp);

But everytime I attempt to build the Uri it claims it is invalid.
 
!!nuke KendallFrey
 
@RodrigoSilva That didn't make much sense. Use the !!/help command to learn more.
 
@Greg naive: try adding ftp://
 
In the command prompt it errors though with ftp?
 
in what command prompt?
a command of some sort?
Maybe it has different syntax
 
8:56 PM
ftp hostname should be the command
 
Well, that worked.
@KendallFrey Thank you.
@KendallFrey Of course now when it reads this:

using(Stream response = request.GetResponse().GetResponseStream())

I receive:

The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
Any thoughts?
 
You're not doing HTTP, right?
 
No, I'm using FtpWebRequest
        private bool DownloadPod(string server)
        {
            string[] allocate = server.Split('\\');
            string ftp = @"ftp://182.16.1.2/" + allocate.Last();
            Uri uri = new Uri(ftp);
            var request = WebRequest.Create(uri) as FtpWebRequest;
            if(request != null)
            {
                request.Method = WebRequestMethods.Ftp.DownloadFile;
                request.Credentials = new NetworkCredential(@"dev", @"dev123");
                using(Stream response = request.GetResponse().GetResponseStream())
 
If nothing is going wrong on the client, can you inspect the server to figure out where the error is?
 
Once I hit the Stream that is when it throws that error.
 
8:59 PM
No, on the server
Is the server yours?
 
@KendallFrey ?
 
i.e. can you debug it?
 
Well, it is our IT departments. I'd have to speak to them.
 
I take that as a no
 
How could I debug it effectively?
@KendallFrey I wouldn't have access.
 
9:00 PM
what's the path you're passing?
 
It's a stupid IBM AS400, I hate that thing.
ftp://182.16.1.2/S123.jpeg
 
Does the file actually exist? Do you actually have permission?
 
Yeah, it actually exist.
@KendallFrey Does it look like it should be working?
 
does to me
 
Hm. Okay.
 
9:02 PM
My guess is you misspelled the name, or specified the wrong directory, or don't have permission
Can you browse to the file in a browser?
 
Yeah.
brb
 
9:57 PM
Hey guys.
 
It really irritates me when someone makes a comment on the value an answer I put on SO 5 years ago.
 
Haha.
 
"This isn't an answer it should be a comment."
 
Can you help me a bit?
 
I don't think comments were available 5 years ago.
 
9:58 PM
Really?
 
@FatalSleep - Ask your question. If someone can help they will.
 
Goes to show, don't comment on anything past 6 months old.
 

« first day (1412 days earlier)      last day (3552 days later) »