Run MSMQ Between External Process & Site?
Jan 11, 2010
I am have made a website which entertains its users(authenticated) to send sms. Website is available to users within my local network and outside (internet). I have designed two libraries, one for sending receiving sms and other one for processing those sms messages....But whenever page is refreshed, all the objects are initialized again blah blah resulting error for port 'Acess denied' For that I used object serialization etc. But I want to put my whole sms related work to separate process and use MSMQ between my website and sms process for communication. Please guide me that how can I run that separate sms process all the time and taking commands from website to send sms to whom etc?
Requirements:
1. SMS Process (background) should not have any interface but to communicate with using MSMQ only.
2. Website should be able to communicate with that SMS Process at any time using MSMQ, that is commands to send sms to whom, show received sms etc.
I am complete with all my website and sms engine work. All put all this in website but couldnt get reliablility. Please just guide me how and where to start for MSQM?
View 1 Replies
Similar Messages:
Aug 6, 2010
I'm pretty sure the answer to this question is no, but I just wanted to get some feedback before I go down another path.
Here is my scenario. I have two websites. Website 1 is an internal website that cannot be accessed outside of our domain. Website 2 is an external website that can be accessed outside of the domain, but has access to webservices inside of the domain.
My question is, is there any possible way to display the internal page through the external page without making the internal page external.
View 1 Replies
Mar 24, 2011
I need to essentially make a command line tool available via a web interface. This tool would need to be run ON the web server, not the client machine. e.g.: someCommand.exe -aSwitch param1 param2 The tool will be in a windows integrated auth web app on an intranet. I have not had to do anything like this before, so I want to find out how others handle this, what is the recommended best practice? a quick google first showed someone using system.diagnostic.process... so to start playing I did something like this, just to see if it works, it does:
[Code]....
I won't be running cmd.exe, that's just to test with. The actual command line tool I will be using is not on my dev machince right now. . is using system.diagnostics.process, processStartInfo, and start method acceptable? my goals:
1. use recommended best practices, especially with regard to security
2. I'd like to start the command, and use ajax to display the commands output as it runs, and of course I need to know if it was successfull or not.
View 5 Replies
Feb 24, 2010
Im deploying my website onto my new server (windows 2003) from my local pc (windows 7) and my local homeserver (windows 2008) and have run in to a issue.
I have a process that starts up with the below code. It is passed a video file which gets converted.
System.Diagnostics.ProcessStartInfo StartInfo = new System.Diagnostics.ProcessStartInfo(Command, Parameters);
Them problem I have is on my new windows 2003 server it fails to work. No error or anything. Looking at the server and its taskmgr.exe I see the Process start but nothing happens.
Looking into it, everyone seems to say I need to have impersonate="true" in the webconfig which I do have, I currently have it set to the Administrator account which I use to log into remote desktop (I assume this is fine???)
<identity impersonate="true" userName="Administrator" password="********" />
This still doesn't work.. Looking in the taskmgr.exe the process is started with the username ="NETWORK SERVICE" ...
View 1 Replies
Sep 18, 2010
We need assistance with a portion of a major web application project scheduled to begin user testing within 10 days. The troublesome part of the code calls an external application when a button is clicked in Web page. When run from a command prompt or bat file, the external application, App.exe, runs perfectly producing the desired result. We created a test page and a small console application, Con.exe, to test the button code with a known quantity. The test application runs perfectly when the button in the Web page is clicked. However when we change the code to run App.exe instead of Con.exe, the App.exe code will not execute. We even tried creating a bat file to execute App.exe. Like the exe, the bat file executes from the command prompt or when double-clicked,but fails to run when called as a process from the button click event. Can anyone assist us? Here is the C# code: (.Net 3.5 sp1)
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Diagnostics;
namespace WebButtonTest
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
protected void Timer1_Tick(object sender, EventArgs e)
{
int checkNumber = 0;
if (Session["checkNumber"] != null).......
[Code....]
View 2 Replies
Mar 24, 2011
How do you use and Html.ActionLink to go to an external site?
View 9 Replies
Mar 31, 2010
I have a Site.Master in my ASP.NET project which defines a HEAD section as follows
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title id="MasterTitle">MyApp</title>
<link rel="icon" href="Content/icon.ico" type="image/x-icon" />
<link href="Content/mycss.css" rel="stylesheet" type="text/css" />
<script src="Content/mycode.js" type="text/javascript"></script>
</head>
In the mycode.js file, I have a function called GetSels();
function GetSels()
{
//do stuff
}
If the GetSels function is defined in Site.Master, GetSels is callable. If it's in mycode.js, it's not. Every code example I've seen seems to say this should work.
View 2 Replies
Jul 30, 2010
I am developing one asp.net application and I have a requirement that I need to fetch html of page: [URL] I can easily do it with asp.net code using httpwebrequest but I have to do it from client side either using javascript or JQuery or any other thing. This is required becaues REQUEST TO GET PAGE [URL] MUST COME FROM CLIENT AND NOT FROM SERVER DUE TO IP ISSUE.
View 4 Replies
Jun 18, 2010
I'm trying to post a value to an external site and have managed to piece it together using HttpWebRequest. My problem is that this behaves like a server.transfer. ie it maintains the url. As a result the page I'm posting to doesn't link to any of it's images or stylesheet. Can anyone give me a simple way to do an old style post to an external site?
View 5 Replies
Mar 16, 2010
Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80070005.
I am trying to open an external site from visual studio and i keep getting the error above. It works fine from my local host.
View 8 Replies
Jun 16, 2010
I work for an agency that has been responsible for maintaining a client's .net 3.5 website for a number of years along with another agency. Work is farmed out by the client to both agencies on a pretty much ad-hoc basis.
The site is quite old and has a structure and deployment process to match. The site is setup that developers have local copies of the sites. There is a staging environment, where client feedback and approval happens, followed by the live environment. There are a number of scenarios where work from one agency will be on the staging environment awaiting approval, and changes from the other agency need to go through staging, approval and deployed to live without the original changes being affected. Most of the time we get away with it but it's far from ideal as not all conflicts can be resolved.
Up until recently we had still been on Sourcesafe but have moved over to Subversion and are running into many more scenarios where work is overwritten. This obviously isn't a fault with subversion, rather that the locking of projects and files in Sourcesafe served as a good indicator to developers from both agencies that someone was working on that project or file. The process previously was that you checked out a file from sourcesafe and kept it checked out until changes went live (acknowledge that this is a rubbish process hence the desire to move away from sourcesafe and such a model)
The trouble is that even though we know that the way we do it now is bad, I'm at a bit of a loss as to how to restructure the overall site and deployment process to make it "better". Some ideas we've pondered are:
Separate dev, test and live branches in subversion so we need to commit and build the appropriate branch before deploying (not really sure how to make that work)Single repository for both agencies but a separate staging environment for each. Staging environment could then reflect the changes assigned to each agencyA separate instance of the staging site for each branch
View 1 Replies
Sep 30, 2010
I am using Web Expression and Access database to build an aspx page.I am displaying records using listview Tiled option and DataPager is enabled also which is creating multiple pages.
View 1 Replies
Jan 14, 2011
I'm updating an old process that already exists, which works as follows:
The user submits a form which runs the following asp (simplified, names changed):
<%
set rb = Server.CreateObject("RecordBuilder.SomeObject")
rb.Calculate()
rb.StartProcess()
%>
The RecordBuilder.SomeObject was an old VB6 DLL, I don't have VB6, so I converted it to VB.NeT 4.0
The call to Calculate() works as expected, the call to StartProcess() fails.
StartProcess() is the following:
Public Function StartProcess()
Try
strProcess = "Starting process"
Dim proc = New Process()
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.UseShellExecute = False
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.FileName = "d:AppRecordProcessor.exe"
Dim procHandle = proc.Start()
strProcess = "Started process"
Catch ex As Exception
Err.Raise(vbObjectError + 9999, "RecordBuilder.SomeObject", strProcess & " failed: " & ex.Message & "<hr />Stack Trace:<br />" & ex.StackTrace)
End Try
End Function
This fails with the call to proc.Start(), however if I copy the test ASP to a .vbs file it will work as expected.
I have changed the permissions on d:AppRecordProcessor.exe to grant execute permission to the group Everyone.
View 1 Replies
Aug 5, 2010
We are working on a SharePoint Site where we have created lot of webparts. Now so far we have been creating SitePages for these webparts manually and adding webparts to those. It takes lot of time in any environment and its difficult to move from environment to environment.What is the ideal way of doing it? How can we automate sitePage creation process and hopefully add webpart to it by some scripts?
View 1 Replies
Feb 22, 2010
I have been looking around for a solution for this problem that works across different versions of Windows Server & IIS, but so far I couldn't find a reasonable solution, what I need is some sort of a script or a command line tool, that takes a certificate file (pfx) for example and then either using the same script or tool find a way to configure one website to use this certificate.
View 1 Replies
Mar 9, 2011
I'm getting an exception when trying to access an .asmx webservice within a MVC site. I've tried numerous things like updating the web reference within the console application and building another quick app to test, but can't get passed this issue. If I pull the URL out of the svc variable, I can browse to it directly.
Exception Details
System.Web.Services.Protocols.SoapException
occurred Message=Server was unable
to process request. ---> Value cannot
be null. Parameter name: uriString
Source=System.Web.Services Actor=""
Lang="" Node="" Role=""
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream
responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at ClarityIntegration.SendTrackerDataToClarity()
in [REDACTED].Reference.cs:line 78
at [REDACTED].Program.Main(String[] args)
in [REDACTED].Program.cs:line 33
InnerException:
CONSOLE APP CODE
var svc = new TrackerClarityService.ClarityIntegration()
{
Url = url,
Credentials =
new System.Net.NetworkCredential("user", "pass", "domain")
};
svc.SendTrackerDataToClarity();
svc.Dispose();
The exception was coming out of the Web Service itself. There were some global variables not being initialized directly through the .asmx call that were being initialized by the application itself.
Some simple checks on variables within the Web Service and setting what needs to be set have fixed up the issue.
View 2 Replies
May 6, 2010
We're experiencing a nasty issue in Oracle 11g Release 2 where the w3wp process takes over and entire processor core, and debugging shows that the Oracle data provider is throwing ThreadAbortExceptions infinitely. A developer found this issue by doing the following:
1) Browse a web site that uses Oracle data connections locally (http://localhost/OracleWebSite - we use IIS, not the ASP.NET dev server, for all of our sites). This ensures that the w3wp process is running and that an active Oracle pool of connections exists in the app pool.2) Stop the web site (or perform a Rebuild All operation in Visual Studio on the web site in question).Our Oracle connection handling in the affected applications (all Oracle web apps) is well-established and robust. This issue does not occur if we disable connection pooling. This issue does not occur in Oracle 11g Release 1.
View 1 Replies
Dec 13, 2010
We have one application, which have to store multiple emails in the msmq and pass to different application...so please tell me how to implementt msmq in .net?
View 1 Replies
Mar 23, 2010
A part of the application I'm working on is an swf that shows a test with some 80 questions. Each question is saved in SQL Server through WebORB and ASP.NET. If a candidate finishes the test, the session needs to be validated. The problem is that sometimes 350 candidates finish their test at the same moment, and the CPU on the web server and SQL Server explodes (350 validations concurrently).Now, how should I implement queuing here? In the database, there's a table that has a record for each session. One column holds the status. 1 is finished, 2 is validated.
I could implement queuing in two ways (as I see it, maybe you have other propositions):A process that checks the table for records with status 1. If it finds one, it validates the session. So, sessions are validated one after one.
If a candidate finishes its session, a message is sent to a MSMQ queue. Another process listens to the queue and validates sessions one after one.Now:What would be the best approach?Where do you start the process that will validate sessions? In your global.asax (application_start)? As a windows service? As an exe on the root of the website that is started in application_start?To me, using the table and looking for records with status 1 seems the easiest way.
View 3 Replies
Dec 13, 2010
We want to implement MSMQ in windows 2007, is it possible? tell me the prerequisites for MSMSQ?
View 1 Replies
Oct 31, 2010
I have a Web App and a service sitting on the same machine and communicating via message queues. The problem I'm experiencing is that about half of the time the messages I send from the service are not arriving to the reading code in the web app. Some of them will arrive and some will not. The messages are sent with at least 1 second delay between them.
To make things harder - I don't see ANY of my messages in the management console, even those that do arrive. I turned journaling on, but see no difference. I have full access to the queue.
The reading code looks like this:
public SomeMethod
{
...
MessageQueue respQ = Utils.GetResponseQueue();[code]....
View 1 Replies
Apr 6, 2010
I'm seeing a really strange error that I'm having a difficult timetracking down. I think its related to my configuration of Rhino ESB, though I'm not sure
if RSB is actually causing it, so I figured I'd ask and see ifanyone else has come across this in any other usages of MSMQ.I'm using RSB as a client in a web app (ASP.NET, the client runs in the background). The client talks to a windows service via the MSMQ binding for RSB. Restarting the service never appears to have an effect on MSMQ, neither does restarting IIS by hand. However, whenever I actually restart the computer itself, MSMQ always refuses to start back up, claiming that a "queue is in an inconsistent state". Attempting to start MSMQ manually results in the same error, effectively rendering the MSMQ install completely useless. The only way to solve it is to actually remove then reinstall MSMQ.
The only information I've found via the almighty Google are references to a problem in MSMQ 2.0 (this problem is occurring in MSMQ 4.0). I've verified that Dispose is being called on on the bus at shutdown, in both the service and the web site.
View 1 Replies
Dec 31, 2010
I am working on live trading system, in this web system i have to show live data so i am calling my store procedure for bind my data. I have few questions -
Is it possible to use MSMQ in web ?
Is it possible to use socket programming in web ?
Its because i am calling SP in every 5 seconds and its very lengthy. I want to use socket programming or MSMQ in LIVE trading system because if any thing update or modify in tables then only web page get notification from MSMQ or Socket and i will bind my page then only. And if possible then its secure and perfect for web live environment ?
View 8 Replies
Apr 12, 2010
To meet the needs of a colleague, I must get plian text into a MSMQ message queue. Trouble is, Sytem.Messaging results in a body wich defaults to xml content. I had thoght that this would get round the problem - but it doesn't:
[Code]....
The body content looks rather strange actually - it reads:
54 65 73 74 20 54 65 78 Test Tex
74 20 4D 65 73 73 61 67 t Messag
65 e
Any thoughts on how to get rid of all those numbers and just have a plain text body?
View 4 Replies
Dec 16, 2010
We need to integrate creditcard/paypal payment process using paypal gateway in our asp.net web application.The process goes like this:User picks item in our Web site User fills out order info and goes to our payment option page User selects PayPal as payment User gets PayPal payment process in our site (without payment gatway redirection)nally we need to confirm to PayPal that we want to process this order and PayPal confirms to us that the order went through.
View 2 Replies