VS 2010 - TCPListener Or Sockets Without Constantly Running Program?
Jan 14, 2012
I'm trying to make a Web Page in ASP.NET that functions like a TcpListener or a Socket so basically you could "connect" to other people accessing that Web Page.
It also can't be a constantly running program that's accepting clients and would crash if the program was closed.
Just wondering if this is possible and where to look.
I have a VS2010 project that I want to move back and forth between an x86 and an x64 machine. On the x86 machine, several assemblies are located in Program Files, and the path of the assemblies are shown as c:Program Files...... When I move this project to the x64 machine, the same assemblies are located in C:Program Files (x86).... Is there a way that I can confugure VS2010 so I don't have to manually change the path when I move the project from one machine to another?
I'm using Visual Studio 2010 and working on an ASP.NET 4.0 web application. At the moment, a co-worker and I are tweaking CSS, which means constantly changing and saving CSS files and then refreshing the running page in a web browser.Every few saves, the application restarts, causing a considerable delay while we wait for the app to start up, log in again, and return to the page we were working on. In an IIS production environment a CSS file wouldn't go through the ASP.NET ISAPI, but apparently when running with VS2010 and the developent web server this doesn't matter... or something.
I have a question, and I don't really know what forum this would pertain to, so I'll ask it here. I'm looking to build a website application that uses data stored in a SQL Server database. But I want to be able to constantly pull data from a source 24/7 (all the time). Obviously a typical website application, unless a user is browsing it, won't be active and running.
How could I go about this? Would this technically be using a "service"? Would that always be running and allow me to programmatically pull data constantly throughout the day?
I am learning C# in Visual Studio (VS), and in VS i have successfully made different 'projects' under the 'solution' for each fo the samples in my C# book as can be seen here:
[URL]
the thing is when i press the green play button to run the debugger/program, it always executes "ConsoleApplication1" (look at the above image) when i want to try out the new application i wrote (named ConsoleApplication3)
Here is the simple scenario that I want to apply; There is a .NET application(console or windows) appA and this code updates a large global variable(+50MB) in the project every 30sec. I have another application appB which is a .NET web application and I want to be able to access the updated value of global variable in appA from appB whenever I want.
So I'm completely new to web development, but I hope to reach a level of knowledge on how to build a Web Server that can interact with my TCP program, like a chatbox basically. How can I achieve this and where should I start learning?
I'm an New Coder(Just started.) But my problem = I cant connect ASP.NET to this: [URL] I have already added HWID in my program now i want to add: AUTHORIZED OR UNAUTHORIZED to my program in an textbox
Is VS 2010 Ultimate a different program from VS Web Developer 2010? or Can VS 2010 Ultimate do the same thing as VS Web Developer 2010?If I have VS 2010 Ultimate do I need to have VS Web Developer 2010 to develop web pages?
I want to protect a directory in my web hosting and I want to know how can I login in this directory with my program to access to a file. I try to navigate to this file but the webbrowser show error 404.
I am using the codes sample from Peter through this link:http://www.eggheadcafe.com/articles/20030316.asp to validate email address. I made some minor modification to validate user email address after the user have entered his or her email address as show below
string[] host = (address.Split('@')); string hostname = host[1]; IPHostEntry IPhst = Dns.Resolve(hostname); IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25); Socket s = new Socket(endPt.AddressFamily,SocketType.Stream, ProtocolType.Tcp); s.Connect(endPt);
The last line of code s.Connect(endPt) generated the following error if the user email address is anything other than the company email address. I have try gmail, hotmail and they all generated the same error. Can the experts tell me how to get around the problem.
Here is the error:System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.4.20.174:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at MGHRadiologyAlert.IfaWebService.ValidateEmailAddress(String address) in
I am getting this error, and cant figure out what the issue is.
Server Error in '/' Application.
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: 'JobManager.Contact' is not allowed here because it does not extend class 'System.Web.UI.Page'.
Source Error: Line 1: <%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Line 2: CodeBehind="Contact.aspx.cs" Inherits="JobManager.Contact" %> Line 3:
Source File: /Contact.aspx Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
The code behind syntax is: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace JobManager { public partial class Contact : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
I've got about 30 projects in VS 2008 and we are finally starting to upgrade to 2010. I get change requests pretty regularly so I'm likely to have to make changes to projects that are still in 2008 after VS 2010 is installed. Is it possible to intall VS 2010 without messing up the VS 2008 install? If so is there any particular trick to it so they live side by side or do they automatically do parallel install in different directories?
I am a complete novice so please forgive this simplicity of this question.....I've opened up the default ASP.NET website template in Visual Web Developer 2010 Express and have the following code in my Default.aspx page (I also have a 'site.master' page which contains my Default.aspx page in a placeholder):
I installed VS2010. Then The Azure toolkit. I created a new solution, with one webrole in it. I added 'HelloAzure' to the default.aspx, and then pressed f5 to run it.
It runs! I see my text 'HelloAzure' in IE8. Yeah!
Now, when I close IE8, it seems that VS2010 simply hangs, is frozen. It accepts no input from mouse/keyb. Nothing moves ... you know ... it hangs.
I'm creating a website in Visual Studio 2010. I would like to use Visual Studio for C# debugging, but it also uses Visual Studio as JavaScript debugger. Is there a way to disable script debugging for Asp.Net website projects? I run my projects by hitting F5 in my Visual Studio. (I've noticed that when I attach the debugger manually, I can specify the type of stuff I would like to debug.) Note: I would like to debug, but not with Visual Studio. The developer toolbar is enough.
Lets say I have a web service installed on ServerA. I also have a web application hosted on ServerB, completely different domain from ServerA. That web application contains a web reference to ServerA's web service, so consumes it. What happens if the WAN connection between ServerA and ServerB goes down, for whatever reason? I'm not clear if, once the web method is coded into the consuming application, that the server hosting the service has to be constantly available or not.
bit of code on page laod that checks a server status and then writes the status out to a label text. This works great, but i need to make this a bit more dynamic.I need to establish a way that the service status is monitorered every few seconds to see if it stops.here is my code so far:
I'm building a browers-based game that will need to constantly be updating EVERYONE'S accounts regularly; what is the best way to go about doing this? Creating a process that runs every time someone goes to a page on my site slows down the load time immensely. Do I need to create a windows scheduled task that calls this/these process(es)? It will need to constantly run.
When I open my web page with my RadEditor version 7.3.6.0 on it to create a new using the editor I get a popup warning on the page.
Soon after this while using Rad Editor I get a message in IE8 (Version 8.0.6001.18702IS) saying the page has been recovered and I have lost all of my edits.
This is also happening to other people, my customers, when they use the same page on their IE browser.
I have an image in a report (a school logo stored in a folder).
My issue is that this image does not appear constantly on my reports, all of which use the same code to load it.
The image is stored in a Blob in an unconected dataset on the report.
The data set is filled as follows
public static DataTable SchoolLogo() { string ImageFile = System.Web.HttpContext.Current.Request.MapPath("~/Images/ReportImages/logo.jpg"); DataTable data = new DataTable();
[Code]....
I have about 6 reports that use this code and the image is loaded sometimes and sometimes it is not (even within the same report if it is loaded several times.)
I just upgraded from VS2008 to VS2010, and now my web deployment project keeps rebuilding constantly. Even if I have a WinForms application set as the startup project and hit Ctrl+F5 to run it, the web deployment project rebuilds every time I hit Ctrl+F5. It didn't do this in VS2008. Does anyone know what's causing this?
I am executing a long-running Oracle stored procedure from .NET. The procedure takes about three hours to run. Ideally, the user should be able to kick off the procedure, close the browser, and come back later to check the results.
The problem is that the connection to the Oracle procedure is lost after exactly an hour. As you would expect, the Oracle procedre runs to completion if it is executed from SQL Plus. Strangely enough, it will also run to completion if I run in debug mode on my local machine (I start two threads, one of which executes the procedure. I set a breakpoint on the second thread).
Here is my connection string:
data source= (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=serverx)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TestSID)))