It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am using Thread for background process in asp.net web application.
Now to the question. Are there any reasons for me not to use multiple threads in a web application? Or do it exist specific guidelines for usage of multiple threads in a web application?
IIS is a multi-threaded server. In general, its good to let IIS worry about the threads.
Know that a background process thread in IIS would be subject to a lot of constraints.
It can live only as long as your request thread, and IIS times these out.
Long running tasks are best pushed out of IIS to
A service process
A WCF based web service
A SQL server job
IIS is not designed for long running jobs. It is designed to process requests quickly.
Yes you can do multithreading in ASP.NET, although the need should be very
rare since each page request is executed on a separate thread anyway. I agree that the need will rarely come up. One such need is if several
operations need to take place, and each one might take a bit of time. In
that case, all four could be started on separate threads, and the page could
return after all four threads complete their work. Of course, designing a
page like that would require more than intermediate skill with ASP.NET.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am building a web application, where a function is needed where i could make the web app send a specific stream of data to the desktop application, which is running on the web server where the website is also running on.
In example: you push a button, a certain code (probably an integer/string code) gets sent to the desktop app which then does something.
Why it's needed/wanted: we currently use this desktop application to quickly launch specific gameservers, without having to fiddle around with a million different shortcuts to each server, for each different configuration.
Now we'd like to have a web application to work as a "middle man" so certain people could start gameservers without having to connect to the server through RDP.
Extra info: the desktop app is currently written in VB.Net, but rewriting it in C#.Net shouldn't be a big problem, if it's needed.
Does anyone of you guys know of any good tutorials or techniques to do this, or have a better solution for my needs?
How about setting up some code in your Web app to write data to a DB. You could then have your desktop app poll the database using a backgroundworker. If it finds new records then it can continue processing.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am back to the job market next month. I am looking for an asp.net developer job. my current job does not use web service at all. last time, I am using it was 6,7 yrs ago.
If I need to pick it up, where to start. I searched on amazon.com, those .net web service books are really old, they were written in 2002. Does that mean web service is outdated, no one using it? is there a newer tech to replace it?
I did see a few newer books, but they are RESTful web service, whats the difference between web servie and RESTful web service.
please let me know what you are currently using and where should I start learning.
I learned web services by just tinkering around and looking at code examples.
Here are a few resources to get you started. If you have more questions, feel free. :)
http://msdn.microsoft.com/en-us/library/ms972326.aspx
http://www.asp.net/web-forms/tutorials/aspnet-ajax/understanding-asp-net-ajax-web-services
http://www.codeproject.com/Articles/1231/ASP-NET-Web-Service
http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-and-call-a-simple-web-service-in-aspnet
WCF is the successor to web services. WCF contains a lot of bindings they are ways how you bind clients and server. You can use BasicHttpBinding if you need compatibility with clients that used ASP.NET Web services (ASMX-based services).
And now about books. I have found Programming WCF Services very useful. But it doesn't contain full information about security.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is it possible to connect to a DATABASE which is in WEBSERVER through HTML5 only without using ASP.NET, JSP etc.
Html5 is a browser display language. It has no inherent methods or capabilities to connect to server side technology. You will always need a server side technology to connect to a database, even when using AJAX through a service. When you think about it, isn't this how you should want it? Would you really WANT to have a client connect directly to your database for any reason? You'd be exposing authentication information and allowing direct public access to your data store. Not terribly sensible.
The short answer is "No".
The slightly longer answer is "Maybe, it depends". e.g. If your database is CouchDB, then it is possible to host HTML documents directly on it (as an attachment to a regular CouchDB document). These can include JavaScript which can hold your application logic.
There is a specification called Web Sql Html 5, which is a variant of SQL. Unfortunately, this specification is stopped. You can see more details on these links.
Web SQL Database
HTML 5 Web SQL Database
Introducing Web SQL Database
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have installed alfresco community edition and want to develop a web application having database connectivity.
I have developed that application using jsp, servlets but want to develop the same application in alfresco.
Can anybody help where to start?
I have written a series of tutorials for people new to the Alfresco platform. I humbly submit those as a good place to start. There are also a number of books available on Alfresco.
It is a little hard to tell what you are trying to do from your brief description, but if you are trying to perform CRUD operations against the repository, I strongly suggest that you start with the Content Management Interoperability Services (CMIS) standard because that gives you a vendor-neutral, language independent way to talk to Alfresco or any other CMIS-compliant repository. My tutorials cover CMIS. You also might be interested in OpenCMIS, which includes a CMIS client API for Java.
That should get you started.
One of the more documented ways is to use Alfresco Web Services Client (I am using alfresco-web-service-client-3.4.d). Its a SOAP client generated from the WSDL provided by Alfreco.
There are good examples on the web. Google for Alfresco+Web+Services+Ingres.
If you have developed the application, then it will definitely help you know the flow and understanding of the application.
You need to play around with alfresco, check their website: http://www.alfresco.com/
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can you scan directly from an asp.net page or even an embedded Silverlight object?
Silverlight doesn't have access to local devices like scanners. ASP.NET pages run in the web browser, so they also don't have access to scanners.
What are you trying to accomplish?
If user can use the 'Windows Fax and Scan' utility to scan the document and save it in the local hard disk, You may use Silverlight OpenFileDialog and read the document and save it on the server.
I've done exactly this in a few company website applications that I've worked on.
You have to use an ActiveX control to gain access from the client's browser to the configured TWAIN scanner on the machine. Once you have access you can then initiate the scanner via a webpage button, scan the document and use the newly delivered image object within your website code.
I'd recommend looking at an already developed activex component library to do this for you. An example being http://dynamic-web-twain.smartcode.com/info.html
The downside of this approach is obviously ActiveX only works with IE and requires the user to trust your website. If your user base is a trusted company or are internally based then this should not be a problem.