Fso Fails When Connecting To Mapped Drives From Asp On IIS 6.0
I have an asp page (see source code below) running on IIS 6.0 on
Win2003 Server that tries to get file and folder information on a
Novell Server. I am able to successfully connect to the share on the
Novell box if I use the UNC path. But, unfortunately, I need to have
the mapped path for my application.
I created a simple vbs script and
saved it to the server desktop and run it to verify connectivity to the
Novell box. I am logged in to the server with the same user as set up
in my website as the anonymous user. The vbs file runs perfectly. But
as soon as I move the code into an asp file, I get the following error
"Microsoft VBScript runtime error '800a004c' Path not found". If I
go into my asp file and change the path to the novell box to a UNC
format, then it works. Below is the asp file: Code:
I'm running two servers, the machine running IIS that is running my ASP script uses the same IUSR account and password as the folder that I am trying to access through a mapped drive. Permissions should be good.
here is my code:
Set objFile = Server.CreateObject ("Scripting.FileSystemObject") objFolder = "M: estfolder" Set MyFolder = objFile.GetFolder(objFolder)
if I take the same directory path "M: estfolder" and paste it into explore it finds the path without a problem...
I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user clicks on the "Browse" button on the "<input type="File"... control and selects a file located in one of many possible mapped drives. I want to save the location of the file as a path as you would see when mapping a drive. For instance, "serverfolders... instead of the mapped path of "P:foldersubfolder... etc. Therefore, when a user views the document they can click on the link and get access to the file regardless of how their drives are mapped. Oh, I need to be able to do this from classic ASP.
I attempted to use the FileSystemObject object but cannot find the method that gives me this information.
I need to know how and if its possible to have a vbscript run when a user logs onto my pc. I need the script to connect to my mapped network drives on my pc since you have to double click under My Computer in order to connect to the drives. I want this automated as much as possible.
I currently use a batch file under the startup folder but wanted the process to run behind the scenes instead of a dos box popping up.
I have an ASP app that calls an object on the web server which goes out to a mapped network drive to retrieve a file from a W2K file server. My current web server is a W2K. The share on the file server as well as the NTFS permissions on the server are wide open (Everyone Full Control) but still require me to run the web server under an account other than the IUSR account for the object to be able to access the file. None the less, it works fine.
However, when I run this same app on a W2K3 server, it can not access the file from the exact same location. Seems to me I need to tell the web server at a different level what account to run at or something. It doesn't appear that the W2K3 web server's account has permission to access the file despite the fact I am using the same account as the W2K. Anyone have any ideas? The goal is to get the W2K3 web server to successfully access a remote file on a W2K file server without any permissions problems. Again, the share and NTFS on the file server are wide open.
I have mapped a drive in our IIS, but I don't know how to connect to it from ASP. I would like to place files (like images files) to the mapped drive T:XXXYYY and display files from there.
I've tried using Server.MapPath, but when I put T:XXXYYY as parameter, it will say it requires virtual path but not physical path.
Then I tried using:
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject") Set MyFolder=MyFileObject.GetFolder("T:XXXYYY") but it will say Path not found.
I mapped dirve in a another computer as K: and I need to listout folders in a asp page that mapped drive. So I was checked that drive is in ready state using IsReady property, but it will return false. But when I was tried in VB application using same code it work perfectly. So any one know what can be happned.
<% set fso = CreateObject("Scripting.FileSystemObject") set d = fso.GetDrive("K:")
if d.IsReady Then response.write " Drive " & d.driveletter & " is Ready " else response.write " Drive " & d.driveletter & " is not Ready " end if %>
I've got some ASP-code that uses FileSystemObject to move user home directories on a DFS-root. When I run this code on the original Win2000/IIS5-server, it works fine. But when I try it on a Win2003/IIS6-server, I get the following error:
-2147023545
which I found can be translated as follows
=> 0x80070547 => 1351 => "Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied." I've tried to run IIS in IIS5-isolation mode, but get the same error.
i mtrying to run a message service using net send via our intranet - basically the user selects the poeple on the network who they want to send a message to from a drop-down list on a form and on submit a loop is run - here's a snippet of the code (inside a for loop)
(Note : I create the server_shell object outside the loop and set it to nothing when the loop has finished - also username is basically Server Variable Logon User) The problem happens when all users are selected - it sends it to a few people and then bombs out and then i get a load of application errors - cmd.exe or net.exe failed to initialize on the server.yet when tested for smaller numbers of users it runs fine
after publishing a web to iis, asp pages based on a database fail to work. the browzer starts loading such page and never does- at some point the status bar stops and the page never loads without displaying any errors. the browzer shows that it is busy all the time.
Greetings, I'm using simple code to send customers an email after they submit a helpdesk ticket. I wanted to copy myself on the emails, but when I enter myMail.BCC or myMail.CC, it fails to send. If I comment out these lines, the message sends successfully. I've made sure the bcc or cc addresses are valid. I changed the names in my code to protect the innocent.
CreateFolder method does not produce a result from IIS. I tried many things including changing file permissions, web server permissions etc. to no avail.
I have an ASP 2.0 secured website that works fine.My problem is that I need to run this "mini site" inside a frame.We have a domain hosted website and I'm redirecting the frame contents to our IIS server and my MD doesn't want the customers seeing a "messy" IP address, so the solution was to run the mini-site inside a frame. However, despite the login screen being displayed, when a user logs in, theuser.identity.name is null and roles are not set.
I have an upload script that seems to fail in Firefox and Mozilla based browsers when it hits the .SaveToFile Method. It works fine in IE. Is this a documented bug? Is there a work around?
I am attempting to have an asp page call a batch file. I had it working, I was high on life and then I decided to log off the server. Once I did, the code would no longer work. When I logged back onto the server, I saw:
'The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.' Code:
I'm experiecing a problem with file uploads from ASP pages.
On a Windows 2000 - IIS 5 server we're running an ASP Classic application that features an upload form for files of great dimensions (100+MB). Problem is, when we try to upload a file exceeding 3MB we retive almost immediatly a message such as 'The page cannot be displayed'.
We do not even reach the page that contains the code for file managing; when we click on the submit button in the form with enctype multipart form data the application ends and the error is visualized.
For files under 3MB there are no problems at all.
The FAQ of our upload third party component (ABCUpload by Websupergoo) state that we could either have problems with our proxy or we could be stopped by a wrong URLScan setting: we do not have any proxy nor URLScan is installed on our server.
I may add that all the configuration of the script timeouts on IIS are correctly set.
I have a big asp file that has an error under certain conditions -- totally repeatable. However, it only fails when I set response.buffer = True at the top. WHen I set it False in order to debug it, it works every time! I even set it to True, but did a .Flush just before the error, and the error won't happen.
It only happens when response.buffer is True and no .response.flush is issued.
The error is a string variable turns-up empty and crashes a function requiring a date. I could test for this before the line where it crashes, but where did my data go? Why is the buffer affecting it?
Can anyone tell me why this code doesn't work? The original came from an example in this group, but was modified slightly when the original failed to return message details.
I am able to connect to the server and see the number of messages on the server, but message details (sender, subject, body, etc.) are not returned....
how to write a text file to a mapped drive or network drive. In my script, I’m currently writing the text file to a local folder on the server temporarily until I can figure this out.
So far I have tried to use the mapped drive letter, network path, etc. to get this working. I believe all the permissions are in order (I hope) as well. No matter what I have tried, I just get a Path Not Found script error. I know this has to be possible, just I’m missing something … probably something right under my nose but I just can’t figure it out.
I have a db table with 3 rows (ID, date, points). How can I in my script tell that ID 1=Mike and ID 2=Thomas and ID 3=William without making a new field in my table?
I am trying to connect to remote mySQL db and getting "Data source name not found and no default driver specified" My connection string looks like this -
Conn.Open "Driver={mySQL ODBC 2.50 Driver}; Server=Station1; Port=3306; Option=4; Database=cds; Uid=andy" Is there anything wrong with it? I can't figure it out
how to fetch values from a specific record from access in asp.and how to compare data entered in a form with data in record and if comparison returns true then how to open desired page.
I have a form that submits the information to a SQL database. The form has a two radiobuttons name="Cheese" with value="yes" OR value="no" and then collects contact info.
The form submits to the SQL DB and I want to create a display page that will show the form and sort the form based on the name="Cheese" yes or no.
All yes values will display form info under the yes column.
All no values will display form info under the no column.
So there are two columns displaying the information based the results of the SQL row name=Cheese. How do I connect to the DB and "sort" the info based on this value and dynamically show this information on my site? Code:
I have just purchased my domain name, and subscribed to a hosting service that supports ASP. I tried to copy my asp files over to my new domain, and I get the following error:
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
The line that is referenced is:
MyConnection.Open DSNName
..here is the code I've been using on DomainDLX (free) to connect to the database ...
I am using a DSN connection created using Dreamweaver and an ASP page. The connection works fine on the local computer (i click the "test" button) but when I upload the files to my server I get the following error:
"Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/mkoenig/survey.asp, line 120
and the line that it is referring to:
MM_editCmd.ActiveConnection = MM_editConnection
my editConnection is set to QUERY which is a DSN variable pointing to the database on my hdd?