Windows Phone Developers

Showing posts with label filepath argument is missing. Show all posts
Showing posts with label filepath argument is missing. Show all posts

Sunday, July 20, 2008

Overload resolution failed because no accessible 'New' can be called with these arguments:

'Public Sub New(handle As Microsoft.Win32.SafeHandles.SafeFileHandle, access As System.IO.FileAccess)': Argument not specified for parameter 'handle'.

'Public Sub New(handle As System.IntPtr, access As System.IO.FileAccess)': Argument not specified for parameter 'handle'.

'Public Sub New(path As String, mode As System.IO.FileMode)': Argument not specified for parameter 'path'.


Occurs because the filepath argument is missing

Dim FS As FileStream = New FileStream(, FileMode.Open)

Solution

Dim FS As FileStream = New FileStream(“c:\sample.txt”, FileMode.Open)


Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon