|
Actual Source code exist in vs2010, Now i am converted into vs2012, this source code working fine for some days, but recently i got this error.
Compiler error Message : Metadata file 'C:\Users\Arka\AppData\Local\Temp\Temporary ASP.NET Files\root\5c0b21a7\1cd1610d\App_Web_kog0qzeo.dll' could not be found
how to solve this issue.
Please help me....
Thanks in Advance..
|
|
|
|
|
The message seems quite clear; check the location for the file in question.
|
|
|
|
|
Something went wrong with your ASP.NET temp folder (there should be files from older - 2010 - compilation that prevent 2012 to create new ones but also prevent 2012 to overwrite them...) - my advise is to delete it (wipe it out!) and recompile your project under 2012...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hi friends
Flipkart Api can i use in asp.net
If Possible can give me sample Code
Thank You
|
|
|
|
|
I think there is no api for FlipKart. There is some affiliate program. If you want to know more ask to affiliate@flipkart.com
|
|
|
|
|
|
Hi friends
Please help me
how to use datapager with repeater in asp.net
Thank You
|
|
|
|
|
|
yes this is a good solution
Sankarsan Parida
|
|
|
|
|
Hello,
I am using ASP.Net to call crystal report..Not able to display the report using chrome browser but working fine with IE and Firefox.
Chrome version: 36.0.1985.143 m
Crystal Report Viewer version: 11.0
PLease help me in this regard.
Thanks,
SMA
|
|
|
|
|
You need to right click on the element and select inspect element, and verify or inspect the element to see what is wrong. It's not a common problem, so you need to do some detective work on it.
|
|
|
|
|
Good day everybody. Please, is it possible to call the onitemcommand of datalist control on page load event. If yes, how can it be done. Please help
|
|
|
|
|
Please do not repost the same question.
|
|
|
|
|
Please, i didn't meant to repost same question. It was network condition and i didn't know my question was already posted. Pardon the mistake
|
|
|
|
|
Good day everybody. Please, is it possible to call the onitemcommand of datalist control on page load event
|
|
|
|
|
|
Thanks Richard. I followed the link you suggested but that is not what i want. I know how to add the onitemcommand and how to call it. What i want is, i want to call the onitemcommand event on page load without waiting for click. Below is example of what i want.
Html
<pre><asp: DataList ID="dtl" runat="server" onItemCommand="action"/></pre>
code behind
<pre>Sub action(ByVal obj As Object, ByVal e As DataListEventArgs)
MsgBox("Hello")
End Sub
</pre>
the msg can only show when a button inside datalist is click. How can i make the msg show on page load? Thanks.
|
|
|
|
|
That's never going to work - you're trying to display a message on the server.
If you're lucky, you'll get an exception telling you that the current process is not interactive.
If you're not lucky, the message box will pop up on the server, where nobody will see it, and your page will hang waiting for someone to click the "OK" button.
The code might appear to work when you test it from Visual Studio, but that's only because you're testing it locally, so the server and client are the same machine. As soon as you deploy it to a real server, the code will fail.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
Respected sir,
I am student of final year B.Tech.(Information technology).plz suggests me some projects related to application software....
|
|
|
|
|
It is unlikely that we can make a valid suggestion, since we know nothing about you, your interests or experience. Find a subject that interests you and think of some application that would be useful in that field. Even a simple database and reporting system might have some useful application.
|
|
|
|
|
Yes, I am agree with Rechard.
Before making Project see your Interest which you have lots of information about it.. Because less information about your project will not be complete successfully.
|
|
|
|
|
Hi to everybody
premised that I am new of this environment (VISUAL Studio/ASP), I was trying to follow the example at http://www.codeproject.com/Articles/794899/Linking-ASP-NET-MVC-with-DB-Table to this page, but I immediately find a problem during the configuration of the connection; the problem is that when I try of "to insert" the "Provider OLE DB" it doesn't pick up me him, in the sense that, in the list it doesn't make me see nothing and if click on data link i receive the message "reference to an object not planned on an object instance"
If I go on component of. NET Framework sees all the elements that begin with DB2 and iDB2 (DB2Command, DB2Connecction... iDB2Command, iDB2COnnection etc. etc.)
can someone point out me as to resolve this problem?
Thanks in advance
|
|
|
|
|
I really can't answer your question here, but did you check your firewall or network connection to your database server?
If your computer can't see the server, then Visual Studio won't be able to either.
Is your server discoverable? you may have to check your servers firewall as well.
modified 26-Aug-14 16:46pm.
|
|
|
|
|
This is very hard to explain and probably even more difficult to solve. What I am doing is removing all error logging from the MVC controllers into a single log statment in the Global.asax Application_Error event. This is the problem I am faced with. To do this I am using a method like below in a controller I refactored:
try
{
tg.updateUpproverDetails(app.RequestID, reg["RoleId"], reg["ServiceId"], reg["RegionId"], reg["MTFSiteName"]);
ViewBag.RegionId = new SelectList(uRegions, "RegionID", "RegionName", reg["RegionId"]);
ViewBag.ServiceId = new SelectList(uServices, "MTFServiceID", "MTFServiceName", reg["ServiceId"]);
ViewBag.RoleId = new SelectList(uRoles, "ABACUSUserRoleID", "UserRole", reg["RoleId"]);
List<string> mtflist = new List<string>();
string[] yu = reg["MTFSiteName"].Split(',');
if (yu != null)
{
foreach (var x in yu.ToList<string>())
{
mtflist.Add(x);
}
}
ViewBag.MtfId = new MultiSelectList(uMtfs, "MTFSiteID", "MTFSiteName", mtflist);
return View(app);
}
catch (Exception e)
{
e.Data["ErrorMsg"] = "General Unhandled Exception";
e.Data["Location"] = "UpdateUpproverDetails procedure in AdminController";
if (e is DataException)
{
e.Data["ErrorMsg"] = "Data Exception";
e.Data["Location"] = "UpdateUpproverDetails procedure in AdminController";
}
else if (e is NullReferenceException)
{
e.Data["ErrorMsg"] = "Null Reference Exception";
e.Data["Location"] = "UpdateUpproverDetails procedure in AdminController";
}
throw e;
}
As you can see if no exceptions occur then the 'return View(app);' does it post and displays ther view. If however; there is an except it is trapped in a single catch block and re-thrown to the Global.asax Application_Error event for loggin. Now this works.
Now for the problem controller's try/catch block. Below is the following code:
try
{
response = client.GetAsync("Registration?user=" + Username).Result;
responseBodyAsText = response.Content.ReadAsStringAsync().Result;
if (responseBodyAsText.Equals("true"))
{
usercred.Newpassword = "";
usercred.Currentpassword = Password;
usercred.Username = Username;
return View("Change", usercred);
}
else
{
/////LOGIN USER
string passurl = System.Web.HttpUtility.UrlEncode(Password);
response = client.GetAsync("Registration?username=" + Username + "&password=" + passurl + "&edi=" + "" + "&isEdi=" + false).Result;
responseBodyAsText = response.Content.ReadAsStringAsync().Result;
statuses = JObject.Parse(responseBodyAsText);
DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(UserCred));
using (var ms = new MemoryStream(Encoding.Unicode.GetBytes(statuses.ToString())))
{
usercred = (UserCred)serializer.ReadObject(ms);
}
}
}
catch (ArgumentOutOfRangeException e)
{
ViewBag.result = "NotAuthenticated";
log.Info("The size specified is less than or equal to zero. Login/Password for user failed " + e.ToString());
return View("Index");
}
catch (ObjectDisposedException e)
{
ViewBag.result = "NotAuthenticated";
log.Info("The current instance has been disposed. Login/Password for user failed " + e.ToString());
return View("Index");
}
catch (InvalidOperationException e)
{
ViewBag.result = "NotAuthenticated";
log.Info("An operation has already been started on the current instance. Login/Password for user failed " + e.ToString());
return View("Index");
}
catch (ArgumentNullException e)
{
ViewBag.result = "NotAuthenticated";
log.Info("Login/Password for user failed " + e.ToString());
return View("Index");
}
catch (Exception e)
{
ViewBag.result = "NotAuthenticated";
log.Info("Login/Password for user failed " + e.ToString());
throw;
}
}
Session["userData"] = usercred;
Session.Add("Authenticated", "True");
return RedirectToAction("Index", "Home", usercred);
}
Here you can see that in each catch statment the logging is done, not in the Application_Error event, but in the catch statment itself. Also in each catch statment a specific 'return View("Index");' is called and a return RedirectToAction("Index, "Home") is called at the bottom.
I tried the following and the exception is never thrown. Can anyone help?
catch (Exception e)
{
ViewBag.result = "NotAuthenticated";
return View("Index")
throw e;
}
Session["userData"] = usercred;
Session.Add("Authenticated", "True");
return RedirectToAction("Index", "Home", usercred);
}
}
|
|
|
|