Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error AS Follow
Any Help Would Be Appreciated

Thank You.

-----------------------------------------
Server Error in '/' Application.
--------------------------------------------------------------------------------
Logon failure: unknown user name or bad password.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.IOException: Logon failure: unknown user name or bad password.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[IOException: Logon failure: unknown user name or bad password.
]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7714920
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +61
System.IO.FileStream..ctor(String path, FileMode mode) +55
System.Web.HttpPostedFile.SaveAs(String filename) +99
System.Web.UI.WebControls.FileUpload.SaveAs(String filename) +23
MyImageFirst.Store.stores.manager.LogoUploader.imgBtnAddUpdate_Click(Object sender, ImageClickEventArgs e) in d:\projects\myimagefirst\myimagefirst\store\stores\manager\logouploader.aspx.cs:345
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Posted

Looks like your using the FileUpload control to post to your site.

Make sure ASPNET user (or whatever using your web server process is running under) has write permissions to the directory you are uploading to.
 
Share this answer
 
Comments
suhailnoorpawane 29-Jun-11 6:56am    
Buddy u saved my day today Thanks a Lot.

Actually The Drive Which have been mapped Gives only Read permissin to us
And thats why it was giving error.

Will Remember u name for long
Thanks again.
koolprasad2003 29-Jun-11 7:45am    
Good Answer, countered +
I have no clue what are you here for? :confused:

You share an error stack trace that clearly says "IOException: Logon failure: unknown user name or bad password." Error in itself is self explanatory and you need to make sure that the security credentials are correct in order to access the file that you want to.
 
Share this answer
 
Comments
radu.cosoveanu 2-Mar-12 7:00am    
Hi,

Is it possible to have this error when, in an AD you change the password of the account under the program is runnig.
It could take the credentials from cache.

Thanks,
Radu Cosoveanu

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900