How To Get IP List Of A Client Machines In A Network
Nov 25, 2010How to get IP list of a client machines in a network
View 1 RepliesHow to get IP list of a client machines in a network
View 1 Repliesi have a forms application which pings all the network machines. this works fine and also returns the status of each machine i.e. sucess, timeout etc. however i also want to get the name of the remote machines so i use this code:
[Code]....
the above code works fine however any exception is given when the remote machine is a mac. the exception is:
[Code]....
how can i counter the exception so that it simply ignores the exception and carries on the for loop for the other machines.
I have hosted my website in iis in windows xp.
When i entered the ip address in my system, it works fine but when i tried it in other machine, it is not working. It leaves me Connection Time Out Error.
I have a website that uses the ajax control toolkit targeting 3.5. We use tabs control on a few pages. On some client computers the tab control is not displayed. It doesn't collapse the are like it has a placeholder for the control but nothing shows up. No error message is given. Has anyone experienced similar problems.
View 2 RepliesInitially after deploying SSRS 2005 report on server, the client machine could not avail print functionality because of the error "Unable to load client print control". Inspite of allowing ActiveX installation, the print functionality was not working. Googling on this issue I found that rsclientprint.dll needs to be registered in C:Windowssystem32.successfully registering this dll, print functionality started working on some machines. However on some machines it started giving the error 'Error loading resource library.(0x8007007E)'.
View 1 RepliesWe have a peice of software
2 websites
1 service
1 scheduled task
And we deploy it onto customer machines. The application calls various .exe files on the the machine. We sometimes get permissions issues and we were wondering what the reccomendations are for deploying web apps in this way. Should we be telling our customers to leave the app out of the domain until we install our software and have it all up and running?Are there any articles that would go over permissions and how c# and asp.net interract with the machine?
I am developing a web application in vs.net 2010 using asp.net 4.0 in c# and using IIS. Application is running success fully in local host and server. when run application without IIS in local host then I get all printer name ( installed and also not installed).
but the problem is that when I run application with IIS in server then application running successfully but I am not able to add printer name in drop down list of client computer.
How can I access the web application from paticular client machine based on ip address of client Machilne.
View 1 RepliesHow to open Excell file if client machines does not excell installed? My code is writtenusing Microsoft.Office.Interop and Excel in code behind. I know how to export grid data using
Application type as xls etc, but the issue is the whole grid data with id columns also will be exported and i don't want to export id's. How i can acheive this?
how do i implement the following scenario in ASP.Net
I have scenario like the following.
for example:
1) Client 1 -> server (send request) ; Server -> Client 1 (send response).
2) Client 2 -> server (send request) ; Server -> Client 2 (send response).
n) Client n -> server (send request) ; Server -> Client n (send response).
now i want the server to update the client x with out getting the another request from that client x.
I have an asp.net (FW 3.5) web app that runs on an internal network. One specific page needs to "report" in to the web server that it is active and not locked up. I need to be able to run a script (or something) at the client to report the pc's computer name in that report. I cannot find a method that does this. I found several things that would report the WAN IP or host name, but this appears to all be for external facing sites.
View 1 RepliesI have seen some examples on other sites , but since im not familiar enough with DirectoryInfo and Files from the System.IO namespace, i dont know how to change it to fit my needs. So i found a very simple example that works, but i have some questions.
Here is the code i found:
[Code]....
This works great and lists the files in my root directory.
#1 - What i need to know is how to accomplish the same thing but in a format i can control, this code simply displays the files at the top of my page and pushes everything down. So does anyone know of a good and simple tutorial written in C#?
#2 - I also need to be able to setup the code so that certain files within the directories are not displayed, as in the code behind files and other files to be determined by the business.
So, I am having this weird problem. When I access my web site while I am connected through company network (either directly or vpn), I am not this error and able to use all AJAX functionalities.
Now, my problem occurs when I am not inside of company network (from home) and trying to access the web site, I am getting error and all the AJAX functionalities are disabled.
I go through Microsoft ISA server to logon to network when I try to access the site externally.
My ASP.NET MVC 2 application runs under built-in local NETWORK SERVICE account. I want to set up access permissions for the folder which resides in another computer, but in the same domain. I located that folder right-clicked to open its properties form, clicked to Security tab and pressed Add button which displayed Add user form with correct domain name in the location field. I referred to the account with following syntax:
<domain name><server name>$
because I learned that NETWORK SERVICE account uses machine account when connected to other computers in the domain. However, the system couldn't find the account, so refuses to add the account. Without the domain name it adds a user, but that user seems to be local user, not web server's NETWORK SERVICE account. What am I doing wrong?
By the way, the above syntax worked when I created login for the sql server which is different computer from the web server.
For some project requirement I need to have a list of all client ids generated against server controls on an ASP.NET page in a dropdown..Any Idea how to move forward..??
View 2 RepliesI have a problem of Validation still present for list object that have been dynamically deleted in the View. Here is the scenario. In my model I have a list. This list can be added and deleted dynamically in create and edit views. Lets say I am in the create view. I add two list objects dynamically and start filing the object and submit the form. The model validation fails in the server side (client side validation cannot be done as it involes some complex logic) because of some errors. Now the errors are being disaplayed for the two objects. Now I delete the first list object dynamically and correct the errors in the second list object and try to submit but the form will not submit because, the client side validation still thinks that the first list object is still present. Is there anyway to remove the client validation for objects that have been removed dynamically ?
My model
Contact.cs:
public class contact{
public List<Address> address;
}
Steps for the problem.
1. Create two addresses in the create view.
2. Fill the fields and click submit.
3. Server side Model validation will report errors for fields.
4. Delete the first Address and correct the errors in the second object and click submit.
5. Submit will not work because the client side validation expects the errors to be corrected in the first Address which has been deleted.
I have application..its runnning on my localhost.. i need one more machine to access that application.. but when in tht link i type my IP address instead of localhost.. it showing cannot find server.. in orderr to access appplication to other machine.. as such there is no UAT server as of now...
View 2 RepliesI'm having a problem when I deploy my web application in different servers. There seems to be an inconsistency in some DateTimeFormat patterns, like ShortDatePattern, using the same culture (pt-BR).
In my development machine (Windows 7, .NET 4 installed, application targeting .NET 3.5) and a Windows Server 2008 R2 (with the application targeting .NET 4) server the ShortDatePattern is "dd/MM/yyyy" - which is the correct, I guess.
In the production server (Windows Server 2003, using .NET 3.5) it is "d/M/yyyy". It is causing me tons of trouble.
I could solve the issue by setting the patterns by hand, but I'd really like to avoid doing this every time I need to output a date. Specially since this will be non-trivial in many places (like where I use MVC's Html.TextBoxFor) and will require a good amount of rewriting.
If there's a way of changing the patterns for the entire web application in one place it would be great. I've tried the following approach in the Global.asax.cs file, with no success:
CultureInfo info = new CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.ToString());
info.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
System.Threading.Thread.CurrentThread.CurrentCulture = info;
I need to develope on web page using asp.net 2.0, on page load i need to check that particular software installed or not on client computer, i have develope one page for same using following code,but when i upload this application on server page give me details of server machine,while i want details of client machine on which user will browse our application,please help me short out this problem.
CODE:
public string[] IsApplicationInstall()
{
string str = "";
string[] strArray = { "false", "false", "false" };
string uninstallKey = @"SOFTWAREMicrosoftWindowsCurrentVersionUninstall";
[Code]....
Anyone know of a way to read out in a list all of the UpdatePanel Client ID's I have on a page? Basically I need to loop through all controls in the page with a type of UpdatePanel, and display the ClientID for each..
I have four update panels on this page and I am using this
private string LoopUpdatePanel(ControlCollection controlCollection)
{
StringBuilder sb = new StringBuilder();
foreach (Control control in controlCollection)
{
if (control is UpdatePanel)
{
sb.Append(((UpdatePanel)control).ClientID + ", ");
}
if (control.Controls != null)
{
LoopUpdatePanel(control.Controls);
}
}
return sb.ToString();
}
I have a .net web app hosting in IIS6 with Windows Authentication and anonymous access disabled. The web app is making connection to a SQL Server that is in the same domain, but on a different machine.
I want to have the IIS Worker process acount I_USR_... to be granted access to the SQL Server.
Will this work ?
(Is there a one to one trust ? Or should I make some extra effort to make the trust work ?)
(edit) On this page I read:
IUSR_ must be in the domain, and given proper access to the SQL Server; or, you must disable anonymous access on the site / application - which will allow IIS to pass the users' credentials to SQL Server. Not doing either of these things will result in an error.
I have been trying to solve this problem for several weeks now and it is getting really frustrating. Basically i have a simple project which includes one master page and one content page. the following code is what is found in the content page
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
[code]...
How do I list all generated errors in the same div?
Something like this:
<div id="errors">
<ul>
<li>Email is invalid</li>
<li>Firstname is required</li>
</ul>
</div>
Is there a way to list all the printers installed on client using ASP.Net Web Application?
View 1 RepliesI have Visual Studio 2008 SP1 and ASP.NET MVC 2 (not the RC) installed on 2 computers, one at home and one at work which allows me to work on the same projects (via a synced dropbox account) in both locations.I've recently started with ASP.NET MVC and I've noticed that the projects I create at work won't compile at home (haven't tried it in reverse yet), citing the UrlParameter on line 22 and AreaRegistration on line 29 of the default Global.asax file as having a missing reference.I've checked the using System.Web.Mvc statement is in place and that the reference exists in the project references folder in solution explorer. I've looked in the object browser as well and I can see that my work machine shows the System.Web.Mvc.UrlParameter but my home machine doesn't.I've created a brand new Web MVC project on my home computer and the object in object browser is there, everything compiles and runs fine.
View 3 Replies