Access The Port Occupied By System?
May 18, 2010
we have a built in fax modem working on com4 without any problem but i want to access this modem and issue some AT command to it, when im trying to do this im getting error saying some other program is using this device and unnable to connect.
Does anyone know how to access this modem. or is thier a better way to access this modem.
View 1 Replies
Similar Messages:
Dec 19, 2010
im creating a project.i developed a circuit for usb. i will connect this device to server's usb port. Can i access this device from a client?(not read/write file. i will send some commands to usb). Usb connection program is ready.How can i access from client? Which method will i use? web service,wcf or others.
View 4 Replies
Sep 27, 2010
on my vistual studio 2010 I can see my project by [URL]
but I can access my project on either localhost or Ip address without the port number , how can I access the web page without the port number?
View 9 Replies
Aug 29, 2010
I've written a Generic Handler so I can access my server's COM port through javascript. I'm doing this, because I'm writing a Web Interface to an ESP-88 from BOSE, for internal use. The code must be configurable, and I added routines for both TCP/IP support and RS232. In a desktop app, the code runs fine, but in an ASP.net 4.0 App, the code crashes with the error "Access to the port 'COM2' is denied.". TCP/IP connections work, but serial is also required for us.
View 1 Replies
Jan 16, 2011
i can control a LPT port or COM port or any other hardware of server using ASP.Net with C#. I haven't found any clue in the internet.
I want to control a COM port Parallel port from web application.
View 2 Replies
Feb 9, 2010
we have a situation where we need to host two certificates on the same server and because we can't have two different certificates on the same server running off the same port we have assigned one certificate run through another port, which is 4443.
So the URL to our web app is now....
[URL]
If I punch this into a web browser I can access it fine, however, if I create a web reference using this URL in Visual Studio (2005) it can create the web reference fine and it builds ok. But whenever I call a web method on this service instance I get a HTTP 404 page not found Exception.
Is there any properties I need to set on the web service object to get this to work? I'm confused as to why it's not working.
View 3 Replies
May 31, 2010
I use this query for my table but it retrives the value for each row. It does not retrieve the size of the column name. I need to know the number of characters occupied in particular column. How do i get this value?
SELECT LEN(salary) AS MyLength FROM employee
View 3 Replies
Jan 19, 2011
I am attempting to build my first custom ExpressionBuilder and have created a new C# Class Library in my visual studio 2010 solution.
From the very beginning, I am doomed. I cannot seem to gain access to classes I need to accomplish, such as:
(a) using System.Web.Compilation -- the ".Compilation" is errored/underlined.
(b) using System.Web.UI -- the ".UI" is errored/underlined.
(c) using System.Web.SessionState -- the ".SessionState" is underlined.
Prior to any of these lines of code, I have a "using System.Web" which is accepted.
Following these errored lines, I try to declare the "[ExpressionPrefix("xxxxxxx")] and the public partial class xxxxxxxxxxxxxxxxxxx : ExpressionBuilder -- and both "ExpressionPrefix" and "ExpressionBuilder" are errored, as well (I'm assuming because I cannot get the correct references in my "using" statements).
View 2 Replies
Aug 20, 2010
I'm trying to write a text file form my web page, But every time I'm having this error System.IO.IOException: The process cannot access the file '.txt' because it is being used by another process. This is mode code for write file.
Code:
protected void btnSave_Click(object sender, EventArgs e)
{
string serverpath = Server.MapPath("\proactivcust.ini");
string mappath = "";
string qbpath = "";
string archpath = "";
string workpath = "";
try
{
System.IO.StreamReader file = new System.IO.StreamReader(serverpath);
[Code.....]
View 9 Replies
Jul 22, 2010
I'm a lowly DBA.I am supporting a web app that allows users to upload images (among other documents). The system is deployed and working and not having issues with the uploads. However, I upgraded my development box recently and since then I have been encountering an "access denied" issue. Initially I thought it was a simple security issue but now it seems it is more complex.
View 4 Replies
May 5, 2010
I am trying to use the unmanaged ImageMagick library in my ASP.NET application from the command line using System.Diagnostics.Process. Basically, users will upload an .eps file to the site, and then I will run the command line command to convert it into .jpg. This is the code I'm using to try and run the command:
Dim proc As New System.Diagnostics.Process
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.RedirectStandardError = True
proc.StartInfo.FileName = "C:Program Files (x86)ImageMagick-6.6.1-Q16convert.exe"
proc.StartInfo.UseShellExecute = False
proc.StartInfo.Arguments = String.Format("{0} {1}", Server.MapPath("~/logo/test.eps"), _
Server.MapPath("~/certificates/temp/test-1234.jpg"))
proc.StartInfo.CreateNoWindow = True
proc.Start()
I am able to run this code just fine on our development Win 2k3 server, but not on our production Win 2k3 Server. I get the error "System.ComponentModel.Win32Exception: Access is denied". The main between the two servers is that the production is 64-bit and runs Plesk to manage multiple domains. I've tried adding rights asp.net user to the ImageMagick directory. The PS Admin says that in the case of Plesk, it's the same account that I use to access the site in VS using FPE. Does anyone know what I might do in order to allow this process to run on my production server?
View 1 Replies
Jan 29, 2011
actually i have 2 Similar questions:
1) i have a databse file on microsoft access. and i want to add system date in my databse using c#, what is the method to do this?
2) i m new in asp.net , i m making a demo application and storing a record of a person. there is a column of Date of birth. i used "datetime" data type for this column, because it have check on dates like i can't enter 29-02-2011, since its an invalid date. but problem with that it contain time with it, which should not be mentioned in date of birth column. plz guide me which data type shoul i use?
or if i simply use text data type and then add "regular expression" in textbox, then what regular expression should be used to have a check on invalid dates. remember i m not asking about the format of date, i m asking about invalid and valid dates.
View 20 Replies
Apr 26, 2012
I have an ASP.NET page that I need to have access the local file system. It's an intranet. I need to download a zip file and an executable to a temp location and then run the executable.
Then afterwards, I need to delete the contents via an ASP.NET page.
Is there any way to access the local file system? Generally, I would think this would cause a security concern, but I've seen posts about Silverlight being able to access it.
View 4 Replies
Mar 29, 2011
I have a shared folder with directories on a remote server that I am trying to access with the method System.IO.Directory.GetDirectories(). This folder is based off of the credentials gotten from windows authentication. My problem is that everything works fun when I debug the Web Application in the built in IIS in VS, but when I set it up in IIS V5.1, it tells me that I have an invalid username and password. I am using Visual Studio 2005 on a Microsoft XP SP2 machine.
View 5 Replies
Feb 15, 2011
We have a web site on customer server. It is being locked every 2 or 3 months. I posted this subject before. For understanding the error I created a log file. When the server locked I look the log file and saw "system resource exceeded" error message. Have you any idea about this error.. When restarting the server it continue.
View 5 Replies
Jul 16, 2010
I have a ASP.NET page with a WebMethod that creates an object and runs one of the object's methods in a new thread.I need to access the System.Web.HttpContext.Current.Response.ContentType property from within this thread. Each time I (try to) access it, I receive a NullReferenceException.
View 1 Replies
Jan 22, 2010
I'm using the System.Web.Routing.UrlRoutingModule.
With that I'm writing:
routes.Add(new Route(@"cart/add", new RouteHandler("~/Order/CartAdd.ashx")));
routes.Add(new Route(@"cart/delete", new RouteHandler("~/Order/CartDelete.ashx")));
And I also have one route called:
routes.Add(new Route(@"{*url}", new RouteHandler("~/Error/PageNotFound.ashx")));
But if I go directy to /Order/CartAdd.ashx I never enter the routing. It goes directly to that handler. And if I go to /Order/ I get a 403.14 error.
How do I instead catch those urls with the routing?
View 1 Replies
May 24, 2010
if window based using c# .net,how can i create a window authentication when access system.
View 2 Replies
Feb 11, 2011
I have been given a task of reproducing the issue/testing the unauthorized access to file system through request.param and query string.
For instance i have something like this. request.querystring("blah");
How could somebody pass "../../../b1/b2" in the query string and access file system.
This may be related to cross site scripting.
View 1 Replies
Nov 11, 2010
I was using some code to try to count the number of processors in .NET 2.0:
internal static int GetNumberOfProcessors()
{
List<string> list = new List<string>();
ManagementClass mgmt = new ManagementClass("Win32_Processor");
foreach (ManagementObject obj in mgmt.GetInstances())
{
string item = obj.Properties["SocketDesignation"].Value.ToString();
if (!list.Contains(item))
{
list.Add(item);
}
}
return list.Count;
}
and it blew up like this:
[ManagementException: Access denied ]
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) +377984
System.Management.ManagementScope.InitializeGuts(Object o) +654
System.Management.ManagementScope.Initialize() +162
System.Management.ManagementObject.Initialize(Boolean getObject) +492
System.Management.ManagementClass.GetInstances(EnumerationOptions options) +122
System.Management.ManagementClass.GetInstances() +6
This code runs fine locally on cassini, but blows up on our beta server.
View 2 Replies
Oct 25, 2010
I don't know fix it. My code:
[Code]....
The erros is about objConn.Open() - I think...
View 10 Replies
Mar 10, 2010
I am trying to write a macro that accesses an XML file external to the editor.
For some reason, I am getting error messages on everything within the System.XML namespace
'Type XmlDocument is not defined'
'Type XmlTextWriter is not defined'
'Type XmlElement is not defined'
( etc... etc... etc... )
I've imported the namespace at the top of the editing context within the macro IDE:
Imports System.XML
I have also tried to reference the namespace members with a complete namespace reference:
System.XML.XmlDocument
It didn't work. It is still being indicated as undefined.
I've tested the code from within a stand-alone console app, and it works fine.
From this, am I to conclude that the System.XML namespace is not accessible from the macro facility?
Is there another option?
View 1 Replies
Sep 13, 2010
I've created some custom headers for my emails. I've used a breakpoint to see that they are being added to the collection correctly. I don't understand how to access these from the email that's generated though. I'm currently dropping the emails into a pickup directory on my local machine and viewing them with Windows Mail. I have "view all" headers checked in Windows mail but still don't see them when I open my emails in the pick up directory.
how to access the headers that I added? Below is an example of how I did it. I'm hoping to add things like name, address, phone... etc, and then have them visible in the email.
Is this even the correct use of custom headers?
[Code]....
View 1 Replies
Feb 22, 2011
In my system, the data access layer of one of the website is build using the enterprise library. Now I am developing another [different] website. How can I use the enterprise library to create the data access layer? I am very beginner to Enterprise Library? How can I configure it for my website? Should I have to include the DLL? How it will take the connection string from the Web.Config file?
View 1 Replies
Jul 30, 2010
I have a simple update query to a access database. Works perfectly on my localhost but when I upload it to the server it displays this. The weird thing in the "
monstababy.MailingList.btnSubmit_Click(Object sender, EventArgs e) in C:inetpubwwwrootmonstababymonstababymonstababyMailingList.aspx.cs:26" mention of my
local host settings on the server. I have spoken to my host and they have set permissions for the data folder etc but this still prevails. I am positive it
Source Error:
[Code]....
Stack Trace:
[Code]....
View 3 Replies