|
Without knowing anything at all about your application, this question is impossible to answer.
Is it a Windows Forms app, WPF, ASP.NET, Silverlight, ... What? What does the application do? What is it doing when this "leak" occurs? Is it idle? Is it doing something in the background? Is it using some 3rd party components? What's the error message, if any, when it crashes?
Where are you getting this statistic from? DO NOT USE TASK MANAGER!
|
|
|
|
|
nishantenet wrote: without any request .
Obviously one thing is apparent - something is still running.
So figuring out what is running might lead to a solution and at worse would at least localize where the problem is.
|
|
|
|
|
Hi,
I am using MSI to create setup. I already added prerequisite (.NET framwork 3.5) into MSI.
I have selected option i.e. Download prerequisite fromthe same location as my application
While installing setup on windows XP SP3 its showing error .NET framework is not installed on the machine. Setup is not installing .NET framework from MSI.
Even I added all framework files and folders into application folder and program files folder.
Is I am doing any wrong? can pls let me know the steps how can i used my prerequisite .NET framework 3.5 on windows XP SP3 even not framework is available.
Thanks
sjs
|
|
|
|
|
If you're using the Setup and Deployment project to create your .MSI, it will NOT install the .NET Framework for you. It MUST be installed before you launch your setup .MSI.
If you use some other install creation app, like InstallShield, that will give you the option of installing the .NET Framework for you.
|
|
|
|
|
Hi All,
I am using EF 1.0 trying to update a column called doc id which is nullable column, but the EF is updating the other column also along with this column. There is no other place that I am updating that column mistakenly.
Is there any way that I can avoid this kind of situation happening. Because it is happening only in Integration Env, but not in Dev. I dont know what to do now. Please help me.
Below is my code which is updating doc id field:
Using _databasefactory As New DatabaseFactory()
Dim context = _databasefactory.DatabaseContext
If Not String.IsNullOrEmpty(temp_doc_id) And Not String.IsNullOrEmpty(doc_id) Then
Dim reqs = (From r In context.requests Where r.claim.claim_no.Equals(claim_no) And r.temp_doc_id.Equals(temp_doc_id)) 'r.empl_accnt_no.Equals(emplacctnumber) and _
Dim i = reqs.Count()
If Constants.EnableLogger And logr IsNot Nothing And Constants.DirectoryExists(Constants.GetLoggerDirectory()) Then
logr.log(1, "Begin RequestEntity : UpdateOrInsertRequestDocId, claim_no, temp_doc_id, i: " + claim_no + ", " + temp_doc_id + ", " + i.ToString())
End If
If Constants.EnableLogger And logr IsNot Nothing And Constants.DirectoryExists(Constants.GetLoggerDirectory()) Then
logr.log(1, "Inserting RequestEntity : UpdateOrInsertRequestDocId emplacctnumber, ManualClaimNo, doc_id, temp_doc_id, request_status, requestreceivedhow: " + _
emplacctnumber + ", " + ManualClaimNo.ToString + ", " + doc_id + ", " + temp_doc_id + ", " + request_status + ", " + requestreceivedhow)
End If
Dim res = 0
If reqs Is Nothing Then
Dim rq = New request()
rq.claim = (From r In context.claims Where r.claim_no.Equals(claim_no)).FirstOrDefault()
rq.empl_accnt_no = emplacctnumber
rq.manual_claim_no = ManualClaimNo
rq.doc_id = doc_id
rq.temp_doc_id = temp_doc_id
rq.request_status = request_status '"OANEW"
rq.request_received_how = requestreceivedhow
rq.last_update_ts = DateTime.Now
rq.created_ts = DateTime.Now
rq.created_by = created_by
rq.last_updated_by = lastupdated_by
rq.comments = String.Empty
context.AddTorequests(rq)
If Constants.EnableLogger And logr IsNot Nothing And Constants.DirectoryExists(Constants.GetLoggerDirectory()) Then
logr.log(1, "Inserting RequestEntity : UpdateOrInsertRequestDocId emplacctnumber, ManualClaimNo, doc_id, temp_doc_id, request_status, requestreceivedhow: " + _
emplacctnumber + ", " + ManualClaimNo.ToString + ", " + doc_id + ", " + temp_doc_id + ", " + request_status + ", " + requestreceivedhow)
End If
Return context.SaveChanges()
ElseIf reqs.Count() <= 0 Then
Dim rq = New request()
rq.claim = (From r In context.claims Where r.claim_no.Equals(claim_no)).FirstOrDefault()
rq.empl_accnt_no = emplacctnumber
rq.manual_claim_no = ManualClaimNo
rq.doc_id = doc_id
rq.temp_doc_id = temp_doc_id
rq.request_status = request_status '"OANEW"
rq.request_received_how = requestreceivedhow
rq.last_update_ts = DateTime.Now
rq.created_ts = DateTime.Now
rq.created_by = created_by
rq.last_updated_by = lastupdated_by
rq.comments = String.Empty
If Constants.EnableLogger And logr IsNot Nothing And Constants.DirectoryExists(Constants.GetLoggerDirectory()) Then
logr.log(1, "Inserting RequestEntity : UpdateOrInsertRequestDocId, emplacctnumber, ManualClaimNo, doc_id, temp_doc_id, request_status, requestreceivedhow: " + _
emplacctnumber + ", " + ManualClaimNo.ToString + ", " + doc_id + ", " + temp_doc_id + ", " + request_status + ", " + requestreceivedhow)
End If
context.AddTorequests(rq)
Return context.SaveChanges()
Else
Dim rq = reqs.FirstOrDefault()
rq.doc_id = doc_id
res = context.SaveChanges()
Return res
End If
End If
End Using
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
HI
I am using Visual Studio 2008 to develop web application in Windows XP Internet explorer-8. If i run first time i wont get any error. In 2nd time i will get Unable to start program http://localhost:1837/default.aspx after that every time it is coming like that. I am not able to get debug point. How to solve this issue.
If anybody knows, please reply me.
thanks in advance.
modified 19-Dec-12 6:13am.
|
|
|
|
|
Try the ASP.NET forum[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have an application that looks at the system time and records the datetime. We give out demos and license by time.
One customer claims to have blocked my application from seeing the time so it always runs. He wouldn't say how but just said he would "not let it look at the time." Before I dig into this has anyone heard of this or know how to do it? He's not really a hacker but is tech savy enough to find things other people have done.
|
|
|
|
|
Without knowing how you are looking at the time it's impossible to guess how he is blocking it.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I'm just using
DateTime.Now.ToUniversalTime()
|
|
|
|
|
Have a look at: http://www.nirsoft.net/utils/run_as_date.html[^]
It hooks the API calls to read the system clock and returns a specified date/time to a particular program.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This is blocked at work but I'll take a look at it when I'm at home. Thanks,
|
|
|
|
|
At the min, any user can book a holiday for ay employee,
I have added [Authorization] to the controllers, and @if (User.Identity.IsAuthenticated)
in the layout so only logged in users can view the pages. But how can I go about only allowing users to book a holiday for them selves
something like if loggedInUserID(is this assigned automatically when a user is created?) =currentPersoID, although this is only a guess and I would prob have to assign the same loggedInUserID to personID.
any suggestions?
Thanks
|
|
|
|
|
This is still not the ASP.NET forum.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
So at the top of my controllers i've added in [Authorize], So far so good only logged in users can access these pages (Person and Holiday)
However the tabs in the homeController which navigate the users to these pages are still displayed...coming from the layout.cs
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Person", "Index", "Person")</li>
<li>@Html.ActionLink("Holidays", "Index", "Holidays")</li>
How can I only get these tabs to display if a user is logged in.
I have tried the approach of adding in a bool in the AccountController.cs
else
{
loggedIn = true;
return RedirectToAction("Index", "Home");
}
}
else
{
loggedIn = false;
ModelState.AddModelError("", "The user name or password provided is incorrect.");
}
but then how do I access this from the layout.cs?
Is this the correct approach. Please advise. thanks
|
|
|
|
|
Don't you think this would be more appropriate in the ASP.NET forum?
|
|
|
|
|
|
My website is using asp.net with c#. Recently i am adding a new function by adding a flash webcam photo capture. In local it can function well, it can capture photo, save into database, and display the photo. However, after deploy it cannot funtion well on my server. The webcam still can function. But it cannot convert and save that photo into database. I suspect the actionscript cannot fire... Do i need to install any flash player into my server? Anybody can help me? Pls help... Urgent. TQ
THIS IS MY REFERENCE LINK...
http://www.dotnetspider.com/resources/38150-Capture-save-images-from-Web-camera.aspx[^]
|
|
|
|
|
Does your database allow remote connections? Most hosted solutions have a firewall, preventing it.
|
|
|
|
|
Yes, i have opened all the access... Any other idea? TQ
|
|
|
|
|
lhsunshine wrote: Yes, i have opened all the access...
I'd doubt that. Create a small test-page from where you open a connection to the database, and try with that.
Are you using a hosted solution, or is this your "own" server?
What does the page do? Does it show at all? Does it show an error? What error?
As a side-remark; Every members' question is equally urgent.
|
|
|
|
|
It does not show any error. When i click the "capture" button photo, the photo is captured. But does not save into the database...
|
|
|
|
|
Paste your database-save-code here, and we'll have a look. I assume you added an exception-handler to the example from the tutorial?
|
|
|
|
|
Sorry for late reply. This is my code. TQ
Sorry for late reply. This is my code. TQ
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Data.SqlClient;
using Pic.User;
using Pic.Action;
using Pic.Common;
namespace Pic
{
public partial class ImageConversions : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
clsAction action = new clsAction();
DateTime thisDay = DateTime.Now;
string time = thisDay.ToString("yyyyMMMd HHmmss");
string imgMember = time + ".jpg";
string imgPath = "MemberPicture/" + imgMember;
txtAcc.Text = Session["Cust"].ToString();
lblGeoID.Text = Session["geoID"].ToString();
//lblMNo.Text = Session["memberNo"].ToString();
//lblMName.Text = Session["memberName"].ToString();
lblMember.Text = Session["Member"].ToString();
//string memberID = Convert.ToInt32(txtAcc.Text);
int memberGeoID = Convert.ToInt32(lblGeoID.Text);
CreatePhoto();
action.ExecuteInsert(imgMember, imgPath, txtAcc.Text, memberGeoID,lblMember.Text);
}
void CreatePhoto()
{
try
{
string strPhoto = Request.Form["imageData"]; //Get the image from flash file
byte[] photo = Convert.FromBase64String(strPhoto);
DateTime thisDay = DateTime.Now;
string time = thisDay.ToString("yyyyMMMd HHmmss");
//get the file name of the posted image
string imgMember = time + ".jpg";
//sets the image path
string imgPath = "MemberPicture/" + imgMember;
//then save it to the Folder
FileStream fs = new FileStream(imgPath, FileMode.OpenOrCreate, FileAccess.Write);
BinaryWriter br = new BinaryWriter(fs);
br.Write(photo);
br.Flush();
br.Close();
fs.Close();
}
catch (Exception Ex)
{
throw;
}
}
}
}
//=======================================================================================================
public void ExecuteInsert(string member, string path, string acNo, int memberGeoID, string memberNo)
{
try
{
clsDB db = new clsDB();
clsUser user = new clsUser();
SqlParameter[] sqlParams = {
new SqlParameter("@ImageMember", member),
new SqlParameter("@ImgPath", path),
new SqlParameter("@MID", acNo),
new SqlParameter("@M_GeoID", memberGeoID),
//new SqlParameter("@MNo", MNo),
//new SqlParameter("@MName", MName),
new SqlParameter("@memberNo", memberNo)
};
db.ExecuteStoredProcedure("spAddMemberPic", sqlParams);
}
catch (Exception)
{
throw;
}
}
|
|
|
|
|
You'll have to debug the CreatePhoto method, and verify the contents of the variables. Also verify that the user has the correct access-rights to that folder.
A few remarks on the code;
|
|
|
|
|