How To Protect The DLL / Applying Time Limit (trial Period ) To Entire Application Usage
Dec 21, 20101. I need to protect DLL
2. Applying time limit (trial period ) to entire application usage.
1. I need to protect DLL
2. Applying time limit (trial period ) to entire application usage.
I have a website that is going on a public server so I want to password protect it, but for a while only myself and a couple of others will be using it. I will eventually get it together to do it right and have the users in a database etc, but for now, I just want to put a couple of users with their passwords in the web.config and have them authenticate on a login page.
View 2 RepliesI have set Private Memory limit of 200mb in IIS 7 for an application pool. The Private Working Set memory(Task Manager) for the application is always below 125mb but the number of page faults have increased a lot and application cache is getting cleared frequently after setting the limit.
I haven't set any limit on Virtual Memory.why the cache is getting cleared even when the Private memory used is below the allocated memory?
I have problem in publishing news.My module is about news.I want to develop function as publishing news in given time period,such as 1 hour or 2 two hour later it will automatically be taken up,i don't want to put it in web immediatelly.
View 6 RepliesI want to redirect users when they reach a page in my web project. I want this to happen in page load after say 2 seconds.
I'm using this code on page load:
[Code]....
With this code, as soon as the page loads it redirects to that page. There are some text in this page that i want the user to see while the page is redirecting. What are my options? Should i use Timer? and tell it to redirect after two or three ticks?
I have a timer on a page in ASP.NET.
After a certain period of time elapses, I want to disable the timer.
i am looking for solution to create trial version for web application at client side?
View 3 RepliesI want that a specific asp.net control get refresh within a specified time period like there is datalist and i want that its content will be change after 10 sec.
View 4 RepliesLet's say we are building some public service that grabs the setup of a user (what server, user and pwd he wants to perform the call), logs in into that server and do some processing...
the process takes about 15 seconds to complete each user has a different setup (server/user/pwd), so the process needs to run against each one
if 1000 users tells the system to run the method at 1:00PM
How can I insure that the method is processed in the next 15 minutes?
What should be the correct approach to this little problem?
I'm thinking that I need to do something Asynchronously, and parallel processing could speed up things, maybe throttling the processes, maybe execute 100 calls per each 30 seconds?
I never did something like this and would love to get your feedback on ideas and future problems just to spend 100 hours of work and realize that I took a wrong road
I have a requirement of automatically disabling a Button (Submit Button) after certain period of time, say 5 mins. How can we achieve this. I use C# and Framework 2.
View 6 RepliesIn my project I have the requirement as follows.sending a mail to registered users with sign in link details.After a certain period of time elapses, the signin link should not work when user clicks on it.
View 1 RepliesMy web site seems to be running quick. I have not deployed my web site yet, so I am the only one using it right now. The problem I have is if I am testing out the site and then I stop using it for a short period of time, when I come back the web site takes about 8-10 seconds to startup again. I did not rebuild the site I just simply stopped using it for a short period of time. It seems like after a short period of time I have to 'wake it up' again. Is this normal? How can I prevent this?
View 2 RepliesIn our application, we store the most number of users online. We do this by tracking what page each user is on currently and upon login, delete users who have been inactive for X minutes and then take a count of the users online, overwriting the most number online if this is higher.
How can we change this to track the number of users online over a time period, so we can look at a line graph of the number of users online. I guess we'll need a cron to run every 1/2/5/10/20/30/60 minutes to track the number online? Then how would be store this data, the table would get very large. I would think the likes of Statcounter/Analytics would have a better way of storing this data.
I have Website Application , in which i have method ..i want to execute this after every 10 days automaticlally ..what is the concept of doing this , provice some code etc. if possible ..
my method includes some server side processing..
what pourpose we are using web service instead of traditional data-tier functionality. I aften seen some of the persons using webservice to interact with
Friend-end to back-end.
I also need some of the real time project demos has been done with the webservice functionality for my reference.
Because of some situation , I had to save users password in session state for short period of time .it unsafe holding some important data in session state?
View 5 RepliesHow to Model Pop Up Extender control invisible by certain time period.
View 1 RepliesI use ASP.NET C# in a Web Application Project (not web site).
I would like use ASP.NET Theme feature for my Web Application.
From the root of my project I am able to create a special folder App_Themes
Root/App_Themes --WORKS
but I need have App_Themes folder in a different level, in my case:
Root/Cms/App_Themes --DOES NOT WOEK
I notice that Visual Studio does not allow insert an App_Themes in a sub folder.
my code
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
[code]...
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 74.125.155.109:465Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: 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 74.125.155.109:465Source Error:
[Code]....
Line 34: mailClient.EnableSsl = true;Line 35: mailClient.Timeout = 1000000; Line 36: mailClient.Send(mailMessage);Line 37: mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.Delay;Line 38: mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
Source File: d:My
WebsitesBenefitsBenefitsDefault.aspx.cs Line: 36
Stack Trace:
[Code]....
[SocketException (0x274c): 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 74.125.155.109:465] System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239 System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224[WebException: Unable to connect to the remote server] System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +5482743 System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +202 System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21 System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +332 System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +160 System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +159 System.Net.Mail.SmtpClient.GetConnection() +35 System.Net.Mail.SmtpClient.Send(MailMessage message) +1213[SmtpException: Failure sending mail.] System.Net.Mail.SmtpClient.Send(MailMessage message) +1531 Benefits_Default.Page_Load(Object sender, EventArgs e) in d:My WebsitesBenefitsBenefitsDefault.aspx.cs:36 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
i want to know how expire the session after certain period of time which has been created once the customer logged in to the page
View 3 RepliesI got server error when downloading pdf file from my webpage in asp.net."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 in asp.net."
Code:
protected void btnPdf_Click(object sender, EventArgs e)
{
imgphoto.Src = "http://localhost:51350/Project/imagesLogin/black.png";
string imgurl = Convert.ToString(imgChart.ImageUrl);
imgurl = imgurl.Replace("~", "");
imgChart.ImageUrl = "D:/Project" + imgurl;
Chart1.Visible = false;
[code]....
I'm going to publish an asp.net pre-compiled web site on shared hosting account but I don't want my code to be copied and able to run on another domain. I need to check domain and if not example.com or www.example.com redirect to error page or show error as response.
EDIT: Here is my solution based on given answers
void Application_BeginRequest(object sender, EventArgs e)
{
string[] safeDomains = new string[] { "localhost",
"example.com", "www.example.com" };
if (!((IList)safeDomains).Contains(Request.ServerVariables["SERVER_NAME"]))
{
Response.Write("Domain not allowed!");
Response.End();
}
}
I have built an ASP.NET application that needs to be password protected. This application will be installed on multiple offline computers, and we need to make sure that when being installed it requires a password. But even if it requires a password, someone can easily copy the database and the published folder and duplicate the application on their system right?
I need a way to prevent this. It should only work on laptops that we have installed it on.
i have a problem in my asp application . Im trying to protect the path for my application using this code :
Uri t = Request.UrlReferrer;
all the steps for applying payment gateway in my Application
View 3 Replies