Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search


System.IO.IOException: The Device Is Not Ready Error?

I have written a code to write some information to text file and save this file on disk. However i have harcoded the path on which to save the file. I am getting System.IO.IOException: The device is not ready. error Is it because of that hardcoded the path. How to get path to folder on server?? On my local machine I am giving path "D:/telephone_management/AMS/files/" and within files folder i m saving my text files On server machine, the drvive is E, so path is wrong. Is there any way I can dynamically get path to my files folder on server ??

View 1 Replies (Posted: Mar 25, 2011 10:25 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
System.IO.IOException: Unknown Error (-1).
I'm getting this error when I'm trying to run a page that works on other servers. Having trouble finding much info on this error or possible solutions.As far as I can tell, the appicable permissions have all been set, on both the app folders and the framework folders. I've taken all the code out of the page to isolate

Posted: Feb 16, 2010 05:22 PM

View 2 Replies!   View Related
Send Email And Get A System.IO.IOException Error
I am not sure whether this is the right place to post this question, but I want to give this a try anyway. I try to call the following function for sending an email out from a pop3 email server.

Public Function SendEmail(ByVal InFromAddress
As String,
ByVal InFromName
As String, _
ByVal InToAddress
As String,
ByVal InToName
As String, _
ByVal SubjectField
As String,
ByVal BodyField
As String)
As String
Dim client
As New SmtpClient("")
client.Credentials = New System.Net.NetworkCredential("",
Dim FromField
As New MailAddress(InFromAddress, InFromName)
Dim ToField
As New MailAddress(InToAddress, InToName)
Dim message
As New MailMessage(FromField, ToField)
message.IsBodyHtml = True
message.Subject = SubjectField
message.Body = BodyField
Catch ex As Exception
Return ex.ToString
End Try
Return ""
End Function

I got the following error: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace

Posted: Sep 17, 2005 09:31 PM

View 5 Replies!   View Related
Security :: System.IO.IOException Unknown User Name Or Bad Password?
I cannot for the life of me figure out why I cannotwrtite a file to a directory inside of the website. I have this workingon aWindows 2003 Server using IIS6. I've ported thisweb app to a 64bit Windows2008 server and I am unable to have my web app write a file to a directory. I have sharedand given security access to everything under the sun on this server to that particular folder and still no luck. My dev workstation with VisualStudio 2010has no probelm saving a file to that directory.So it has to be something with the web server account. I am using Windows Authentication. I have an account in ourActive Directory that is being used.

Posted: Feb 15, 2011 02:56 PM

View 1 Replies!   View Related
Configuration :: System.IO.IOException: Logon Failure - Unknown User Name Or Bad Password?
in my application i am trying to write a file on a network system . i get the above errori have identityimpersonate="true"

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

Posted: Dec 01, 2010 06:51 AM

View 1 Replies!   View Related
System.Net.Mail To Property Ready Only?
I am working on send email once a button i clicked

No matter what I put next to the oMail.To it errors out

Property 'To' is 'Read Only'

Not sure what is looking for

I have this

Imports System.Net.Mail
Partial Class AddProspects
Inherits System.Web.UI.Page
Protected Sub btnAddRecord_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddRecord.Click
Dim oMail As New MailMessage()
oMail.To = ""
oMail.To = tbEmailAddress.Text
oMail.IsBodyHtml = True
oMail.Body = "Just A test"
oMail.Priority = MailPriority.High
Dim oSmtp As New SmtpClient("LocalHost")
End Sub
End Class

Posted: May 20, 2009 10:01 PM

View 1 Replies!   View Related
Web Forms :: Test The Speaker Or Audio Device On Client System?
i am making a online examination system.

i just wants to test the speaker or audio device on client system as i am using .

so i need before user login to my application i need to check the audio device or speaker of the system so if it works then ur must be able to take the online test.

Posted: Dec 16, 2009 04:17 PM

View 1 Replies!   View Related
Active Directory/LDAP ::exception "A Device Attached To The System Is Not Functioning"?
I am working with AD and i have to add users to the Distribution list if they are not present in the list. Everything works fine, but sometimes i get the exception as "A device attached to the system is not functioning." at directoryentry.commitchanges() method.and sometimes it successfully adds the user to the group directly. I checked all the user-names and there is no special characters in the user-name i wonder is this exception is due to any network related issues. And more importantly the exception is not consistent,


Posted: Mar 31, 2010 05:48 PM

View 1 Replies!   View Related
AJAX :: Ajaxtoolkit - Debug Error Could Not Load Type System.Web.UI.ScriptReferenceBase' From Assembly System.Web.Extensions
i have installed ajaxtoolkit 3.5 but when i debug i am getting this error Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' even i have changed my tags to


Posted: Dec 15, 2010 06:08 AM

View 6 Replies!   View Related
Specified Driver Could Not Be Loaded Due To System Error 126 (SYBASE SYSTEM 11)
I have a web service page (asmx) needs to connect to Sybase database that is on a remote server. I am using ADODB connection to open the connection string. Theconnection string is:

connectstring='Provider=Msdasql;Driver={SYBASE SYSTEM 11};srvr=SYSQL;database=data_db;uid=suser;pwd=pwd'

When I first ran it I got this error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. Then I installed Sybase System 11 driver to the server. After that I always gotthis error:

Specified driver could not be loaded due to system error 126 (SYBASE SYSTEM 11).

The code works in the other server machine. That server also installed Sysbase system 11 driver. The only difference is the version that is 3.11. My server has the version 3.01. I don't know the error is from the version or permission.

Posted: Jul 08, 2009 07:13 PM

View 2 Replies!   View Related
Error : The Entry 'asp:System.Web.UI:System.Web.Extensions / How To Fix This
We are working on a web application and the target deployment includes Windows 2003 64-bit. When we run the application on the 64-bit OS, it gives the following error:

The entry 'asp:System.Web.UI:System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has already been added

The web.config file includes the following:

<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" theme="esl_theme">
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

And if we remove the line <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>, it seems to work.

Can somebody understand the problem and take corrective action? The application does not compile on 32-bit OS without this.

Posted: Jan 27 at 13:02

View 1 Replies!   View Related
Visual Studio :: Unrecognized Tag Prefix Or Device Filter Error In Visual Studio 2005?
I am building master page in visual studio 2005 and I have placed contentplaceholder intobetween <head> and</head> tag of master page, but in source view of visual studio 2005, I am gettingerror that says "unrecognized tag prefix or device filter"how do i get rid of this error or is this bug in visual studio 2005

Posted: Dec 13, 2010 06:12 PM

View 2 Replies!   View Related
MVC :: Error / Cast Object Of Type 'System.Data.Linq.DataQuery`1[System.Boolean]' To Type 'NerdDinner.Models.RSVP?
Unable to cast object of type 'System.Data.Linq.DataQuery`1[System.Boolean]' to type 'NerdDinner.Models.RSVP this message appear to me when executing that line of code

Controller Class

OrdersViewModel TestModel = new OrdersViewModel() = (NerdDinner.Models.RSVP) _db.RSVPs.Select(i => i.DinnerID == ID);
public class OrdersViewModel
public Dinner dinner {get;set;}
public RSVP rsvp { get; set; }
} must return list of rows

Posted: Aug 03, 2009 08:50 PM

View 3 Replies!   View Related
Getting Error / Cannot Implicitly Convert Type 'System.Data.DataSet' To 'System.Data.DataTable'
I got this error: Cannot implicitly convert type 'System.Data.DataSet' to 'System.Data.DataTable'

i have writtencode like this


Posted: Dec 24, 2008 11:00 AM

View 2 Replies!   View Related
C# - Is Mvc 2 RC Is Ready For Production
Is there any risk associated by using mvc 2 on production or stick to the mvc 1.

Posted: Jan 29 10 at 7:46

View 4 Replies!   View Related
Configuration :: Getting An Error "Parser Error Message: Could Not Load File Or Assembly 'System.Web, Version=4.0?
I have created an application which runs fine inVS2010.Now i am trying to host that application using inetmgr.When i try to browse the page from inetmgr content view then i get the"Parser Error Message: Could not load file or assembly 'System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified".If i browse the page from VS i am able to do it.I am not able to host the app. may be the reason is the above stated error.

Posted: Aug 25, 2010 12:01 PM

View 1 Replies!   View Related
How To Position A DIV On DOM Ready After It Has Been Created
I am trying to create a page where I can attach sticky notes at runtime exactly as explained in this tutorial.

I have converted the sample in ASP.NET MVC 2 (which is the technology I am using) and everything works fine.

So I have a DIV in my view


Of course I could change my view to create dinamically the notes div on DOM ready but before going to change all the code I was wondering if i can have some code to make them respect the positions they have meant to be to.

Posted: Sep 16 10 at 11:02

View 1 Replies!   View Related
Gridview Update - Ready For All Records?
I just spent the last week and a half working on a gridview for a user and now he says he wants it so that all the records are updatable! He doesn't want to click on the Edit button, he just wants everything open for update. Is this possible? Or would anther control do it?

Posted: Feb 9th, 2011, 04:10 AM

View 3 Replies!   View Related
Configuration :: Deploying Changes To A Ready Website?
I made a simple network tool using Visual Studio 2010 Express, ASP.NET C#.

When I finished, I deployed it to a Local IIS 5.1 Server. I'm running XP(BTW).

The situation right now is that every time I add/change something to suit my needs, it changes it directly on the server - which is obviously unwanted. I want to understand why this is and how to change it. I don't want every test I do to be implemented directly on save.


On Project->Properties, Web tab. I verified that under the "Servers" option, "Visual Studio Development Server" in checked and not "Local IIS Web Server"

Posted: Jun 29, 2010 07:54 AM

View 4 Replies!   View Related
What Is The Accurate Method To Use Aspnet_regiis.exe When Ready To Start App In The IIS
Ok what i want to know is what is the accurate method to use aspnet_regiis.exe when you are ready to start you app in the IIS.

What i have done but only tested locally is use this suntax:

aspnet_regiis -pef "connectionStrings" "d:aspdirmysite"

As i see lot of switches in aspnet_regiis (p.e. i have seen something like:

aspnet_regiis -pe "connectionStrings" -app "/SampleApplication"), i'm not sure what is the accurate one or if they deliver the same result.

The -pef i presume is when your app is on your hard drive.Will it play when on the IIS? Anyway what is the common way to encrypt.

Posted: Dec 21st, 2010, 03:08 AM

View 6 Replies!   View Related
C# - Calling Href Click On Document.ready?
a have two aspx pages page1.aspx and page2.aspx. i have an href in page1.aspx <a id="GoHref" href="page2.aspx"> i want that when users click docHref to be redirected to page2.aspx and download a doc file via an automatic click on <a id="DocHref" runat="server">

page2.load is as below:


But it doesn't work !

is this a good way to download a doc file ? Or there a better server side way?

Posted: Mar 15 at 20:53

View 2 Replies!   View Related
JQuery :: Document.ready Not Working In Firefox?
I have this below alert set on Document.Ready function. But this alert is notseen when I user Firefox. the alert is seen in IE7

$(document).ready(function() {//hide err messages
alert('you are here');

Posted: Jul 14, 2010 03:35 PM

View 3 Replies!   View Related
How ToI Do Document Ready() Functions For The Child Pages
I want to use jQuery in my ASP.NET 3.5 website that uses master pages and content pages. How do I do document ready() functions for the child pages for those that will use jQuery ? Where do I put the code?I figured the jQuery declarations should go in the master page, but don't know how to make sure any jQuery calls go into the HEAD of the resolved page.

Posted: Jan 26 at 21:11

View 3 Replies!   View Related
Is Mono's VB.Net Support Ready For A Production Site
Previously, I've only used Microsoft-centric solutions, but for an upcoming ASP.Net project I'm considering using Mono and hosting it on a Linux Amazon EC2 instance. Based on the responses to my previous question, this sounds doable. However, I'm most comfortable with VB.Net and I'm wondering how well Mono supports it.

Does anyone have first-hand experience writing ASP.Net applications for Mono using VB.Net? If so, I'd like to know how it went, what kind of compatibility issues you ran into, and if you consider Mono's VB.Net support ready for use on a production site? I know Mono's C#.Net support is very good, so that's my fall-back plan, but I'd really prefer to use VB.Net.

Posted: Jan 20 at 17:38

View 4 Replies!   View Related
Configuration :: Make A Web Application Ready For Distrubution?
i want to know what is the steps to do when distrubuting an web application for web Hosting.

Posted: May 19, 2010 10:26 AM

View 3 Replies!   View Related
MVC :: System.Web.Mvc.ActionResult UpdateActingRoles() Error - How To Fix This Error
This error is severely pissing me off

I have a main View which has an ActionLink that redirects to another View


This new view has a submit button


The problem is that when i click on "Update", i get the infamous No parameterless constructor defined for this object error in the controller. The Post Action is this:


Which it doesnt even get to! If i add a parameterless constructor:


I get the Ambigious error:

The current request for action 'UpdateActingRoles' on controller type 'EmployeeController' is ambiguous between the following action methods:

System.Web.Mvc.ActionResult UpdateActingRoles() on type ProjectY.Controllers.EmployeeController System.Web.Mvc.ActionResult UpdateActingRoles(ProjectY.ViewModels.Forms.ManageActingRolesViewModel) on type ProjectY.Controllers.EmployeeController

Posted: Jun 25, 2010 05:50 PM

View 2 Replies!   View Related
Is It Mandatory To Write Ready Function Every Time While Doing Jquery
Is it mandatory to write $(document).ready(function () {... }) every time ?

Can't we do it without this line?

Posted: Jan 17 at 6:17

View 6 Replies!   View Related
Upload A Ready Made Picture To Canvass In Bitmap?
I'm currently working on a table and a picture with this problem. I need the picture to be stretched and fully expanded inside my table.or is there anyway to upload a ready made picture to be my canvass in Bitmap?

Posted: Nov 03, 2008 10:04 AM

View 1 Replies!   View Related
Render .net Repeater As-and-when Chunks Of Html Is Ready (streaming)?
The problem is to render huge reports. Basically we have lots of data that get rendered in html reports (mostly using repeater or gridview). As it so happens, the data started out small and now we have tons of it. There are lots of such reports already built so total rewrite is not an option. Heck, the business is not even letting us page the data. Now server memory is shooting up each time we try to render some reports. So the question is - is there some way we can bind data to repeater and have it stream html to browser as and when chunks are ready? That way we hope to not bring all that data into app server at once. I'm thinking we'll use a datareader or something to get parts of data and render it to browser.

Posted: Apr 22 10 at 13:29

View 3 Replies!   View Related
ASHX Image Handler Lets Document.ready() Fire Twice
I got a $(document).ready() handler in my aspx page that fires twice. I trapped it to the follwing line of html (this line is part of the itemtemplate of a listview):

<img src='Images.ashx?Url=<%# Eval("Url")%>&Type=3' alt=''></img>

Seems that using the images.ashx is causing my problem, putting a 'normal' url as src gives me no problems.

It must be because the handler is called, but why is loading an image giving a second fire on $(document).ready()

It is only in IE8. Chrome, FF and safari work as expected.

Posted: Nov 1 10 at 19:34

View 1 Replies!   View Related
JQuery :: Update Panels - Functionality Disappears Using Document.ready()
I have a problem with JQuery when using update panels. My page is structured like this:

Text search
Login Update Panel
Login form
End of Login Update Panel

For clarity I have remove all other page objects. As you can see the login form is inside an update panel, the text search is not.Both of these objects rely on jquery to function correctly (assuming javascript is enabled). In order to persist the functionality after postback with the login form, I use the PageLoad() function.This works ok.

I tried the same with the text search but it doesnt work.I presume its because it isn't inside the updated update panel. At the same time the functionality disappears using document.ready() and I can't understand why it works with neither rather than one or the other.

Posted: Mar 24, 2011 12:59 PM

View 2 Replies!   View Related
Send Fodder Bytes Until Actual Response Data Is Ready?
I need to serve MP3 content that is generated dynamically during the request. My clients (podcatchers I can't configure) are timing out before I'm able to generate the first byte of the response data.

Is there a way to send fodder/throwAway data while I'm generating the real data, to prevent/avoid the timeout, but in a way that allows me to instruct the client to ignore/discard the fodder data once I'm ready to start sending the "real" data?

Posted: Jan 19 10 at 5:46

View 2 Replies!   View Related
C# - Show A Wait Dialog During File Creation And Hide It When Download Is Ready?
have a Page that automatically generates a file and sends it to the Response. I need a Dialog to be shown during the file creation and hidden after the browser download dialog appears.

Posted: Jun 22 10 at 15:14

View 3 Replies!   View Related
WCF / ASMX :: System.Net.WebException: The Remote Server Returned An Error: (500) Internal Server Error?
I have written a web service and tested it and it works fine from the .asmx test page.

However, when I attempt to call it with a post I get this error:

The remote server returned an error: (500) Internal Server Error.


An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Posted: Jan 15, 2007 09:00 PM

View 2 Replies!   View Related
Javascript - $(document).ready(function() Does Not Work Perfectly In Content Pages / Telerik Controls
The pages on my project are base on master and content pages...

I want to do something with javascript(rather than jquery) in one of content pages after ALL OF MASTER AND CONTENT ELEMENTS ARE LOADED COMPLETELY.(for example set focus on a RadComboBox Control)

For doing that I used the below code :

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript"> [code]...

But alert(combo); always returns null.(the $find code is for telerik controls and the upper codes about telerik controls are completely true)To solve this null problem I test the ways shown below:

1-I Removed all of controls from master and content page except RadComboBox Control and null problem disappeared , so i derived the null peoblem is about all of elements of master and content page have not been loaded when

$find("<%= RadcbPersonelCompleteNameInvwNoskhehEdit.ClientID %>"); is fired.

2-so i used $(document).ready(function() { my codes }); instead of onload = onloadOfDocument;

3-at last i test the below code and it works perfectly :
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script> [code]...

What function of document should i use for doing some javascript codes after all Of MASTER AND CONTENT ELEMENTS are loaded completely?

Posted: Jul 22 10 at 8:12

View 1 Replies!   View Related
Server Error / The Server Response Could Not Be Read Because Of An Error. Contact Your System Administrator
I have an old website that was running on a Windows2003server/IIS6 it was working fine but the company that host my web site changed to windows2008server/IIS7 and the problems began to appear but the worst one is :

I have a page that i transfer data from a access database to an SQL Database .If i transfer the records of one day's work ,it work fine and when finished redirect to another page.But if i try to transfer more than one day records the code works fine(the transfer is completed ) ,but it gives me an error and don't redirect me to the next page , this is the error:

Server ErrorThe following error occurred:
[code=SERVER_RESPONSE_RESET] The server response could not be read because of an error. Contact your system administrator.

Posted: Jan 14, 2009 11:00 AM

View 2 Replies!   View Related
Is There A Way To Track A GPS Device Using PHP
In my upcoming project, I need to track GPS device attached to vehicles. Is there any way this is possible through PHP or ASP.Net

Posted: Jun 2 10 at 15:48

View 2 Replies!   View Related
Access USB HID Device With Web Application
I'm new to , i developed windows application to work with my device i was wondering if web application can be developed to work with USB HID device , in other words i would like to plug in my device in client pc open web page and work with my device in the same manner as i would in windows application.

Posted: Feb 20, 2009 12:27 PM

View 4 Replies!   View Related
How To Send Signal To Device
Let an Electronics Device is connected to a computer through a USB port. I want to send some signals from my software every second and with those signals the device will work respectively. And when I shall send Stop signal, the Device will stop working. What should I do? I like to use C#.

Posted: Aug 31, 2009, 01:26

View 6 Replies!   View Related
Apply Different Css Based On Device?
I'm just starting to learn the basics of ASP.NET and have encountered a problem I don't know how to solve. I'm used to PHP and if I want a different css based on the device (Android or iPhone) used to browse my website i would do something like this:

#Check device used
if( strstr($agent, "Android") or strstr($agent, "iPhone") )
echo(" <link rel="stylesheet" type="text/css" media="screen" href="handheld.css" />
<?php } ?>

But how is this done in I have no clue.

Posted: Dec 16 10 at 9:06

View 1 Replies!   View Related
Copyright 2005-08, All rights reserved