15,912,932 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by agrace27 (Top 5 by date)
agrace27
5-Feb-11 0:37am
View
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
If My.Computer.FileSystem.FileExists("\\192.168.0.53\30.01.2011\ALL-02022011_03022011HQ_ATTEND.DMP") = True Then
MsgBox("File Exists")
Else
MsgBox("file doesnt exist")
End If
End Sub
i alre havin the file in this server IP given above, but when debug not going in for fil exists, this running from client pc
agrace27
27-Jan-11 4:11am
View
i was extended my time by weekend.i done the network sharing and security options checked 2 box..which is the best method using impersonation or this method, i need the result kindly spare time and get the format to send to another pc/laptop using vb.net coding
how about FSO FileSystemObject CAN this copy the files to the destination..!!!
thank sir for giving prompt replies today.and also sorry for rushing!!!
agrace27
27-Jan-11 2:45am
View
FileUpload1.PostedFile.SaveAs("\\192.168.1.102\tdata\GN_APPACCESS.DMP")
Server Error
The network path was not found.
agrace27
27-Jan-11 1:59am
View
FileUpload1.PostedFile.SaveAs("\\192.168.1.102\c:\tdata\GN_APPACCESS.DMP")
The given path's format is not supported.
Server Error in '/HQSLEX' Application.
The given path's format is not supported.
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.NotSupportedException: The given path's format is not supported.
Source Error:
Line 130: ' File.Copy(str1, Path.Combine(ls_backupthumb2, Path.GetFileName(str1)))
Line 131:
Line 132: FileUpload1.PostedFile.SaveAs("\\192.168.1.102\c:\tdata\GN_APPACCESS.DMP")
Line 133:
Line 134:
Source File: c:\inetpub\wwwroot\HQSLEX\data\ManualTollDataUpload.aspx.vb Line: 132
Stack Trace:
[NotSupportedException: The given path's format is not supported.]
System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +7486447
System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +278
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +87
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +46
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) +637
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
data_ManualTollDataUpload.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\HQSLEX\data\ManualTollDataUpload.aspx.vb:132
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.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
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
agrace27
27-Jan-11 0:57am
View
thanks for reply.
but how can i copy the particular uploaded file into another laptop or pc(my co-staff) whose ip-192.XXX.x.xxx
\\192.168.1.111\c:\dump\xxx.dmp
os - microsoft windows xp Professional version 2002 service pack2
can u help me the coding for this ...pls its needed urgent today