| Creating and sharing directories (4 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi, How can I using VB.Net create a directory in a remote computer assuming that i have the privileges. Im using Directory.CreateDirectory(\\computer\c$\testing file://\\computer\c$\testing ) When the computer is my machine it works when it is another machine it says that cand find the path. Am i doing this the right way? How can i share a directory trough VB.Net? Thanks in advance. Filipe Portuga... |
|
| File upload question (5 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngibuyspy] to [ngfx io] by Yannick Smits dotnet@stepcompany.com Hi, I'm trying to write my own File Upload module for the Portal and am a little confused about WHERE to put the file. Currently I have: InputFile.PostedFile.SaveAs("c:\\Temp\\" ParsedFileName); Which works great to save the file in c:\Temp. But I want to save files in the images subdirectory of my portal and I'm not su... |
|
| The process cannot access the file because it is being used by another process (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Copied from [aspngvb] to [ngfx io] by Let the good times roll bbilbro@hotmail.com I am trying to copy a file that was uploaded to a temp directory and when I try to copy it I get the following error: "The process cannot access the file because it is being used by another process" I have closed all associated objects with this file and I am just trying to move it to a new folder. Here is my code fr... |
|
| Ftp in .net (datasocket or webrequest) (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| hi, i found some helpful code for accessing a ftp in passive mode using createdatasocket... but i need to write something that reads files from an ftp using active mode. what is the best way, low level using datasocket, or derivating something from the webrequest class? also, i understood that in active mode you must supply your ip to the ftp server and listen for its response. that would prevent ... |
|
| XMLHTTP equivalent in .NET (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by Tony Stark IronMan@aspelite.com I'm trying to remote an SQL query to SQL Server and am looking to do a POST and get the xml. What is the .Net equivalent? Thanks, Tim Join the world s largest e mail service with MSN Hotmail. http://www.hotmail.com |
|
| Sending ASCII data to a UNC printer path in .NET (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Hi, Can somebody point me to some documentation or sample codes on how to send ASCII data to a UNC printer path? The data are label printer commands in ASCII text. I tried using a FileStream object but I need to supply it with an IntPtr handle of the printer which I don't know how to get. In Platform SDK I can use the function "CreateFile" to get a handle but I don't know the .NET equivalent. Any ... |
|
| Writing EventLogs to Text File (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Copied from [aspngfreeforall] to [ngfx io] by Tim Musschoot Tim.Musschoot@rug.ac.be I've written a Windows Service using the .NET framework. I want to write EventLogs to a text file, rather than to one of the EventLogs themselves. I'm aware that this is something to do with using the TextWriterTraceListener class which redirects output to an instance of the TextWriter class or to anything that is ... |
|
| Asp.Net Permission Issue with Sockets (6 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I'm trying to ping a router in ASP.NET and use System.Net.Sockets to do this, however I get the following error: Exception Details: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions Source Error: Line 18: Dim socket As Socket New Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp) Stack Trace: [SocketException ... |
|
| Temporary filename creation (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Hi, Can somebody point me as to what class I need to use to generate temporary filename in .NET? Thanks, Raul Vallestero |
|
| Encrypting Traffic between sockets (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| I have written two applications, a client and a server, which are communicating with each other using sockets, and communicate by XML over TCP. I am not using HTTP or IIS for this communication. I am now trying to encrypt the traffic between them but am not sure what I should incorporate in order to encrypt the traffic between them? I am considering SSL but do not know much about SSL and am not su... |
|
| FileStream.Position (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngcs] to [ngfx io] by Tony Stark IronMan@aspelite.com Has anybody made any sense of the Position property of the FileStream class? If I've just performed my first StreamReader.ReadLine from the start of an ascii carriage return line feed file and lets say that equated to 100 bytes including the CRLF, then surely the Position property should read 100 or 101? However, it seems to be b... |
|
| Renaming a file in .Net (3 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Hi all, I have a comma delimited file named general.csv. I want to rename this file to generalx.csv. How do I do this in VB.Net from my ASP.Net page? Thanks, Bob |
|
| File Mime Type (4 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Is there any way to get the mime type of a file with the framework classes? Any other ways of getting this? Thanks, Ryan [This E mail scanned for viruses by Declude Virus] |
|
| Writing the results of a query to a file (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngdatagridrepeaterdatalist] to [ngfx io] by Marcie Jones marciejones@yahoo.com I currently have a dynamic query builder in ASP that the user can display the results of the query in a table or dump to a double quote qualified, coma delimited file. (to save as a .csv or whatever) I'm in the process of rebuilding the application in .NET, but have not be able to figure out how to write ... |
|
| Array list of attributes (4 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Array list of attributes /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I was helped by Mitch with this array list that is bound to a data grid now here is the array ... |
|
| Strinp the name (6 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV "Content Type" CONTENT "text/html; charset us ascii" META NAME "Generator" CONTENT "MS Exchange Server version 5.5.2652.35" TITLE Strinp the name /TITLE /HEAD BODY P FONT SIZE 2 Hi all, /FONT /P P FONT SIZE 2 You know you get the files full path then you get the files name on its own e.g. /FONT /P P FONT SIZE 2 Path: \\serve... |
|
| .net way for HTTP form POST with redirection/navigation? (7 replies) |
| ASPFriends.com 'ngfx-io' list |
| I've been doing screen scraping in .net for some time. I have a need to actually post data with the .net API along with a redirection to that page. I will be redirecting from an ASP.net site to an ASP site that requires a login. The data will be a form post to the ASP site with the user name and password. I found the old school way to do this. How would I go about doing this via the ASP.net API? h... |
|
| Html i think (4 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by Marcie Jones marciejones@yahoo.com !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Html i think /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I have some code that retr... |
|
| File type (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE File type /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 I thought I could use GetType.FullName of the system.io.fileinfo namespace to retrieve the file type what can... |
|
| Copying Folder (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by Clint Barton hawkeye@aspelite.com Hi, Can anybody direct me to sample code for Copying Folder. Thanks Srinivas |
|
| append file at the BEGINNING? (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| I want to open a text file and insert some text at the BEGINNING of the file is opposed to appending beneath the existing text. Can this be done? dc |
|
| Directory issue (5 replies) |
| ASPFriends.com 'ngfx-io' list |
| Any ideas what is wrong here? I was expecting a Security Exception because I haven't set up the perms on this directory but instead it is throwing the below exception. If I create a directory info pointing at the root it states it exists (obviously). So why the exception? Thanks, Ryan Code: Dim dirInfo As System.IO.DirectoryInfo dirInfo 3D System.IO.Directory.CreateDirectory(Server.MapPath("/" & "... |
|
| Creating a remote DIr (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi all, One thing I have noticed with my problem with trying to create a dir on a remote machine share is that no matter what remote machine I use it does not want to create the dir there it keeps sayin "Can not find part of path" \\SERVER\SHARE\ file:///\\SERVER\SHARE\ " and if there is anything after that it just ignores e.g my path \\SERVER\SHARE\MYFOLDER file:///\\SERVER\SHARE\MYFOLDER . Any i... |
|
| Permissions (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV "Content Type" CONTENT "text/html; charset us ascii" META NAME "Generator" CONTENT "MS Exchange Server version 5.5.2652.35" TITLE Permissions /TITLE /HEAD BODY P FONT SIZE 2 Hi all /FONT /P P FONT SIZE 2 I am trying to save a file to a shared folder on another machine now what permission does that folder need to have? /FONT ... |
|
| Upload (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Upload /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all , /FONT BR FONT SIZE 3D2 In the .Net SDK there is an example for uploading files now I cant seem to get that to work in the buttons click ... |
|
| System IO Directory.create (5 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV "Content Type" CONTENT "text/html; charset us ascii" META NAME "Generator" CONTENT "MS Exchange Server version 5.5.2652.35" TITLE System IO Directory.create /TITLE /HEAD BODY P FONT SIZE 2 Hi all, /FONT /P P FONT SIZE 2 I a web app I am trying to do the following: /FONT /P BR P FONT SIZE 2 Dim Jobid as string /FONT BR FONT S... |
|
| Unc name problems (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Unc name problems /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all, /FONT /P P FONT SIZE 3D2 When I try /FONT BR FONT SIZE 3D2 Dim Trackpath as string /FONT BR FONT SIZE 3D2 Dim Jobid as String ... |
|
| Resolving DNS names with DNS.GetHostByAddress (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I'm having quite a bit of trouble getting the System.Net.Dns class working in my asp.net application. Below is the simple line of code causing me grey hairs: Response.Write("host name:" Dns.GetHostByAddress(Request.UserHostAddress).HostName); Hitting this page from the internal network resolves the machine name, but hitting this page from the internet, outside of the local network, results in the ... |
|
| Could not find a part of the path (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| !DOCTYPE HTML PUBLIC " //W3C//DTD HTML 3.2//EN" HTML HEAD META HTTP EQUIV 3D"Content Type" CONTENT 3D"text/html; charset 3Dus ascii" META NAME 3D"Generator" CONTENT 3D"MS Exchange Server version 5.5.2652.35" TITLE Could not find a part of the path /TITLE /HEAD BODY P FONT SIZE 3D2 Hi all , /FONT /P P FONT SIZE 3D2 I don't understand this..... /FONT /P P FONT SIZE 3D2 Firstly when I specified the n... |
|
| System IO (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Hi all, Where can I read up about the System.IO I need a indepth view on it. Thank you Carlos This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed, whose privacy should be respected. Any views or opinions are solely those of the author and do not necessarily represent those of the Trencor Group, or any of its ... |
|
| writing a log file (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hello I want to make a file, .txt where i can write a event log. I want to write updateinfo (username, time, date etc) for all users that update my db. Are there any with an example of this... thanx Eivind |
|
| SV: Sytem.IO (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi all 20 I am trying to use System.io to upload a file to a different server than my web server but I cant find how to specify/hard code the location. 20 Can some one show me.... And what permissions are needed on that folder/drive 20 Thank you 20 20 Carlos This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed... |
|
| Caching woes (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngescalate] to [ngfx io] by Dana Coffey denigma@bellsouth.net Hi! I tried to ask this on [aspngcache] and got no answer whatsoever. original Message I have an aspx that streams images to the client. These images are created dynamically, so I decided to cache. On my dev machine (Beta 2) and on the QA server (Final), the cache works like a charm. However, when I add exactly the same C... |
|
| File access from within a function. (4 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngcs] to [ngfx io] by devin devinr@drone interactive.com I need to create a function that can read files from a remote server. My access will be via FTP login. Is there a way to do this from within a function, maybe an FTP class or something? |
|
| BinaryFormatter Version incompatibility (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by devin devinr@drone interactive.com Greetings, I am attempting to use a MemoryStream and BinaryFormatter to serialize all the state of an object. It appears to serialize just fine, but deserializing is a problem. I get "BinaryFormatter Version incompatibility" on the Deserialize call of the BinaryFormatter object and I have no idea why that is. I happen ... |
|
| how do you write out a file? (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Hi, I am trying to write out XML data to a file and get an error. Specifically, I have a dataset and I want to write the dataset to a file. Then I want to email the file as an attachment. But when I create the dataset using WriteXml, I get this error: System.UnauthorizedAccessException: Access to the path "C:\WINDOWS\system32\test1.xml" is denied. The ASP.NET process is not authorized to access th... |
|
| SV: RE: Problems saving image to another computer (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Hi Mitch, I checked the security on the particular folder earlier and 'everyone' have full rights to the particular folders. 20 Regards/H E4lsningar Andr E9 Colbi F6rnsen 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 80 Fax.: 46 (0)40 97 78 80 Mob.: 46 (0)708 97 7... |
|
| Problems saving image to another computer (3 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I am rescaling an uploaded image and need to save it to another computer. I am using the image.Save Method. I have tried using UNC and mapped network driveletters but nothing works. I simply can't save the images to another computer. Any thoughts? Regards/H E4lsningar Andr E9 Colbi F6rnsen 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D 3D Sonnenburg Co... |
|
| blocking function call (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| hi all, I have a code snippet that I don't know how to handle, and am looking for direction, examples, etc.... I have some code that could hang indefinitely, and what I need to do is stop the code from executing if it doesn't execute within n milliseconds. here is an example. //build and construct a socket... // socket code here.... // everything works great.. // but if the socket doesn't get a re... |
|
| Question about FSO and codebehind (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hello all... I'm trying to create a page of thumbnail images. Hopefully this is a lot easier than the way I'm doing it. Here's a quick code rundown of what I'm doing: Thumbs.ascx.vb: Dim files as String() Dim file as String Dim strOutPutHTML as String For Each file in files strOutPutHTML "...HTML code here..." strOutPutHTML " img src ""/images/" & File & """ " strOutPutHTML "...more HTML code here... |
|
| Display a file in Browser (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi, I am trying to Display a text file in a browser ..? Which is better way...? When I tried using the following way it is taking forever to load the file. sr System.IO.File.OpenText(strFileNm) ' Read each line in the file. ' When the end of the file is reached, return the value " 1". Dim x As String While sr.Peek 1 x x & sr.ReadLine() End While txtLog.Text x One more question is which control is ... |
|
| HttpWebRequest - GET Method (3 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I'd like to GET the page inside an HTTPWEBREQUEST Class, but it doesn't seem to like GET as the Method. Keeps displaying the following error. Cannot send a content body with this verb type. 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 De... |
|
| Filestream/StreamWriter in ASP.NET (6 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngstart] to [ngfx io] by Marcie Jones marciejones@yahoo.com hi, I'm trying to write to a file using ASP.NET. I use this code: Dim x As New FileStream("C:\FileName.txt", FileMode.Append) Dim y As New StreamWriter(x) y.WriteLine(TheText) When I run the program I always get this message: "System.IO.IOException: The process cannot access the file "C:\FileName.txt" because it is being us... |
|
| NOT ANSWERED: Stream.Read never seems to get all of the data (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I am tring to perform an HTTP GET using the TcpClient and am having problems. The Read method only seems to actually read a small portion of what the BufferSize says it is. TcpClient t new TcpClient(); t.Connect("www.mysite.com",80); NetworkStream nStream t.GetStream(); string sToSend "GET /somepage.asp HTTP/1.0\r\n\r\n"; byte[] bData Encoding.ASCII.GetBytes(sToSend.ToCharArray()); nStream.Write( ... |
|
| How do I get directory size (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Copied from [aspngcs] to [ngfx io] by Charles M. Carroll charlesmarkcarroll@yahoo.com How do I get a directory size in C#? Miroslav Endys |
|
| Disk full (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [winforms cs] to [ngfx io] by Charles M. Carroll charlesmarkcarroll@yahoo.com Can anyone tell me a .NET way to determine information about a specific disk. For example, total disk size, space used, space free, etc. Thanks, Erik Brown |
|
| sending http post request (5 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi, How would I go about sending an http post request programmatically? HttpWebRequest class? For instance let's say I have a page that take form variables and puts those form variables into a database. Is there a way to send an http post request to that form programmatically? Note that I can't just generate a webrequest with the form variables in the query string since my page only accepts it fro... |
|
| Other ways to scrape a webpage (6 replies) |
| ASPFriends.com 'ngfx-io' list |
| Can anyone suggest other ways to scrape a webpage other that the HttpWebRequest/Response class? Thanks! devin |
|
| Socket.IO (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hello I have been trying to make a socket listener, but it seems as if I am missing something Here is my code: Dim listener As Socket Dim socketed As Socket listener New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) 'makes a server listener.Bind(New Net.IPEndPoint(Net.Dns.Resolve("192.168.1.44").AddressList(0), 8889)) Dim RecvBytes(256) As Byte Dim finish As Boolean liste... |
|
| FileSystemObject or .NET equivalent (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi, Does anyone have, or know of a tutorial or examples for reading directory contents in VB.NET? Thanks, Dot Net Guruhew |
|