Click here to Skip to main content
15,903,856 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Facebook login Pin
Kornfeld Eliyahu Peter16-Jun-14 1:16
professionalKornfeld Eliyahu Peter16-Jun-14 1:16 
QuestionUploaded files are excluded from the folder Pin
HumaMunir10-Jun-14 22:54
HumaMunir10-Jun-14 22:54 
AnswerRe: Uploaded files are excluded from the folder Pin
Kornfeld Eliyahu Peter11-Jun-14 1:15
professionalKornfeld Eliyahu Peter11-Jun-14 1:15 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 20:04
HumaMunir11-Jun-14 20:04 
GeneralRe: Uploaded files are excluded from the folder Pin
Richard MacCutchan11-Jun-14 21:51
mveRichard MacCutchan11-Jun-14 21:51 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 23:09
HumaMunir11-Jun-14 23:09 
GeneralRe: Uploaded files are excluded from the folder Pin
Richard MacCutchan12-Jun-14 0:34
mveRichard MacCutchan12-Jun-14 0:34 
GeneralRe: Uploaded files are excluded from the folder Pin
jinzai16-Jul-14 23:46
jinzai16-Jul-14 23:46 
Greetings.

I think I see what the issue is here. The Solution Explorer does not work like Windows Explorer -- it looks like Windows Explorer -- BUT....

It is only going to show you files that you put there using Visual Studio. Try right clicking on that folder and select Refresh Folder. If those uploads worked -- the files will show up after you refresh. You cannot expect Visual Studio to include a file in your project just because it is in a folder in your project -- you must explicitly do that -- either by adding them using the Solution Explorer -- or, by refreshing the folder after this upload process.

Also -- look at your try/catch again. You might just as well not use try/catch if you cannot tell that you threw an exception -- the catch block does nothing -- it returns in the same manner that the normal path does -- so all you have gained by using try/catch -- is that your function runs a little more slowly and .NET thinks that you handled the exception which makes it silent -- and likewise undetected.

EDIT: Having read through the entire thread -- let me say a few things -- that are my opinion from many years of experience -- not all of it was wise, either.

This is your project -- you do what makes sense to you -- but -- be very careful about assumptions that you make. I can see you possibly watching the process...looking at Solution Explorer -- and geting frustrated because your files are disappearing -- but, they are not disappearing -- they are simply not part of your project -- so they are not being displayed. That is why you are getting blowback from others about it -- they are not part of the project being built by Solution Explorer -- they are probably best described as input/output -- a product of the project, I suppose. So...I do not disagree with your folder structure -- it looks well thought out. However, you are making the assumption that Solution Explorer will list the content of the folder with no assistance from you -- and I learned that you must refresh that folder by making the same assumption -- so, I am telling you what I
learned so that you can have your question answered and move on to writing your code.

About the catch thing -- I also tend to litter my try/catch blocks and sometimes don't have much in the catch, but at a minimum I will put a breakpoint on a line of code in the catch, so that I still know that an exception occured. I am sure that you know -- if the permissions were not proper, and exception would have occurred -- access denied, I think -- right? Are you aware of what the Exception contains?

ex.Message = the Exception text and ex.StackTrace is the line where the exception occurred. I find that very useful -- I know many of the exceptions that occur in a file upload process -- because I sit on that catch block and wait for them -- and then I look at them. Another thing I want to share is this -- in the Windows SDK are the include files for many Windows DLLs -- The error codes are in those include files -- even a key to unraveling the HRESULT and other 32 bit returns that will tell you much more about exceptions and even successes. When I started taking the time to figure an exception out -- I spend much less time doing things that do not solve my problem and I learn how to write much more robust code that way. I was not born with that ability -- I got there by doing what I am recommending to you right now. I am sure you are a 'crackerjack programmer' (A compliment -- not an insult) -- and I would like to tell you some things to use as tools to make your code even better -- still your code -- just better. Wink | ;-)

I understand how you might feel offended -- you are just trying to get a 'fresh set of eyes' put on it to assist you -- that is what I am trying to do, here -- but...

I am a developer, too -- and I hope that your problem has been solved because we all run into this sort of thing from time to time and if we can help one another out instead of making further assumptions and ranting about things that are not the problem -- we all benefit from that.

I wish you well.

modified 17-Jul-14 6:15am.

AnswerRe: Uploaded files are excluded from the folder Pin
Kornfeld Eliyahu Peter11-Jun-14 23:07
professionalKornfeld Eliyahu Peter11-Jun-14 23:07 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 23:24
HumaMunir11-Jun-14 23:24 
AnswerRe: Uploaded files are excluded from the folder Pin
Kornfeld Eliyahu Peter11-Jun-14 23:57
professionalKornfeld Eliyahu Peter11-Jun-14 23:57 
AnswerRe: Uploaded files are excluded from the folder Pin
Bernhard Hiller11-Jun-14 20:55
Bernhard Hiller11-Jun-14 20:55 
GeneralRe: Uploaded files are excluded from the folder Pin
HumaMunir11-Jun-14 23:03
HumaMunir11-Jun-14 23:03 
QuestionHow third party templates can help in developing new application Pin
Rishihar Subashchandran9-Jun-14 23:48
professionalRishihar Subashchandran9-Jun-14 23:48 
AnswerRe: How third party templates can help in developing new application Pin
Kornfeld Eliyahu Peter10-Jun-14 0:04
professionalKornfeld Eliyahu Peter10-Jun-14 0:04 
GeneralRe: How third party templates can help in developing new application Pin
Rishihar Subashchandran10-Jun-14 17:32
professionalRishihar Subashchandran10-Jun-14 17:32 
AnswerRe: How third party templates can help in developing new application Pin
jinzai17-Jul-14 0:28
jinzai17-Jul-14 0:28 
Questioninline editing in a gridview in asp.net mvc web application Pin
Member 108357177-Jun-14 16:21
Member 108357177-Jun-14 16:21 
QuestionGEO-FENCING Pin
pawan sen 1039801030-May-14 20:35
professionalpawan sen 1039801030-May-14 20:35 
QuestionRe: GEO-FENCING Pin
ZurdoDev4-Jun-14 5:32
professionalZurdoDev4-Jun-14 5:32 
AnswerRe: GEO-FENCING Pin
Member 108647234-Jun-14 9:34
Member 108647234-Jun-14 9:34 
SuggestionRe: GEO-FENCING Pin
Richard Deeming5-Jun-14 6:42
mveRichard Deeming5-Jun-14 6:42 
QuestionApache to Tomcat to Apache to cgi per transaction accounting Pin
Ernst Iliov Stavro Blofeld29-May-14 11:11
Ernst Iliov Stavro Blofeld29-May-14 11:11 
QuestionNewbie question about centering text in a header that has an image Pin
Max Huerta28-May-14 5:48
Max Huerta28-May-14 5:48 
QuestionUpdate existing desktop C# application as a webservice Pin
aks.25-May-14 23:32
aks.25-May-14 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.