Running A Web Application On Two Windows?

Feb 18, 2011

Does anybody see any problem running an APS.Net 2.0 application on more than one browser windows at the same time concurrently? Users are accessing the application with IE and they do Control+N and access the same application in another windows and use both windows concurrently. Would there be any issue coming from session or anything such that I need to be concerned?

View 7 Replies


Similar Messages:

C# .net Windows Application Setup Not Running In Windows 7

Apr 12, 2010

i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it.

View 2 Replies

Migrate Application Running In Windows 2000 Server To Windows Server 2008?

Mar 10, 2010

Currently we are running an application build in VB6,ASP,Commerce Server2000 and Sql Server 2000. This application is running in Windows 2000 server.Now we are planning to migrate Windows server 2000 to Windows 2008.Will this application run in Windows 2008 or do we need to upgrade this application to dotnet and Sql 2008?

View 1 Replies

Running Windows Services Application In Framework 2.0?

Feb 8, 2010

1)My Windows services application folder is MyWInservice

2)Executable .exe i.e. “myServices .exe“ file located under MyWInservice \myServicesinDebug

3)I have RUN bat file
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727InstallUtil.exe /u "myServices.exe"
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727InstallUtil.exe "myServices.exe"

4)After running InstallUtil, myServices.InstallLog and myServices.InstallStategenerated under .. binDebug folder.

5)Upon pressing F5, I still get the same error.
Error is:

Windows Service Start Failure,Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.

View 6 Replies

Finding Whether An Assembly Is Running As Part Of A Web Application Or Windows App?

Jun 6, 2010

I wasnt sure where this question best belongs, in the end I figured this was the best place...

Say I have a utility dll that i might use in either a windows console application or in an asp.net web application - how can I programatically find whether it is running on web or windows, from within the dll?

I feel like this is something I should know by now, maybe some property of AppDomain.CurrentDomain, or Environment, but I just can't find it.

The reason I'm asking is because I'm playing around with nHibernate for asp and I seem to need different session handling when running in asp.net, compared to when i'm running integration tests. So if someone knows how i can solve this without programatically checking the context of the application, then that'd be great too.

View 3 Replies

Installation :: Running A Web Application In Vs-2008 On Windows 2003 Server?

Jun 3, 2010

I am running a web application in vs-2008 on windows 2003 server.While execution of .net application, I am getting an error as"Unable to start debugging on the web server. Unable to connect to the web server. Verify that web server is running and that incoming HTTP requests are not blocked by firewall."

View 5 Replies

Running .NET 1.1 On Windows Azure?

Feb 13, 2010

Is it possible to run ASP.NET 1.1 on the Windows Azure?

View 1 Replies

Slow Of First Page - Running On Windows / IIS

Mar 16, 2011

I'm more into the LAMP stack, but I've been asked to work on a site that is running Windows and IIS 2008. I'm a beginner with IIS, so please be patient with me on this, and please ask me to provide more information if that is needed to determine. I read the answer here (Slow first page load on asp.net site), but it seems like if I go to the site with one browser it takes long to load the first page, then fast on all other pages, then if I open up another browser, it's the same thing, so it's not something that is saved on the server, but per session? Is there a way to have the application running at all times? Right now it is taking 12 to 15 seconds for the first page to load. I have access to the WebControlCenter and FTP.

View 3 Replies

Installing Windows Application On Client System (Example: Windows Update From Microsoft Site)

Nov 23, 2010

I have a ASP.NET application. From that, User register, User will get email after registration. My Req : When user click on link provided in email. Then it should go to my ASP.Net application page . That page should install a wincows application on Client system through web ( I was inspired by Microsoft Windows update from Microsoft site)

View 1 Replies

WCF / ASMX :: FTP Directory Listing In Windows Application But Not In Windows Service?

Dec 13, 2010

Iam using ftp client wrapper class for accessing ftp.

iam able to download files from ftp when used in windows application

when i try to use the same code with windows service i get an error

the error is

"The underlying connection was closed: An unexpected error occurred on a receive. "

this error i get on directory listing

the stack trace is:

[Code]....

Note:

FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer

soruce code:

[Code]....

View 5 Replies

Installation :: Uninstall .net Windows Application From Different Windows User

Jul 7, 2010

We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.

View 3 Replies

Web Forms :: NullReference Error / Running Windows Service

Mar 29, 2011

Hello all. I created a class that runs fine when using it with web forms, however when i create a Windows service and try to run it I recieve a NullReference error. Im not sure what else to do since the class works fine.Here is a snippet.

The service

public partial class Service1 : ServiceBase
{
//Timer object
Timer RunTime;
QBridge bridge_object = new QBridge()
double test_interval = 40000; //test value
public Service1()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
//Send email notification that intakes were pushed
//bridge_object.SendNotification(bridge_object.service_startedtext);
RunTime = new Timer(30000);
//set the elapsed event
RunTime.Elapsed += new ElapsedEventHandler(RunTime_Elapsed);
//RunTime.Interval = SetInterval(); //calculated interval
RunTime.Interval = test_interval; // test interval
RunTime.Enbled = true; //set timer to true
//QBridge bridge_object = new QBridge();
//bridge_object.SendNotification("start");
//SendNotification("start");
}
protected override void OnStop()
{
RunTime.Enabled = false; RunTime.Dispose();
try
{
bridge_object.SendNotification("stop");
}
catch (NullReferenceException nre) { System.Windows.Forms.MessageBox.Show("Error " + nre); }
catch (Exception er) { System.Windows.Forms.MessageBox.Show("Error " + er); }
//SendNotification("end");
}
//Included this to test locally. works fine when just calling the method
protected void RunTime_Elapsed(object source, ElapsedEventArgs e)
{
//SendNotification("run");
try
{
bridge_object.SendNotification(run);
}
catch (NullReferenceException nre) { System.Windows.Forms.MessageBox.Show("Error " + nre); }
catch (Exception er) { System.Windows.Forms.MessageBox.Show("Error " + er); }
}
public void SendNotification(string email_text)
{
MailMessage initial = new MailMessage();
initial.Bcc.Add(new MailAddress(""));
initial.From = new MailAddress("");
initial.Subject = "Web notification";
initial.IsBodyHtml = true;
initial.Body = email_text;
SmtpClient mailClient = new SmtpClient("192.168.1.1");
try
{
mailClient.Send(initial);
}
catch (Exception ex) { }
}
}
Class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Mail;
using System.IO;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
namespace Intake
{
public class QBridge
{
SqlConnection con =
new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
private string login_error;
public QBridge()
{
}
public void SendNotification(string email_text)
{
MailMessage initial = new MailMessage();
initial.Bcc.Add(new MailAddress(""));
initial.From = new MailAddress("");
initial.Subject = "Web notification";
initial.IsBodyHtml = true;
initial.Body = email_text;
SmtpClient mailClient = new SmtpClient("192.168.1.1");
try
{
mailClient.Send(initial);
}
catch (Exception ex) { }
}
}
}

View 7 Replies

Security :: Web App Is Running NT AuthorityNetwork Service Credentials And Not The Windows One?

Feb 16, 2010

I have a web form and code snippet for it is below:

<body>
<form
id="form1" runat="server">
<div>
<h5>Welcome
<%= System.Security.Principal.WindowsIdentity.GetCurrent().Name
%>.........

But when run my web application, i m getting message "Welcome NT AUTHORITYNETWORK SERVICE " and not the current windows user name.

View 1 Replies

Host Websites In Iis 7 (currently Running On Windows 7 Release Candidate)?

Mar 4, 2010

I have created three basic websites using VS2010 and they are working fine when invidually run from visual studio. But in order to get the full functionality of the websites, they have to be run simultaneously. There are iframes inside one contaning pages from other website.

What is the way it can be done? Is hosting the only solution to it? If so please tell me how to host them in IIS7( i am currently running on windows 7 release candidate)

View 2 Replies

Security :: Implement Client Certificate In Windows 7 Running IIS 7.5?

Feb 12, 2011

I want to implement client certificate in IIS 7.5 in windows 7. As per my knowladge I need to setup server certificate first for IIS. But I could not figure out how to do that.

View 2 Replies

Running Asp Site On Windows Server 2003 And Accessing It Over LAN?

Sep 6, 2010

I want to run an ASP.Net application on Windows Server 2003 and access it over a LAN.
Like http://serverIP/sitename.com

How do I do this? What configuration changes should I make to IIS?

View 1 Replies

Web Forms :: ClientScript.RegisterClientScriptBlock Vbscript Not Running On Windows 7 Boxes?

Mar 25, 2011

We have an web application which has been working fine on XP but which fails on Windows 7.I have a page where I'm executing several procedures on server-side and then must execute a vbscript function on client-side which I'm registering from my server code.The problem is after postback completed vbScript function is not executed at all.... even a simple "Alert" statement is not executed but only using Windows 7.... same code works fine on windows XP...

View 3 Replies

Running Long Process In Aspx Versus Windows Service

Aug 13, 2010

Wondering if there is a performance difference between letting a long running process hang in asp.net vs running the process via a windows service. I have done this once before and the windows service was much quicker and didnt bog down my system, whereas the asp.net request seemed to wreak havoc.

View 1 Replies

Pros And Cons Of Running Quartz.NET Embedded Or As A Windows Service?

May 20, 2010

I want to add quartz scheduling to an ASP.NET application.It will be used to send queued up emails.What are the pros and cons of running quartz.net as windows service vs embedded.My main concern is how Quartz.NET in embedded mode handles variable number of worker processes in IIS.

View 2 Replies

C# - Unloading An Application Can Affect Another Running Application?

Oct 12, 2010

Application domains allow applications to be unloaded separately. My question is how unloading an apllication can crash another application.

View 2 Replies

Visual Studio :: Reordering Of Tabbed Windows White Screen While Running In Debug?

May 13, 2010

There are a lot of new features in VS 2010 that I'm very much enjoying, but there are two things occurring that I'm wondering about. I often have several windows open like any developer will, and I arrange them in a particular order that makes sense to me, from left to right. As new windows are opened, tabs are created at the far left, and I move them to where I want them. Basically, I like to have the database diagram at the far left, then the repository class for whatever controller I'm working on, then the service class, then controller class and then various views. Not that my particular order is important to the question, but here it is.

I've noticed that, while working and switching between tabs (by clicking on the tab - not moving it or removing the current one), this order is getting changed. Some of the tabs that I've dragged over to the far right will suddenly be on the far left. The rearrangement always places windows on the far left. This happens regularly, and I've paid attention to my actions, so I know I'm not accidentally dragging them over myself, or closing/reopening them. This seems to occur with the tabs that I use the most, as if Visual Studio is trying to place my most-used tabs over to the far left. I'd rather this not happen and handle the order of the tabs myself.

The other thing is less important, but is a little odd. When I start my MVC 2 application in debug mode, my entire code window goes completely white until the application loads. This never happened in VS 2008, and I'm guessing it's some kind of side effect of having the interface written in WPF. It's not that bad, but is a little annoying.

View 3 Replies

WCF / ASMX :: How To Access A Wcf Service Hosted On A Server Running On A Virtual Machine On A Windows 2008 R2 Hyperv

Jul 14, 2010

I am trying to access a wcf service hosted on a server running on a virtual machine on a windows 2008 R2 hyperv. When i access this service when running my asp.net website through code everything works fine how ever when i deploy the application on the local IIS , in the deployed mode i am getting an securityaccessdeined exception. My Asp.net app is running on a IIS server on another virtual machine. The stack trace is as given below :

Environment Info: My asp.net app has built on .NET 4.0 framework using VS2010. My WCF services are based on .NET2.0 framework.
Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 14-07-2010 13:56:54

Event time (UTC): 14-07-2010 08:26:54

Event ID: dd1986e7e7dc4473beb908754c75a580

Event sequence: 4

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1/ROOT/StratosTest-1-129235696025728041

Trust level: Full

Application Virtual Path: /StratosTest

Application Path: C:inetpubwwwrootStratosTest

Machine name: MC-NEWCODE

Process information:

Process ID: 1752

Process name: w3wp.exe

Account name: IIS APPPOOLASP.NET v4.0 Classic

Exception information:

Exception type: SecurityAccessDeniedException

Exception message: Access is denied.

Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()

at Default2.Page_Load(Object sender, EventArgs e)

at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:

Request URL: http://localhost/StratosTest/Dashboard.aspx

Request path: /StratosTest/Dashboard.aspx

User host address: ::1

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOLASP.NET v4.0 Classic

Thread information:

Thread ID: 4

Thread account name: IIS APPPOOLASP.NET v4.0 Classic

Is impersonating: False

Stack trace: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()

at Default2.Page_Load(Object sender, EventArgs e)

at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

View 1 Replies

MailMessage Sent To Any Adress From Windows Forms Application, But Not From Asp.net Application, After Both Are Using The Same SMTP-server?

Jan 27, 2010

I'm experiencing a to me mysterious error when sending e-mails through a SMTP-server from an ASP.NET web application. I get the famous error "unable to relay for xxx@yyy.zzz". What's mysterious to me is that when I cut and paste the exact same code that sends the e-mail into an usual .NET Windows Forms application, send the e-mail with this application, it all works just fine. This made me think that perhaps the problem is that the ASP.NET application runs as NETWORK SERVICE while the Windows Forms application runs on a domain user account, but it turns out that I have another ASP.NET application sending e-mail through the same SMTP-server running under NETWORK SERVER at the same IIS, and this application does not experience this problem.

I've further tried to send e-mails through the SMTP-server manually by telnet the smtp-server on port 25 and running the SMTP-protocol manually, and it all works fine. The SMTP-server is not configured with any kind of authentication or SSL.

Another mysterious fact is that the ASP.NET application can send e-mails from an adress within the same domain to an e-mail adress within the same domain, but not to any adress outside of the domain. But the Windows Forms application, that uses the exact same code, can send e-mails from any adress to any adress both within AND outside of the domain.

So to summarize:

The ASP.NET application can send
e-mails from addresses within the
domain to adresses within the domain,
but not to addresses outside of the
domain.
A Windows Forms application running
the same code on the same computer
can send e-mails from ANY address to
ANY address.
Another ASP.NET application on the
same IIS running under the same
account (NETWORK SERVICE) can send
e-mails using the same SMTP-server
from ANY adress to ANY adress.
There is no authentication configured
on the SMTP-Server.
Both the ASP.NET application and the
Windows Forms application utilizes
the System.Net.Mail.SmtpClient class
to send a
System.Net.Mail.MailMessage.

The code that sends the e-mail massage is:

private void button1_Click(object sender, EventArgs e)
{
MailMessage mesasge = new MailMessage(txtFrom.Text, txtTo.Text, "Test mail", txtBody.Text);
SmtpClient client = new SmtpClient();
if (!(string.IsNullOrEmpty(txtUserName.Text))) //Is false since txtUserName.Text is empty
client.Credentials = new System.Net.NetworkCredential(txtUserName.Text, txtPassword.Text);
client.EnableSsl = false;
client.Host = txtServer.Text;
client.Port = 25;
try
{
client.Send(mesasge);
}
catch (Exception ex)
{
txtResponse.Text = ex.Message;
}
}

As far as I can understand, this should be a matter of configuration rather than coding issues.

View 2 Replies

C# - Application Running Under A Less Privileged Account Start A Process Executing Another Application Under An Administrative Account?

Mar 9, 2011

I am logged in as the administrator when I installed an application named pdflatex.exe on my server. This application works as a converter from LaTeX input file to Pdf file. I host an Asp.net MVC 3 application running under an Application Pool Identity with Load User Profile = True. The Asp.net MVC 3 code contains a code that executes pdflatex.exe using System.Diagnostic.Process instance as follows:

Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.StartInfo.Arguments = "-interaction=nonstopmode " + inputpath;
p.StartInfo.WorkingDirectory = @"c:mydomain.comworking";
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "pdflatex.exe";
p.Start();
p.WaitForExit();

From the scenario above, the web application runs under a restricted acount but it executes an external application under a default account that I don't know. Can an application running under a less privileged account start a process executing another application under an administrative account?

View 2 Replies

Can Windows Service Application Share A Bin Folder With A Web Application

Jan 5, 2011

I have some common dlls that are referenced by both a windows service application and a asp.net web application. I don't want to make separate copies of the dlls and I also don't want to put those dlls into GAC. I try to put that service application under the same root folder as the web application so that they can share the same bin folder. I am not quite sure if this will cause any problems? I did find the web application had random session timeout, but not very often. Not sure if it was caused by the shared dlls.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved