Re: Can't write to folder
- From: "David" <david.colliver.NEWS@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Oct 2008 22:07:00 +0100
To debug without running via studio, click Tools / Attach to Process.
Select the aspnet_wp process (hover over it first to ensure you are
debugging the correct version. On my machine, I have 1.1 and 2.0) I also
ensure in the attach to block that SQL Server is not selected. (Click the
select button to remove it).
Click Attach.
Debug as normal.
Personally, I prefer this way of handling it. I don't like the start button
starting up a browser and when you click stop, the browser closing again.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Reggie" <No_Spam_chief123101@xxxxxxxxx> wrote in message
news:uWmr3BpMJHA.3744@xxxxxxxxxxxxxxxxxxxxxxx
"Reggie" <No_Spam_chief123101@xxxxxxxxx> wrote in message
news:%23ZCvZNoMJHA.3744@xxxxxxxxxxxxxxxxxxxxxxx
Reggie
"Alexey Smirnov" <alexey.smirnov@xxxxxxxxx> wrote in message
news:7dbd83f5-c2b6-4f97-987d-8b11407fb89e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 18, 10:26 pm, "Reggie" <No_Spam_chief123...@xxxxxxxxx> wrote:
IIS_IUSRS has all the permissions to write to the folder. Also, Network
Services and many others I have given full rights to (only to try and
get it
to work), Nothing has worked yet. I'll keep trying.
Maybe there is another problem then. Did you get an error about
insufficient write permissions, or the code is not working as
expected? if the latter is the case can you post the code? I don't see
anything what copies a file in the snippet you sent earlier
Dim xConnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=" & Server.MapPath("WSMDDT_Old\MDB_Temp\" &
strFile)
& ";" & _
"Extended Properties=""Excel 8.0;HDR=TRUE;IMEX=1"""
' create your excel connection object using the connection
string
Dim objXConn As New OleDbConnection(xConnStr)
objXConn.Open()
No error message except stating that the file couldn't be found. Here's
the code. Everything runs fine when running from local except when I try
to copy a file to this folder.
'Import Excel file
If Not inpFileUpNIIN.PostedFile Is Nothing And
inpFileUpNIIN.PostedFile.ContentLength > 0 Then
strFileName =
System.IO.Path.GetFileName(inpFileUpNIIN.PostedFile.FileName)
strBaseDir = Server.MapPath("/MDB_Temp/")
Try
inpFileUpNIIN.PostedFile.SaveAs(strBaseDir & strFileName)
pathandfile = strBaseDir & strFileName
Catch Exc As Exception
Response.Write("Error: " & Exc.Message)
Exit Sub
End Try
Else
Response.Write("Please select a file to upload.")
Exit Sub
End If
Got it somewhat figured out, but don't know why. If I run it using VS
server and use the setting Server.MapPath("/WSMDDT/MDB_Temp/") it says it
Could not find a part of the path
'C:\inetpub\wwwroot\WSMDDT\WSMDDT\MDB_Temp\ExcelImport_rep.xls'. If I us
VS and set it to Server.MapPath("/MDB_Temp/") it runs fine but then it
doesn't run when using the local server. I don't know why. I simply
setup VS to run it using IIS server with
Server.MapPath("/WSMDDT/MDB_Temp/") and it now runs except I can debug
cause integrated windows authentication isn't enabled. I'm using forms
authentication and not sure how to setup so I can debug.
.
- References:
- Can't write to folder
- From: Reggie
- Re: Can't write to folder
- From: Alexey Smirnov
- Re: Can't write to folder
- From: Reggie
- Re: Can't write to folder
- From: Alexey Smirnov
- Re: Can't write to folder
- From: Reggie
- Re: Can't write to folder
- From: Reggie
- Can't write to folder
- Prev by Date: Re: User Control not showing properties
- Next by Date: Re: User Control not showing properties
- Previous by thread: Re: Can't write to folder
- Next by thread: Re: Can't write to folder
- Index(es):