ASPFriends.com 'ngfx-io' list Archive - May 2002
Messages
Page: 12
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...
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
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...
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
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
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( ...
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...
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...
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 ...
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...
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...
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...
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...
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...
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 ...
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?
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...
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...
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
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 ...
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...
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 ...
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 ...
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...
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 ...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com