Can Not Understand The Error
Feb 24, 2010
What is the meaning of this error and how to avoid it:
System.Web.HttpException: Server cannot modify cookies after HTTP headers have been sent.
at System.Web.HttpResponse.BeforeCookieCollectionChange()
at System.Web.HttpCookieCollection.Remove(String name)
at NopSolutions.NopCommerce.Common.NopContext.SetCookie(HttpApplication application, String key, String val) in D:ivolino_3D21012010Nop.CommonNopContext.cs:line 158
at NopSolutions.NopCommerce.Common.NopContext.SessionSaveToClient() in D:ivolino_3D21012010Nop.CommonNopContext.cs:line 127
at NopSolutions.NopCommerce.HttpModules.MembershipHttpModule.Application_EndRequest(Object sender, EventArgs e) in D:WorkOwnNopCommerceSolutionNopCommerceNop.HttpModules.MembershipModuleMembershipHttpModule.cs:line 140
View 3 Replies
Similar Messages:
Mar 29, 2010
I am getting the error "A field initializer cannot reference the nonstatic field", While My code is as below:
Object selectedItem = PageVariables.slectedItemData;
MyClass selectedItems = (MyClass)selectedItem;
But the same thing works if assign the value at the constructor or in a different method , like below:
public partial class MusicPlayer : Page
{
Object selectedItem = PageVariables.slectedItemData;
[code]...
I am just trying to understand what is the difference, Why it is looking for a static varaible declaration(in 1st case) while doesn't look for it while in a constructor or a different method
View 3 Replies
Mar 3, 2010
Do I have to get some C# class before taking C# programming lessons?
View 7 Replies
Mar 30, 2011
If I have a singleton pattern as follows:
[Code]....
So Let's say User A is logges in first and does a following call:
[Code]....
View 2 Replies
Jan 3, 2011
i cannot understand logic of mvc edit.for example
StudentReposirory students= new StudentReposirory();
// GET: /Student/Edit/5
public ActionResult Edit(int id)
[code]...
View 8 Replies
Feb 18, 2010
i created an intranet based website(information Portal)...i would like to know the pages each user visits and i want track there behavior...what tools should i include..
View 2 Replies
Aug 25, 2010
I am having a problem understanding how polymorphism works when using generics. As an example, I have defined the following program:
public interface IMyInterface
{
void MyMethod();
}.....
So, at least I haven't completely misunderstood that. I am unsure exactly how I am to write a method that accepts a generic collection of classes that conform to the same interface.
I have a plan to completely hack around this problem if need be, but I would really prefer to do it properly.
View 3 Replies
Jan 27, 2010
Don't understand htmlAttributes parameters? try this:
[Code]....
[Code]....
How to correct?
[Code]....
View 11 Replies
Feb 1, 2011
ow to understand whether the visitor is Googlebot or not ? ASP.net 4.0 & C# I mean i want to understand that if the visitor is Googlebot or not.
View 2 Replies
Jan 9, 2010
Until now, I have not create any massive applications using ASP.Net. However, I am looking to create an application that has the potential to be very performance intensive. So I am looking for some tools or best practices when it comes to performance. I would like to be able to know how to: See my current performance (good or bad) View items that need fixing And being able to compare two performance variable items would be great as well.
View 2 Replies
Oct 28, 2010
I have a table with 3 columns Itemid(int),Itemname(string),ItemDesc(string).. Im trying to use a radpanelbar to display this information, where the bar initially shows the item name and on clik/expansion it will show the item description.. I tried looking at the examples on telerik site but didnt understand the point of datafieldid and datafieldparentid. What are they used for and what would their values be for my table.. I tried using different combination of column names for these two ids but I still didnt get it..
View 1 Replies
May 28, 2010
<input type="button" name="reset"
onclick="return ValidateValue(); __doPostBack('ApplyBtn','')" />
The above is the code generated for asp server button button control on browser. Now my query is that irrespective of ValidateValue() returning true/false __doPostBack('ApplyBtn','') function is not showing any effect for me. My understanding is that string passed to onclick acts like function body, and return will from first function will return control preventing second function from execution.
Is that correct?
View 1 Replies
Oct 28, 2010
I understand the concepts of windows workflow...But unable to understand how to implement it...Can anyone tell me some good sites which explains Workflow with coding???
View 1 Replies
May 26, 2010
in my current project I used a AsyncFileUpload control from AJAX Control Toolkits. After I got the async file upload part working, I needed to filter the file type so users can only upload image files. I found the following code off web and it worked well:
[Code]....
The problem is : I don't understand this javascript. What is the type of args parameter? Where are the methods such as "get_fileName()", "set_cancel()" defined? I went to the homepage of the
AsyncFileUpload control but couldn't find any documentation regarding the "args".
View 1 Replies
Apr 20, 2010
how do I understand web service software factory with concrete examples? Is it wcf oriented?
View 4 Replies
Jul 1, 2010
Does outputcaching VaryByParams in webforms understand route parameters? Such that if I have a route similar to "Content/{filename}/{more}" that I could do VaryByParams="filename" and have it return cached results based on filename and ignore any values in the more?
View 1 Replies
Feb 18, 2010
Please help to understand this RegEx statement in details. It's supposed to validate filename from ASP.Net FileUpload control to allow only jpeg and gif files. It was designed by somebody else and I do not completely understand it. It works fine in Internet Explorer 7.0 but not in Firefox 3.6.
<asp:RegularExpressionValidator id="FileUpLoadValidator" runat="server"
ErrorMessage="Upload Jpegs and Gifs only."
ValidationExpression="^(([a-zA-Z]:)|(\{2}w+)$?)(\(w[w].*))(.jpg|.JPG|.gif|.GIF)$"
ControlToValidate="LogoFileUpload">
</asp:RegularExpressionValidator>
View 5 Replies
Mar 1, 2011
I have a http module at root level which resolves to the virtual directory which is a .net application on some conditions as below.
I need the have the httpmodule at root level only for some requirements.
application.Context.RewritePath("/virtualdirecotry/root/pages/sample/sample.aspx", String.Empty, "");
the sample.aspx page uses a master page as below
<%@ Page Language="C#" MasterPageFile="~/Root/Pages/Master/Site.Master"
as it uses the relative path the http module is unable to understand the path and throwing following error
The file '/Root/Pages/Master/Site.Master' does not exist.
error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.
View 1 Replies
Jul 22, 2010
I don't understand how to use this feature called "Build deployment package" in VS 2010. I go to my properties and go to package/publish web and setup it up. I click "Create deployment package as zip"
I then build the deployment package and get a zip file.
When I look into and start drilling down in the folders I find I get a path like this
[Code]....
I don't understand why it makes all these folders and on top of it why is it my path to where my soultion sits. I don't like the fact that now everyone can look in the zip and see my accoutn name, where the file was sitting, that I am using subversion.
Then it makes it so confusing to when a error happens. I deployed it on my IIS windows 2008 server and ran it and I had a error show up. It pointed to the file where the error occured and the path was point to my desktop.For the longest time I could not understand why it was pointing to my windows 7 machine desktop when it was running on a windows 2008 server located in a different country.
It was not until I found out with the zip path it made sense. But that is confusing when it is pointing to paths that don't exist on that computer.
How can I change this?
View 4 Replies
Jul 21, 2010
When the data grid connects to a sqldatasource control and displays say 10 records with 5 pages from a total of 50 - has the application downloaded all 50 records or only the 10 on page 1? Is that why I use code to get the data and then implement paging myself or does the application know the 50 records are downloaded and when you click to the next page it works locally?
View 3 Replies
Jan 7, 2011
I am trying to check how much time does a function takes to execute in my code :
I did this :
void foo()
{
int time = System.DateTime.Now.Millisecond;
// code of my function. do this, that, etc.
Console.WriteLine((System.DateTime.Now.Millisecond-time).ToString());
}
What i get is this :
-247
I don't understand why minus ?? & If pro-filer is an option then recommend me some simple option.
Note : Here I have shown a console app but in practice i need for a Web App in ASP.NET which may be n-tier architecture also.
View 5 Replies
Jun 6, 2010
Error:
Executed as user: MACSTEELUSA.COMsa. ...9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 8:00:17 PM Error: 2010-06-02 20:00:18.56 Code: 0xC0202009 Source: CRM_ORACLE_ARSUMMARY Connection manager "SourceConnectionOLEDB" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80004005 Description: "Oracle client
and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.". End Error Error: 2010-06-02 20:00:18.58 Code: 0xC020801C Source: Data Flow Task Source - Query [1] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireCon... The package execution fa... The step failed.
Tasks Taken:Went to this folder checked for tnsnames.ora file but it is in good shape.
C:ORACLEproduct11.2.0client_1
etworkadmin
View 2 Replies
Dec 6, 2010
I have a serious problem with "Error on Page". The error message points to line number 939, char 13. In my code behind (C#) in line number 939 is only an obsolete method found which is no longer called. The aspx file has only 339 lines. What the heck is line number 939?The Webapplication allows a special user group to change some group memberships for members of another user group in Active Directory. The App handles 3internal DataViews derived from corresponding DataTables as DataSource for 3 GridViews and some other internal lists with objects (List<obj>).
It uses windows authentication to get current users credentials and his membership in the "Operators" group. This credentials will be passed-through to allow the process managing group memberships in active directory.After starting the App in browser it seems to work fine. But after an indeterminated time it doesn't longer respond. After each click on buttons (or link buttons) you only can see the message "Error on Page" in the browsers status bar below.I played with session timeout, storing the DataTables in session variables, without success.
Last week I found this article here: [URL]" and I addedEnableEventValidation="false" ViewStateEncryptionMode="Never"
to Page declaration. However, at some point the the server does not respond. Each time the worker process on webserver recycles it seems the application turn to wrong state. Might be important: All controls including GridViews are embedded in an AJAX UpdatePanel. How to get a better error message? Debugging is enabled and Custom Error handling On, Off or Remote Only brings the same result as described.
View 3 Replies
Nov 14, 2010
When a server error occurs for whatever reasons (YSOD), the server will send a message via SMTP class. In my case, my company employs microsoft exchange and uses NTLM authentication for all domain users. I am authenticating users via NTLA windows integrated authentication. My question is, is it possible to utilize this authentication data, and pass it to the system.web SMTP username/password authentication scheme to send an email to me (the web developer) when the error occurs? I am pretty sure my company requires a username/pwd to send emails via SMPT on the ms exchange server.
View 1 Replies
Oct 22, 2010
I'm receiving the following error occasionally when calling web service using a .NET 4.0 web application."The underlying connection was closed: An unexpected error occurred on a send."All of the articles I've read regarding this issue are for the Framework 1.1.Is there any solution to this issue for using .NET framework 4.0?
View 1 Replies