Contact

If you like what you see here or have any comments, Query, suggestions, or corrections, feel free to leave a message over here. I will try to respond to you as early as possible.

You can also email me at me@abhijitjana.net    for any other query, questions or for sponsorship / advertisement inquiry.

You can also get touch with me via Facebook or Twitter

Looking for Useful Tips and Tricks on .NET. Please Visit my site http://dailydotnettips.com  and Follow @dailydotnetips

292 comments

  1. hi,abhi.you are really outstanding.I like your post and it’s really helpful to me.I also refer sacha blogs and webs.I also got his help for my silverlight issue.keep in touch and keep it up abhi….:)

    Like

    1. Hi Deepak,

      You will get as MCP certificate if you cleared any of the Microsoft Paper. Like I have cleared MCTS 70-536 and 528 . I cleared 528 first . So that time I have got the MCP too. So first of all you have to know which paper you want to give. You want to do it for Web Application or Windows Application .

      Like

  2. Hi Abhijit;
    Thanks for your nice articles at codeproject. i want to ask you a question on session. i prepare a website and put session like UserId and UserName etc. but the session is not stay for longtime. I mean, suppose you use gmail or yahoo, it seems that your ar signed in how long you are staying at the browser. but mine’s is stay only for few minutes.
    can you please give me solution about the problem.
    thank you.

    Like

  3. Hi
    Abhijit
    My self RAQUIB working in Adecco as Software Developer. I read yor Article from CodeProject regarding IIS and debugging Its really very nice and helpfull.

    I have one problem regarding ViewState.
    I want to disable view state of server control. I tried to do it by EnableViewState=flase on page or in contol but it retains their values after postback.
    I also tried it on OnInit event
    private void Page_Init(object sender, System.EventArgs e)
    {
    this.EnableViewState = false;
    }
    it also not work.
    Plz help on this issue.
    Thanx & Regards
    Md Raquib Alam

    Like

    1. first of all you need to know what actually happened during ASP.NET Page life cycle and ViewState.
      In the ASP.Net page life cycle, two events related with View State.
      1. Load View State : Where view state data is loading for the control and which happened before Page_Load.

      2. Save View State : Where control data store in a hidden field before the Page_Render.

      Now, If you disable the ViewState for the control it should store the view state data but, you are saying in Textbox, after you disabled the view state , control holds the data after postback,
      Here is the Trick,
      There is another event fired during Page Life Cycle, which is, Load PostBack Data.
      ASP.NET controls which implement IPostBackEventHandler will load its value from the appropriate postback data.
      This value is not read from view state but from Postback From and this is true for those control which implements the IPostBackEventHandler
      and TextBox is one such control Wink

      Hope this clears your doubts and This will helps you.

      Like

  4. Hi Abhijit,

    I appreciate your work and articles. Well, It’s interesting that you add graphic oriented images to explain the techniology in these articles. Can you please reply me which tool you are using to edit these images.

    Regards, Krishna.

    Like

  5. Hello Abhijit…i have an problem regarding web service. i have an image stored in folder on the server …that i wish to return image over the web service…i m trying converting it to byte data and then byte data to memory stream …my problem is how to generate valid XML from memory stream …..

    Like

  6. Greetings Abhijit,

    I came across a response of yours to a query on CodeProject titled ‘Passing Credentials from ASP.NET to OWA’. In your response you state that it can be done by modifying a few files for SSO. I’m using Exchange 2007, OWA is currently configured for forms based authentication, and have coded an ASP.NET page to use system.directoryservices.accountmanagement to validate and authenticate users to the domain.

    Please can help me by reply to my email address and let me know how I can achieve this.

    Kind regards
    Steve

    Like

    1. Sorry for late response steve. Yeah I have done that few year ago. I am not able to recall the javascript file name, we have changed only in a javascript file which take the data from our asp.net application. If I found the details I will let you know the details shortly.

      Thanks Again !

      Like

  7. hi
    i m using windows vista, iis 7.0,classic asp
    if i run asp page, i received following error
    internal server error 500
    isapi module
    ModuleName IsapiModule
    Notification 128
    HttpStatus 500
    HttpReason Internal Server Error
    HttpSubStatus 0
    ErrorCode 2147942570
    ConfigExceptionInfo
    Notification EXECUTE_REQUEST_HANDLER
    ErrorCode The requested resource is in use. (0x800700aa)

    I tried uninstall and reinstalled iis
    application pools — set local system to identity
    isapi filters – add asp.dll
    and remove it

    pl help me

    thank you

    Like

  8. I am using Classic ASP, windows vista Business and IIS 7.0

    previously ASP pages are worked, i dont know whats wrong in this system now.
    if i try to open any ASP page, it does nt show anything. HTML tags are working well.

    I try to trace out error, “The requested resource is in use.” – its a warning.

    pl guide me
    thank you

    Like

  9. HI Abhijit Jana,

    I read your article from code project all are nice article.It gives clear view.Thanks.I have one doubt could you please explain.What is “Active Directory” ?

    Thanks & Regards
    Mohan Dass.P

    Like

      1. Hi Abhijit,

        Thanks for your reply. Its very helpful. You are doing such an excellent job to all.All the best.

        Thanks & Regards
        Mohan Dass

        Like

  10. Ok I found solution.

    DirectoryEntry iis;
    iis = new DirectoryEntry(“IIS://localhost/W3SVC”);
    iis.Invoke(“EnableWebServiceExtension”, “ASP.NET v2.0.50727”);
    iis.CommitChanges();

    Like

  11. Happy new year sir, i have read ur article about session object it increases my knowledge regarding session object. i want ur help , i create login in ASP.NET but when i login during processing it gives error :
    Unable to cast object of type ‘System.Int32’ to type ‘System.String’.
    —————————————————–
    Label1.Text = (String)Session[“rollno”] ;
    ssql = (“SELECT * FROM studentinfo1 WHERE rollno=” + (Int32 )Session[“rollno”]);
    i dont know which line is giving error , plz send me solution . Thanx in advance

    Like

  12. Hi,

    Your blogs are very help full, i understand them very well. So whenever i have doubts i refer your blogs its very nicely explained.

    Thanks,
    Smiley

    Like

  13. Hi
    i like your articles they are great.BTW Happy new year.
    I’m designing web application with asp.net c# and i’m using ajax timer and update panels. i want the timer to continue working after the user has quit the session. Do you know how can i do that.
    Thanks in advance

    Like

  14. Hi
    i like your articles they are great.BTW Happy new year.
    I’m designing web application with asp.net c# and i’m using ajax timer and update panels. i want the timer to continue working after the user has quit the session. Do you know how can i do that.
    Thanks in advance

    Like

  15. HI Abhijit Jana,

    I read your article from code project all are nice article.It gives clear view.Thanks.
    Do u have some other articles on OOPS,ASP.NET,WCF
    Plz. Help me
    Thanks & Regards
    Amit

    Like

  16. Abhijit,

    is it possible to create custom folders in the table and view section of the SQL db management studio.
    I do have over 100 tables and views, and it becomes a hugh list. I would like to group them together in custom folders, like you have the system_tables and system_views folders?

    thanks,
    Benoit

    Like

  17. Hi Abhijit!! Fist of all Congratulation for the award.

    I just want to know, have u ever wrote any article on OOPS.. if any plz provide us link. Or any web side for the same..

    Thanks in advance
    Puneet

    Like

  18. Hi Abhijit..
    I know u through codeproject.. Ur articles are cool.. keep it up.. I have a small issue in my Application if possible can u clarify it…
    Im developing a web application here i get datas from the user and on a button click these datas get stored in my data base now i have another button on clicking it,it retrieves all the data from the database and gets saved in my system as an XML file… the code is as follows for the button that creates an xml file…

    private void Button1_Click(objectsender,System.EventArgs e)
    {
    SqlDataAdapter da = null;
    try
    {
    con = new SqlConnection();
    con.ConnectionString = ConfigurationSettings.AppSettings[“DSN”];
    da = new SqlDataAdapter(“select * from card_details”,con);
    DataSet ds = new DataSet(); da.Fill(ds,”card_details”);
    ds.WriteXml(“D:\ADIB\OutputXML.xml”);
    }
    catch(SqlException ex)
    {
    throw new System.Exception (“Error — ” +ex.Message);
    }
    catch(Exception exp)
    {
    throw new System.Exception (“Error — ” +exp.Message);
    }
    finally
    {
    con.Close();
    da.Dispose();
    }
    }

    Now my issue is i need my application to create the xml file,before saving it into my system it should ask me whether to open the file or save the file so that i can specify the file name (something similar to a download window in our web browser)… please advice me… Im using VS2003 .net1.1
    Thanx in advance..
    Reards,
    Tash

    Like

  19. Hi ,
    Abhijit, This is srinivas from Bangalore.i am new to .Net Technology.By reading your articles i learned lot,especially Debugging concepts.Actually i am searching for a job in Dotnet Technology(WebDev)with c#.
    I am very thankful to you.Can you please write an article for me about
    3-tier Architecture with an example(C# only).
    Thank you Abhi.
    Srinivas.

    Like

  20. Hi,
    Abhijit,
    I read your articles from codeproject,especially Debugging and Statemanagement articles are awsome articles.i learned lot from your articles.actually i am new to this .net technology.if u don’t mine can u please write an article on 3-tier architecture with one simple example of (real time scenario) for me .
    waiting for your response.
    Thanks
    srinivas

    Like

  21. Subject: problem of deployment of java applet in iis7.0

    Hi,

    we have created Simple html page and use java applet with activex control.
    I found some problem. I can successfully run this sample from the project folder but while I am uploading this on IIS web server 7.0 on Windows server 2008 i am getting Some error in Jre console.

    Can’t open URL for reading. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgStream.stOpenStream(GlgStream.java:268) at com.genlogic.GlgObject.obLoad(GlgObject.java:3468) at com.genlogic.GlgObject.LoadObject(GlgObject.java:4924) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Null drawing. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgObject.ExtractWidget(GlgObject.java:4972) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) while I am uploading this project folder on IIS Web server 7.0 on Windows Vista 2008 I am getting above error. And while I am uploading this project folder on IIS Web server 6.0 on Windows XP then it runs successfully without any error. I have also created another sample applet without using Activex Control. In applet.htm file you can find one link by clicking on that you can view simple applet which runs successfully on each version of IIS Web server and any OS. So, I am very much confuse about this. Can you please tell me if any configuration I am missing on web server for activx Control. Can you please help me in deploying glg sample applet on IIS 7.0.

    Thanks in Advance.

    Like

  22. Subject: problem of deployment of java applet in iis 7.0

    Hi,

    we have created Simple html page and use java applet with activex control. I found some problem. I can successfully run this sample from the project folder but while I am uploading this on IIS web server 7.0 on Windows server 2008 i am getting Some error in Jre console.

    Can’t open URL for reading. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgStream.stOpenStream(GlgStream.java:268) at com.genlogic.GlgObject.obLoad(GlgObject.java:3468) at com.genlogic.GlgObject.LoadObject(GlgObject.java:4924) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Null drawing. Stack trace for diagnostics (no exception thrown): java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at com.genlogic.GlgDefaultErrorHandler.Error(GlgGlobal.java:661) at com.genlogic.GlgGlobal.ErrorHandler(GlgGlobal.java:627) at com.genlogic.GlgObject.ExtractWidget(GlgObject.java:4972) at com.genlogic.GlgObject.LoadWidget(GlgObject.java:4949) at com.genlogic.GlgBeanComponent.load_viewport(GlgBeanComponent.java:631) at com.genlogic.GlgBeanComponent.load_drawing(GlgBeanComponent.java:684) at com.genlogic.GlgBeanComponent.Start(GlgBeanComponent.java:463) at com.genlogic.GlgBeanComponent$GlgStartStop.run(GlgBeanComponent.java:389) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

    while I am uploading this project folder on IIS Web server 7.0 on Windows Vista 2008 I am getting above error. And while I am uploading this project folder on IIS Web server 6.0 on Windows XP then it runs successfully without any error. I have also created another sample applet without using Activex Control. In applet.htm file you can find one link by clicking on that you can view simple applet which runs successfully on each version of IIS Web server and any OS. So, I am very much confuse about this. Can you please tell me if any configuration I am missing on web server for activx Control. Can you please help me in deploying glg sample applet on IIS 7.0.

    Thanks in Advance.

    Like

  23. Hi,
    Abhijit,How r u? the articles(3-tier articles) what u have sent for me are very nice articles.
    If u you don’t mine ,i have one small doubt.
    What Design patterens we have used normally in our .Net Projects.Tell me or give me good article links about(Design Pattern) this concepts.
    In real time scenario how we can approach to Design Patterns.
    Thank you .
    Srinivas

    Like

  24. Hi
    Can you help me?? I read many of your articles and they are very good but I can’t find an answer to my problem. On this webpage is a Frontpage Database that lists all of the videos that we have in our library. When you scroll down and press on the |< >| buttons to go to the next page, it usually doesn’t work. Sometimes it stays on 2/19 when you click on >. Sometimes it works but usually you get something different every time. Do you have any idea what causes that or where in IIS to check?
    I have IIS 6.0 on windows 2003 server with Frontpage extentions running.
    Thanks a lot, Norman

    Like

  25. Hi again…
    this time i have query. i have asked this question on codeproject forum but still no reply from anyone and i need it urgently.I am new in asp.net its my first project.so please can you guid me how can i do this.
    my system is related to travels.In that, i want to create two applications one is on in my system and another is on Client side say “ABC travels”.When any user logon to that site for booking, i have to check that user info with info which is stored in my system by using these two applications.For that “ABC travels” my system has some permission i.e. i only want to give permission for specific 10 buses,20 cars bookings to that client.so when any user make any booking from site of “ABC travels”. first i have to check the userinfo as specified earlier then i want to send the data i.e. according permissions to their site,so that user can book any bus or car only from that 10 buses and 20 cars.If user book any bus.then the application which is in client side should send that booking information to my system.and my system will store that info in database.
    this is flow of my system, i am fresher so i didn’t get how i do that will you please guid how i do this please…

    Like

  26. Hi Abhijit,

    I am a follower of all your articles on codeproject. All are cleanly and easily understandable.

    I am also planning to blog technical articles, could you please tell me which tool you use for drawing images.

    Thanks,
    Sundeep

    Like

  27. Hello sir,

    I have one question, i am creating a custom asp.net control for datepicker, i have javacript, and few images. now I have embaded images, javascriptfile in to dll. now there is a problem that, in javascript file i have to give path of the images.

    How can i give path in javascript for the images which are resides in DLL file?? please help me.

    Thank you,

    Like

  28. Hi, I’m interested on a good book or site that can help me deploy a asp.net web application to a windows server 2008.

    thanks

    Like

  29. Hello abhijit,
    I m actually confused with cookies & sessions . when user visit website (if its cookies based) then session id is assigned to that particular user in order to send data to & fro .
    In case of session, when user request for page & want to store information then again server assign SessionID to user & store information in respective state provider … next time when user request for information, then server respond to user with respect to SessinID .
    in both cases SessionID is assigned to user , so session ID is not particular to sessions .. I mean its not inherant property of session state .. ?
    One more thing I want to ask in your article Exploring Session , in sql state portion , u have showed data table that stores several information e.g sessionID , created , expires, lock cookie etc etc .. when user request for information , server respond it using his/her session ID & retrieve data from DB , but where that information is stored , in lock cookies?

    Like

  30. Hi this is venkatesh .i am searching for job based on .net i want to know get the certification of MCTS.How can i get the test n where i have to approach

    Like

  31. Hi sir,

    I am calling a webservice in asp.net by http basic authentication(RFC2617) but unable to do so despite numerous attempts.
    i am not using wcf.

    my code is(not working for me):

    MyService service = new MyService();
    service.Credentials = new NetworkCredential(“username”, “password”);
    service.PreAuthenticate = true;

    and
    MyService service = new MyService();
    NetworkCredential netCredential = new NetworkCredential(“username”, “password”);
    Uri uri = new Uri(service.Url);
    service.Credentials = netCredential.GetCredential(
    uri, “Basic”);
    service.PreAuthenticate = true;

    My client has given me document as follows how to call webservice:

    please read about RFC2617 and how to implement it.
    It’s clearly mentioned on page 110 of the Integration Document:
    Technology Partner Authentication
    “Technology Partner”, in the context of this document, means an authorized
    “Account” on the IRCTC site authorized to consume the web services. The username and password of the “Technology Partner” is set in the http header.

    NOTE: IRCTC Webservices follows strictly, the HTTP BASIC Authentication
    (RFC2617), so the same has to be followed by the integrating parties
    whether on Java/.NET or any other platform.

    i think we have to make custom soap hedaer using httpwebrequest.

    plz sir help me.
    i think we have to make custom soap hedaer using httpwebrequest.

    Thanks & Regards
    Kunal Tilak

    Like

    1. Hi Kunal,

      This is Vinay, Bangalore.

      your IRCTC problem (RFC 2617 Http Basic Authentication) solved or still it is open. If it is closed please post ur comment on this problem.

      Like

  32. Hi, Abhijeet…

    My self is Mohammed Afroze, I`m from Hyderabad pursuing B.E C.S.E III rd Year II Sem almost finished…

    Abhijeet bhai I require a small help from U in VB6 as I Came to know U are expert in VB.

    My aim in VB6 is that to make a application in which is the objects in VBFORM are resized according to the Resolution Setting of the Monitor. I made a application in 1152*864 Screen but when i run it in 1024*768 the Form does not appear full, and if I run it in Large Resolution form objects appear small so on…

    If U want me I can send you the VB Application Source of my project.

    Like

  33. Hi abhijit,

    I have read your article on “Remote IIS Debugging”. When I try to implement it using VS 2010 it’s not working.
    Steps I have followed
    1) On production environment “Remoter debugger” is not installed, so I have shared remote debugger from my local system and run it on production environment as administrator.
    2) In local system I have attach process and in remote machine debugger I am getting confirmation of user connected.

    After attaching process I am getting warring(No executable code associated with this line) in breakpoint and debugging not working

    Can you please tell me what the problem?
    Is there any constraint that application pool on remote server should run on my credential (now it’s working on some service account credentials) ?

    Like

    1. After attaching process I am getting warring(No executable code associated with this line) in breakpoint and debugging not working

      This warrning is for all breakpoints or any particular breakpoint ? Just try to put a simple break point on page load of current page and let me know the result.

      Like

  34. Hello Dear Abhijit,
    First of all i want to thank you for sharing your very precious knowledge and helping others to learn new things from my side and Mr. Abhishek Sur, ur old friend.

    🙂

    and i have one query,

    i want to create exactly the same menu for my friend’s project that you’ve created here in this website.

    I’ve tried to create it and even succeed partially in it.
    I’ve created a horizontal navigation list like your’s in this website in the master page.

    By default the Home page’s menu item has a background color (different) as it is selected by default which is different from the others

    when i click a menu item, i’ve a javascrpt code(in the master page) which is changing the background color of the selected menu item based on the id supplied by the list item to the javascript function.

    but as the page load life cycle again happens and by default Home page’s menu is selected instead of changing the background color of the selected page, the Home page’s menu’s background is getting changed(coz of page life cyle).

    please suggest some idea about this.

    Do i’ve to do it on server side by maintaining state???

    Thanks in advance

    Like

  35. Hi,

    I have 5+Yrs. of .Net Experience, but I am failing in technical interview, my communication skill is good. Please guide me how should I prepare for clearing the interview…

    Thanks,
    Monisha

    Like

  36. Hi, abhijit ,
    i have one task, i hope that u can give an example for that .
    actually,
    how can we display chart for height and weight by varying years…..by using silverlight controls.
    plz help me.

    Like

  37. Hi Abhijit,

    I read your Article about deploying ASP.NET Applications on IIS7.0 (http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx) and i have the same problem:

    I get a NullReferenceException when my Application tries to read the Sessions, i can set them without any problems…

    But if i want to configure my IIS with other options than in proces, my application gives me a configuration error…

    Could you pls give me some advice how to solve that problem?

    Many thanks in advance!

    Like

    1. But if i want to configure my IIS with other options than in proces, my application gives me a configuration error…

      Please let me know the exact configuration error that your are getting ?

      Thanks!

      Like

      1. It did say something about the SQL-ConnectionString, but i fixed that a minute ago, so the problem remains…
        Now the Session state should be saved in my local mysql-server.

        But the Main Error, is the same…
        I can give you the error description:

        Server Error in ‘/pm’ Application.
        Object reference not set to an instance of an object.
        Description: 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.NullReferenceException: Object reference not set to an instance of an object.

        Source Error:

        An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

        Stack Trace:

        [NullReferenceException: Object reference not set to an instance of an object.]
        ProjectManager.normal.Page_Load(Object sender, EventArgs e) in D:\User\Projects\ProjectManager\ProjectManager\normal.Master.cs:30
        System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
        System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
        System.Web.UI.Control.OnLoad(EventArgs e) +131
        System.Web.UI.Control.LoadRecursive() +65
        System.Web.UI.Control.LoadRecursive() +190
        System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427

        Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

        Like

  38. It means you are trying to access some varible which is null. If you are trying to retreive information from Session like string name= Session[“Name”].ToString(), Before doing that do a null check of that session variable like,

    if (Session[“Name”] ! = null )
    {
    name = Session[“Name”].ToString();
    }

    Hope, you got my point.

    Like

    1. Hi,

      yeah got it…
      I just was to sure, that the variable will be set…

      With the test for null, i can be sure, that the corretc page will be loaded!

      Many Thanks!
      Keep up the good work!

      Like

  39. Hello Abhijit,

    I am following your articles from Codeproject , blogs and lots of important thing about .Net since couple of years and I found those really useful. I have learned plenty from your articles and really Hats off to you.

    Thanks for doing great work.

    Regards,
    Milind

    Like

  40. Hi Abhijit,
    Thanks for your nice articles. Need one help I have one .net Web application and deployed on II7 and it works fine but some time it gets some problem, and even after that It will open the simple pages which don’t have any database connection and when it comes to pages which need to pull some data from MS SQL then is not responding. And after that it will work only when we restart application from IIS7.
    Need your help to come out of this problem Please.

    Thank & Regards
    Mukesh

    Like

  41. Hi!
    I had found an article by u, which showed how to fill image in gridview. But i lost that link while trying to join u at twitter. Can u plz tell me the link plz.
    Regards,
    Zinnia

    Like

  42. hi Abhijit

    I read your web farm article and it’s very nice.
    i want your little help.
    is it possible to upload multiple file on a single browser click in .net

    n if yes
    then how can i get this.

    thanks in advance
    Satish

    Like

    1. Thanks ! and nice to know it helped you !

      is it possible to upload multiple file on a single browser click in .net

      Normal ASP.NET File upload control allow only one file to select. What I understand from you query is you want to select multiple files at a time . I think for this case you can go for Flash Upload control . Here you go
      http://www.codeproject.com/KB/aspnet/FlashUpload.aspx

      Or you can do, you can use list box to add file name one by one, then upload at a time. like
      http://www.codeproject.com/KB/user-controls/MultifileUploadUserContro.aspx

      Let me know if u need more help !

      Like

  43. Many many thnx, for spending ur precious time. And it worked nicely. I need checkbox list/multiple check boxes, within a dropdown list. Can u get me related links plz?
    Thnx
    Zinnia

    Like

  44. i have to make a case study named ‘site search’, which will function like google. Hope i could explain u, my requirement. Can u send me help links plz?

    Like

  45. Hi Abhijit,

    Thanks for your Excellent articles.

    I have one doubt regarding webfarm, perfomance wise which session mode is the best state server or sql server ?

    Many Thanks

    Jacob

    Like

  46. Hi Abhijit,

    thanks for your help regarding multiple file upload. it’s really rocking.

    now i have one more problem.

    i want to save log out time in database when application is logout or direct close for a particular user.
    and i have done this but problem is when the session is experied i am not able to get user name from session then there is no log out entry save in database for the expired user.

    so where i can store to get user name when session is experied or any other way to do this

    thanks
    Satish

    Like

  47. Hi abhijitjana,

    Your articles are very intresting and valuable, it helps me out alot.

    It will be very helpful for me if you provide article on Caching Application Block 4.1 using database cache storage pls.

    Regards,

    Arun

    Like

  48. hi,
    I am new to .NEt, I read your article from http://www.codeproject.com/KB/aspnet/GridImage.aspx, its related to my doubt I am doing a classifieds website and tried to save the image in server,in a seperate folder and stored that address in MS access databse.when I wanted to display that image in a gridview,its not showing the image.It would be great if some one suggests the solution for it.

    In the seperate column when Ia m trying to see the image location using bound field,its displaying C:\websites\Azango\user_images\rj.jpg, but where as its not showing the image in the item template field.please help me in displaying the image.
    Thanks in advance.

    <asp:ImageButton ID="ImageButton1" runat="server" style="border:none; width:100px; height:50px;" ImageUrl='’ />

    Like

  49. sorry code dint come completely so I am posting here
    ,

    <asp:ImageButton ID="ImageButton1" runat="server" style="border:none; width:100px; height:50px;" ImageUrl='’ />

    Like

  50. Hello Sir,
    Am a MCA Fresher and love to work in .Net.I gone through ur Site and Articles.Its help a lot.
    Plz give me advice,on what topic i should concentrate more in present Market Scenario.

    Thnks a lot Sir.

    Like

  51. Hi Abhijit,

    I am Praveen. working on Asp.net 3.0 and also on MOSS 2007 and Sharepoint 2010.

    Your articles are ver good.Its very help full.

    I want to do MCP(Microsoft Certified Specialist) Certification. How to get study material for that?

    Like

  52. hi Abhijit,

    I am working on Asp.net3.0 , MOSS 2007 and Sharepoint 2010. I had seen your articles,are very good. I want to have MCP Certification. Wher can I get materials for MCP certification

    Regards,
    Praveen

    Like

  53. Hi abhijith,
    This is Ram from Bangalore
    can u please share some SoapUi (testing for Dotnet applications) related docs

    Thanks In Advance

    Like

  54. Hello Abhishek

    i am asutosh satpathy iwant to know how i use wcf in 3-tire architecture.

    plese send me some source code with dal,bl,pl,service layer.

    Thank you for your time and consideration.

    Thanks & Regards,

    asutosh.

    Like

  55. Hello Abhijit

    i am asutosh satpathy iwant to know how i use wcf in 3-tire architecture.

    plese send me some source code with dal,bl,pl,service layer.

    Thank you for your time and consideration.

    Thanks & Regards,

    asutosh.

    Like

  56. Hi Abhijit,
    I have read your IIS Artical,
    Please give me IIS Administration Guide in PDF Format,
    Link for IIS Deep Study.

    in Mail

    Thanks
    Manaji

    Like

  57. Hi Abhijit,
    after i published the ASP code in IIS 7 , and when i open the site at any client site , i cannot see the image , its shows only cross mark, how to resolve this issue

    Gnanam
    Sri Lanka

    Like

    1. Hi Gnanam,

      Just right click on the Red cross mark and click on the properties. Check the what Image path its coming. I guess this is wrong path . Please verify your code what type of path you have given (absolute / related ). Best to use “Server.MapPath() in this cases.
      Please let me know if this helps you or if you need any more info.

      Thanks !
      Abhijit

      Like

  58. Hi Abhijit
    all the paths are correct , i have given below the image link code, please show me how to use Server.mappath

    i have tried with the same code in Apache Http 2.2 , its work fine , but i don’t know why AJex controls are not working in Apache Http 2.2

    Thanks
    Gnanam

    Like

        1. When working with resources in a Web site its always beeter to use Server.MapPath() to give the reference path. For example, you might use a URL path to reference an image file in a page or the URL, if use SErver.MapPath() , this return the physical file path that corresponds to the specified virtual path on the Web server.
          String imageFilePath = Server.MapPath("/Images/MyImage.jpg");
          Hope this will resolve your problem.

          Like

  59. Hi Abhijit
    thanks for your information , but still , i could not able to view the image after publishing. if i send the program can you check and let me know where i made the mistake , i would like to know , do i need to enable any option in IIS 7 , because , i have published in Apache Server , its working without any issue.

    Thanks
    Gnanam

    Like

    1. Thanks Abhijit
      i found the mistake , i didn’t install Static Content in the IIS 7 , after re-install that option every think works fine

      Thanks
      Gnanam

      Like

  60. Hi Abhijit,

    I have seen ur article for SOAPUI its really helpful.
    I want to test my web methods which takes object as input parameter.
    Is there way I can create testScript in SOAPUI tool to test my web methods

    Like

  61. Hello Sir,
    This is Mohit from Delhi. Sir, I am a .net fresher and recently get touched with ur articles. These are really helpful. I am developing a .net site. I want to know that is there any use of server side javascript while using .net. If yes, then when to use it. Plz. rply.
    Thanks with regards,
    Mohit

    Like

  62. hello sir,
    I am using visual studio2010, how can i install crystal report. plz let me know as soon as possible.
    thanks with regards
    salil

    Like

  63. hi,abhi.you are really outstanding.I like your post and it’s really helpful to me.
    I would like to do any certification from the microsoft.Now Iam start up my career in .net technology.
    please give your valuable suggestions to mould my career in good track.

    Like

    1. Thanks and nice to know my articles helped you !

      I would like to do any certification from the microsoft.

      Before thinking of certification, you should know in which technology you want to do the certification. Microsoft having many topics for certification. But, you have to be specific on your requirment. I guess you want to do certification on .NET, may be Windows or Web Application. For that you have to look for MCTS Exam details from microsoft Learning sites.

      Please let me know if you need any more help.

      Thanks !

      Like

      1. Hi Abhi,

        How to create html tables dynamically,means if database rows are increasing depending on that in the designer view tables are also increasing for the display.
        Is there any another option is there for this.

        Thanks in advance,

        Like

        1. Just Addusing System.Web.UI.HtmlControls; Namespace and the use HTMLTable,HTMLTableRow, HTMLTableCell class to generate the HTML Table. Based on your data base records you create number of rows, column using those class. Please let me know if you need any more help on this. Thanks !

          Like

  64. hi i am fond of your article i keep reading them all free time.
    but i am novice to dot net and for last few days this problem is haunting me and i am dire need to resolve this problem any how please give a glance to following link and let me know how to resolve this, if there exist a better solution from performance wise please let me know for any doubt in getting code you please comment to same issue on code project but please rid me of from this problem. all details regarding the issue are mention in the link.
    I posted it to stack over flow and many more log but didn’t get any response so finally i expect from you to resolve this issue.
    http://www.codeproject.com/Questions/105851/Preserving-Chck-box-Value-ON-Paging-in-Grid-View.aspx
    Thank in advance

    Like

      1. Hi abhijit jana,

        I learnt a lot from your posted link but i did a alternate to save save the state of check box while paging in grid view but now the obstacle is that i want to save all checked rows record to database but how to save all checked row to a temporary datatable using session of view state or any alternate you suggest. becauses on paging it looses the records to be inserted.
        please let me know the best solution for this

        Like

  65. Hi abhijit jana,

    I learnt a lot from your posted link but i did a alternate to save save the state of check box while paging in grid view but now the obstacle is that i want to save all checked rows record to database but how to save all checked row to a temporary datatable using session of view state or any alternate you suggest. becauses on paging it looses the records to be inserted.
    please let me know the best solution for this

    Like

  66. Hi abhijit ,
    We are running a problem for a few days. We have developed a web application and deployed it in IIS 7 but the problem is that it hangs after every 3 minutes. We have analyzed a lot and we fond that Worker process recycled the application pool because of Private memory or virtual memeory but we didn’t set any limit of virtual memery. We also tried memory leaks software(APNT profiler) to find where memeory leaks but it shows us System.string(taken Highest memory). Please give us a solution…is that problem of IIS 7 or anything else..

    Like

  67. Hello Abhijit Jana,

    Thank you for your great posts. I have a serious question about bing maps and silverlight, using geocoding (http://www.codeproject.com/Articles/95096/Bing-Maps-Silverlight-Control-Integration-with-Sha.aspx?display=PrintAll)

    The problem is the
    geocodeService.GeocodeCompleted += new EventHandler(geocodeService_GeocodeCompleted);

    I have to call the Geocode function in a loop, searching for multiple locations in a time. But the problem is that the event doesn’t happen in time, and that causes the loop to continue and override the previous value. Is there a way to Geocode without an event?

    Help me please!

    Thank you very much!

    Like

  68. Hi,

    I am very beginner for asp.net,
    In my application i used session variables, and i am checking one session variable in all pages..
    after 20 minutes the session is expired..

    Now my question is,
    Is there any way to get session variable value after expired?..yes there is a way Session_End method in global.asmx…but how can i use it?

    if you give some example, then it is very helpful for me..

    bcoz, in my application, once the session is expired, it will redirect login page..
    and the login contains the module id, at the time of login i am storing the module_id in session..
    so if the session is expired, then i need to pass the module id to the login page..
    like “Login.aspx?Module=” + variable name contains module id

    Like

  69. Hi Abhijeet,
    I just read your artical
    “Custom Control using C# For Virtual Directory in IIS…”
    but in this i have faced some diffcilties ,so can you send me some demo code ,that will helpfull for me.
    I’ll wait for your reply.

    Like

  70. Hiiiii Abhijit,

    Thank’s for the great post…
    I have seen your achievements and i want some guide from you about my carrier Iam very much confused.
    I am in T.Y. BCA from YCMOU university( http://www.ycmou.com )
    and GNIIT from NIIT and I want to pursue post graduation.
    some people suggest MBA and some suggest MCA. so from your opinion what should i do to pursue good carrier opportunity. like you i want to join Microsoft please give me some guidence.
    and if you can tell me any good university for that course also. I would be very glad for that.\
    and hope you will give me right suggestion You can suggest me at my mail id also at – paddy111padam@gmail.com

    Thank’s and waiting for your reply..

    Like

  71. Hi Abijit,
    your world of .net is very informative :-)….
    Have a question..I m hving a datagrid in web page n some of the cells in grid are having dropdowns the list count of each dropdown control is around 5000 records.
    when i add new row to grid i want to avoid call to database to fill the dropdowns.
    In this scenario should i use cachin or load data into some staic variable like array…
    need ur inputs

    Like

    1. Hi Raj,
      why are you trying to show 5000 records in a dropdown list ? You can only show those records which are relevant. I am asking, why you are not applying any filter first to show the records in dropdown. I guess, the value from the list can be selcted by the user, then selecting some value from 5000 records is not a good option.
      What do you think ?

      Like

      1. thanku for ur reply…
        ya true …i wana apply filter like this..i ll display a textbox ,as soon as i start typing the part id in textbox the listitems both(partid n description) should start displayin..for example google search

        Like

  72. Dear Abhijit,

    I have read your IIS article, you are really outstanding.
    I like your post and it’s really helpful to me
    it was simple supper. after reading your article i got very good idea on IIS.

    Could please give your email, to be touch with you.

    give me tips how to learn WCF,

    Thanks
    Raja

    Like

  73. Hello Abhijit,

    You rock. Hats off to you man. You doing good service to our Microsoft developer community.

    I have one doubt. I just joined the company where you worked previously at the same designation (AT L2). They are giving me a project on classic ASP & Oracle. However, I am .NET guy. Please let me know your views whether should I go ahead with the assignment. I am afraid that my .NET skills will go obsolete because assignment will go for next 6 months. I request you to please throw some guidance.

    Thanks & wish you all the best.

    Like

  74. Hi
    haven’t you written an article on application object in asp.net?
    if u have already written then please provide me the link.

    Like

  75. Hello,

    Read your article on Visual Studio 2010 Extensions. Do you have any experience developing more complex extensions? More to the point, text editor extensions?

    I’ll leave my email so we can talk.

    Like

  76. hi abhijit this is anil. . .
    i am learning .net . . . while working with ADO.NET examples i am getting an error as following
    “The ‘SqlOledb, DataSource=Venna,Database=aar’ provider is not registered on the local machine.”

    Pls help to resolve this problem. . .

    Like

  77. Hi Abijit, I got a doubt in sharePoit 2010,
    I got a doubt, I have created a webpart in Visual Studio 2010 and I deployed in my site, but when I am adding this webpart in my site, I am getting the following error
    ———————————————-A web part or web form control on this page cannot be displayed or imprted. This type is not registerd as safe
    could u please tell what would be the probelm

    Like

  78. Hi, Abhi u r realy fantastic the way write ur articales r very easy to understand. I have query to ask, i am confused about the update panel regarding;
    1) what if a button which is in update panel makes request to server, will update ctrls which are in and out side the UPnl?
    2) What does adding async post back triggers do?
    3) What does adding sync post back triggers do?

    Like

  79. hello abhi…your articles are very helpful.i always read ur articles…and also refers to my frends to read ur wonderful articles.Thank u….

    Like

  80. I read your article “Exploring Session in ASP.Net” on CP. That was awesome.
    Now I am a little bit confused about how to implement the session for my website scenario.
    I hope you respond to my post.
    Thank you In advance.

    Like

  81. Hi Abhijit,

    This is Ayan. I was there in techdays seminer yesterday. It was really a great presentation by you.
    Thanx for sharing your knowledge with us.

    Like

  82. I am writing a document on “Deploying websites using VS” and planning to post it on our Knowledge Management intranet, so that other employees in my company can also benefit from reading it. I came across an article, Deploying websites using VS2005, written by you on the same subject. I would like to include this in my document. I request you to kindly grant me permission to do so. I assure you that I would give appropriate credits and references to your article in my document.
    I intend to reproduce in my document.
    Ref : (http://www.codeproject.com/KB/aspnet/VSDeploy.aspx)

    Like

  83. Nice blog and nice content. I found this site while I was searching a silverlight-sharepoint problem. I’m a silverlight developer and now there is a challange with connecting silverlight and sharepoint. When I try to use ClientContext, it’s always returns null. Is there any setting trick for connection? Because I did all what you said in your articles.
    Thanks

    Like

  84. hello sir i Have a problem.I have used caching from my application .when I run application on localhost it shows information correctly but when data is fetched from server where site is uploaded it shows error:

    The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter, null]) failed: Request for the permission of type ‘System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed. (Strategy type Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy, index 2)

    Like

    1. Amit,

      From the error details, it is clear, that your issue is not with caching. You are writing log using Enterprise library. It worked fine when you run it from VS IDE. As VS IDE having sufficient rights to write on your drive. Now as you said, you have hosted in IIS, I am sure you created the application pool as well. By default your application pool will run of Network service Identity which does not have the privilege to write on your drive. Because of that, I guess you are getting the error. What you can do is, change the application pool identity to Local System or Use Impersonation to write log. Or Give write access to the log write folder.

      Hope this will help.

      Thanks
      AJ

      Like

  85. Hi Abhijit,

    I want to capture and detect Barcode ( QR/ Code 39) automatically through camera in Windows mobile 6.5. Can you please share any link / sample code for this. Also Can u please share the ppt (Advance debugging in VS2010) and the code samples that you showed in Community techdays in Kolkata.
    I am waiting to hear from you shortly.

    Like

    1. Hi Madhab,

      I don’t have any ready link for barcode detection. If I found something, will let you know !!!

      Regarding Kolkata CTD Presentation, I have uploaded it on the same day over here,

      Kolkata CTD

      There you have download presentation link just after my session description.

      Regarding Source code, I didn’t upload it till now. Will upload shortly and will update you !

      Thanks !
      AJ

      Like

  86. hi,Sir.
    you are really outstanding.I like your post, your all articles and it’s really helpful to me.
    ==============================================================
    i am a MCA graduate in 2010 & am new in developing line but no one have enough time time to guide me…When i read your blog it is very helpful to me but i want more things about asp controls like web parts, web services & many more….
    Sir if u guide me i am very grateful to you….

    So please sir reply me soon.
    Thanking You
    Deepak

    Like

  87. Hi Abhijit,

    I read your article regarding deployment of a .net web application on IIS. it was really very helpful. i deployed tha app as instructed but when i tried to open the webpage. page appeared as blank i mean no data appeared on that page. when i ran it locally data fetched.

    Please suggest me!!!

    thanks

    Like

  88. hi abhijith,
    I have two question on the asp.net session management session given by you today.
    1 Does the enableviewstate property becomes absolute as new property ViewStateMode is introduced?
    2. What kind of compression is used to compress the session data in the state server?

    Like

    1. Suresh,
      You can still use enableviewstate mode to take control over the whole page. ViewStateMode will help when you want to take control for each and every page control.
      ASP.NET 4.0 used System.IO.Compression.GZStream class to compress the session mode

      I have posted an Session Summary note over here, you may look into that.
      My Session Summary

      Again thanks !!

      Like

  89. hi,
    i want to fire a event(mainly onchange) against the telerik rad upload(for uploading files).not getting any clue from net .i hv started visting your replies but not found anything related to it
    Waiting for ur reply.
    Mukesh

    Like

  90. Hi Abhijith,
    I have a question, please clarify.
    I have a class called PageInfo and it has a propery Name and lets say i have added this class object to a session,
    and i can read the object added to session in the following two ways and change the value “Name” property.

    first way:

    (Session[“test”) as PageInfo).Name = “SomeName”;

    second way:
    Page objPage = (PageInfo)Session[“test”];
    objPage.Name = “test”;

    What is the difference between above two approaches and which one is the best practice?

    Like

  91. I have a class called PageInfo and it has a propery Name and lets say i have added this class object to a session,
    and i can read the object added to session in the following two ways and change the value “Name” property.

    first way:

    (Session[“test”) as PageInfo).Name = “SomeName”;

    second way:
    Page objPage = (PageInfo>P”];
    objPage.Name = “test”;

    What is the difference between above two approaches and which one is the best practice?

    Like

    1. Hi Suresh,
      For Both the cases you ar doing the same thing.

      Let say I have a class called Student

      internal sealed class Student
      {
      public int Roll { get; set; }
      public string Name { get; set; }
      public string Bio { get; set; }
      }

      Creting and storing the Student Object

      Student s = new Student{Roll=7,Name="Student 1",Bio="No Bio"};
      Now, You are storing it into Session like

      Student["stud"] = s;

      Now when you are updating anyvalue, first step you are following is
      (Session["stud"] as Student).Name = "Student Name";

      Which is nothing but the type casting the session object and setting the Name value.

      And in Second Approch,

      Student ss = (Student)Session["stud"];
      ss.Name = "student new name";

      Here you are doing one extra one object “SS” initilization. Which was not required

      So, I will prefer the first option. But before that I will think why to store an complete object in session ? If I need to store only few properites they why no to store only those properties instead of all object. We always have to take care of session data size.

      Hope this clear your doubts !

      Like

  92. Hi Abhijith,
    though that clears my doubt.., i thought you would explain me the solution is IL language perspective..,
    my question is even in the IL an extra object is created and occupies some memory when we follow the second approach?

    Thanks
    Suresh Kumar

    Like

    1. Hi Suresh,

      Well, in IL, as far as I know, each method declares locals in the first section and the instruction set thereafter. If you are dealing with ValueTypes, even though you create extra memory for storing your object (provided you are using struct not sealed class), the object is created in Thread stack, and it will be cleared as soon as the object is sent out of scope.

      On the other hand, If you look for objects, even though you assign / cast an object coming from Session to your reference, it will only transfer your reference. Actual object creation in the heap only takes place when you create using new operation. If you are cast an object reference to a variable, it will not create additional memory to store it.

      Hence the entire doubt centered on your mind doesn’t need any water. I hope you got my point.

      Like

  93. Ki Abhijit Da, tumi ki codeproject e article lekha bondo kore dile keno? Onek din hoye gelo tumi natun kono punlish koro ni! Microsoft join kore ki busy hoye gale?

    Tomat next article er janno wait korchi!

    Dhanyabad.

    Like

  94. Hi, Congt8s 2 u for another feather on ur cap (MVP). I have one question in C#. Let’s say I have two methods as below
    public int Add(Int16 X, Int16 Y)
    {
    int Result = X + Y;
    return Result;
    }

    public int Add(Int32 A, Int32 B)
    {
    int Result = A + B;
    return Result;
    }
    and now I am writing the code like this
    Add(1, 1);
    The method with Int32 will be called.
    I want to know y this happened? Wt’s the reason behind the compiler picking up that (Int32) method?

    Like

    1. Because By default its Int32. Try to declare variable like Int16 i=10; and Int16 j =20 and Call Add(i,j), It will invoke public int Add(Int16 X, Int16 Y)
      . Then Try Int32 i=10; and Int32 j =20 and Call Add(i,j) this will public int Add(Int32 A, Int32 B). As default is Int32 which we used as alias int, its called public int Add(Int32 A, Int32 B)
      .
      Hope this clears your doubts !
      Cheers !
      AJ

      Like

  95. Dear Abhijit ! I want asp.net dropdown list has to be load according to group wise. I want your help. Please do needful.

    Like

  96. Hi Abhijit ,
    I am a regular reader of your blog and i love it very much.
    Will you please post a details discussion about Assembly, like private /shared assembly with example.If you previously discussed about it then please send me the link.
    Thank you very much for your helpfull posts.

    Like

  97. Hi Abhijit,

    Am plan to take certification on Asp.Net 3.5,WCF(3.5),Is there dumps are available in any website,if so please share the path and advice further.

    Thanks

    Like

  98. Hi Abhijit Jana.
    please tell me what am i doing to be professonal in asp.net.
    please tell me some reference about asp.net
    thank you.
    i love you

    Like

  99. Hi

    I am working with youtube API to read the all the comments of a youtube video. My code only works for reading first 25 comments. Please let me know how i can read all the comments of a youtube video not only first 25.

    Like

  100. sir one of my website ( asp.net 2.0 — code base vb — database sql server ) is taking 99% cpu resources in the server. how to solve this

    —–
    We have logged into the server and checked the VPU utilization.

    Found that 98-99% of the CPU is utilizing by a IIS worker process which is ‘w3wp.exe*32’

    pioneercareer.com is the Domain using application pool ‘pioneercareer.com(domain)(4.0)(pool)’.

    Resource utilization by the Process ‘w3wp.exe*32’ (Pioneercareer.com domain).

    This domain is taking 100% cpu utilization.
    ——–

    sir please please help me.

    Like

  101. Hi Abhijit,

    My name is Anil Barnwal, a Sr. software Developer in .NET, today i see ur article on code project for exploring sessions, it is excellent.
    Just like to say Thanks for sharing ur valuable information with others.

    Like

  102. Dear Abhijit,

    I am getting alway the HTTP 500.19 error, the error code is
    after googled long… i had changed the
    to

    and to in the applicationHost.config. but till the same error.

    let me know how can i reslove this issue, the deployment system is W2K8 and IIS 7.

    Like

    1. Could you please repost your question. looks like some text for configuration is missing.

      On a side not, please verify the FW version of your application and the same is applied to IIS as well.

      Thanks !

      Like

  103. Hi Abhijit,

    In your article on Exploring Session on CodeProject.com, you have shown a different SQL Server than the replicated DB servers for storing session in SQL Server mode. Can’t the same set of DB servers be used to store the session?

    Please advise.
    Thanks.

    Like

  104. Hello Dear sir,

    i have seen yr blog n yr site that really helpful to us. i m fresher in software engg. so i hve no knowledge up to the level but i will get it by yr blog n yr site. i m so glad to touch with u n yr site.

    In future i really want to work with u 🙂

    Like

  105. Hi Abhijit

    I have used the General Tap in VS 2010 for storing my code as you suggested, but I have purchased a new laptop and need to find out where these snippets have been stored on my old laptop in order to load then onto the new one.

    Do you know where I can find this?

    Thanx,

    Marcus

    Like

  106. Thank you for your wonderful tutorial about deploying ASP.NET websites on IIS 7.0 that I discovered thru the codeproject website. It was straight forward & very simple to follow, making it a breeze to easily deploy any web application that I may need to in future, quite literally there was nothing like else it on the web.

    Like

  107. Abhijit da, at 1st i’d like 2 give lot of thanks. now i want 2 understand how to state management (like session, viewstate,hidden field, cookie etc.) works in page life cycle of asp.net page? hope u ll give us a new on this topic…. bye take care

    Like

  108. Hai..
    I need to develop a dynamic event calender where if we click on a event it should display as a layer.
    can u suggest me how to do it

    Like

  109. Hi Abhijit,

    My question is from the browser when we enter a url and hit the enter button what are the process happens? How the url is used to identify the server…

    Can u suggest some good flow on this or any nice article to get a complete flow???

    Like

  110. Hi Abhijit , i am new in asp.net , i want to kwon about session, view state, coockies, application all state management and purpose of each, why i can use thise in application.

    Rakesh .

    Like

  111. Hi Abhijit,

    You are really outstanding.I like your post/articles they are great and it’s really helpful to me.

    Thanks a lot..

    Regards,
    Abhijeet Singh Parihar

    Like

  112. I think your network spy is perfect! You did a great job on creating it.

    On the created, deleted, renamed and changed – how can I see which user (on a network) did it?

    I am a Network Systems Administrator and need a good program (like yours) to monitor our users.

    Thanks

    Like

    1. You can use this tool. I did it long time back, and haven’t work on that afterwards. No, detecting changed user is not there ( You will able to see who is accessing, but no more details user ). On that time I couldn’t find any API to get the exact user name who did the operation. I was talking about the same with one my friends just few weeks back. I know this tool could be extend with many new features. There are some issue with that tool as well. I was thinking to resurrecting NetSpy and start a fresh development with same idea. Let see.
      Thank you !

      Like

  113. Hi Sir,
    I m really proud of your articles on code project. God bless you. I deeply respect your intention of this website to serve the mankind by the power of knowledge, using your God gifted talents and capabilities with hardworking and enthusiasm. No doubt, those kind of people are achiever of aim of life. Plz keep it up.
    Our best wishes for you.

    Like

  114. Im using VS 2010 ULTIMATE,I HAVE INSTALLED SILVERLIGHT 4,AND NOW IM TRYING TO INSTALL EXPRESSION BLEND 4..its giving error.that you dont have an upgraded version.what can i do now plz give a solution?

    Like

  115. Hi Sir,

    I am Sharath. I want to learn ASP.NET and pass MCTS exam.
    Which book do u suggest me to study and how to prepare for exam and get an job?
    Kindly help. Your blogs and Articles are very nice.
    Thanks.

    Like

  116. EXCELLENT ARTICLE

    Thanks for your nice articles at codeproject.
    I want to ask you a question on session. i prepare a website and put session like UserId and UserName etc. but the session is not stay for longtime. I mean, suppose you use gmail or yahoo, it seems that your signed in how long you are staying at the browser. but mine’s is stay only for few minutes.
    can you please give me solution about the problem. Also it signouts automatically after sometime
    thank you. Also how to solve ViewStateMac problem ?

    Like

  117. hi abhijit

    i have seen your site, it is good for every person working in IT and also in .net Tech.

    currently i have one issue
    i’m working in vs2010, while attaching process in debug option
    i’m not able see the w3wp.exe file in the list and also when i’m mentioning remote ip address in qualifier
    it isi saying that “Login failure: unknown user name and bad password

    so how to get the w3wp.exe in the list from local system or from remote system

    it is very urgent

    waiting for ur reply

    thanks in advance

    Like

    1. Hi Ram,
      You have to make sure the worker process are running. If yes, then you should able to see the, Other wise check this ( You have to select process from all session / users )
      https://abhijitjana.net/2011/08/18/no-able-to-view-all-the-running-worker-process-in-visual-studio-process-attach-window-resolution/
      For Remote process debugging you have to check security settings in msvsmon.exe. I have one article @codeproject on the same

      Like

  118. Hi Abhijit

    i have gone through your articles. they are really very helpfull thanks a lot for such nice articles.
    i was wondering if you have any articles describing details about Web services.
    if so can you please share the link. that would be a great help.

    Thanks

    Like

  119. Hi Abhi,

    I’m a .NET trainer, I am say, your articles are simply the best. Infact I’ve been directing my students to ur codeproject pages. take care bro’

    Steven,Pune

    Like

  120. Hi Abhijit,

    I’m spending too much time on this and I am having so much trouble just freezing a gridview header it is ridiculous.

    I came upon your site through an article from code project and then to your own site.

    I am using just a gridview inside of a div and can’t get the gridheader to freeze.

    I can send a striped down version of the grid/css.

    Let me know your thoughts!

    Thanks so much!!

    Jim

    ====================================
    Jim Prucha

    ====================================

    Like

  121. Hi Abhijit,

    Here is the code I am using as far as the gridview and the css

    css:

    .HeaderFreez
    {
    position:relative ;
    top:expression(this.offsetParent.scrollTop);
    z-index: 10
    }

    I didn’t do the project in code project just that I didn’t need the update panel, etc. I just need to freeze the header.

    Thanks,
    Jim

    Like

    1. asp:Panel ID=”pnlGrid” runat=”server” ScrollBars=”Auto” Height=”350px”
      asp:GridView ID=”gvData” runat=”server” DataSourceID=”sqlDataSrc” AutoGenerateColumns=”true” AutoGenerateEditButton=”true”
      HeaderStyle CssClass=”HeaderFreez” Wrap=”false”
      RowStyle Wrap=”false”
      AlternatingRowStyle Wrap=”false”
      asp:GridView>
      asp:Panel>

      Here is the code. I hope it works this time.

      Like

  122. Hi Abhijit,

    Good Morning,

    i’m facing the small problem with radgridview.

    i’m unable to downlaod the file which is located at a folder in applicaiton path in the radgridview link btn

    here is the code

    protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {

    if (e.CommandName == “Resume”)
    {
    string strDoc = (e.Item as GridDataItem)[“vResume”].Text.ToString();

    Download(strDoc);

    string UploadFileFolderPath = System.Configuration.ConfigurationManager.AppSettings[“RMResumes”];

    if (strDoc != null && strDoc != “”)
    {
    Response.ContentType = “Doc/Docx”;

    Response.AppendHeader(“Content-Disposition”, “attachment; filename=” + Path.GetFileName(strDoc));

    Response.TransmitFile(Server.MapPath(UploadFileFolderPath) + “/” + Path.GetFileName(strDoc));

    Response.End();
    }

    }
    }

    private void Download(string filename)
    {
    try
    {
    string UploadFileFolderPath = System.Configuration.ConfigurationManager.AppSettings[“RMResumes”];

    if (filename != null && filename != “”)
    {
    Response.ClearContent();

    Response.ClearHeaders();

    Response.ContentType = “application/ms-word”;

    Response.AppendHeader(“Content-Disposition”, “attachment; filename=” + Path.GetFileName(filename));

    Response.TransmitFile(Server.MapPath(UploadFileFolderPath) + “/” + Path.GetFileName(filename));

    Response.End();
    }

    }
    catch (Exception ex)
    {
    lblErrMsg.Text = ex.Message.ToString();
    lblErrMsg.ForeColor = System.Drawing.Color.Red;
    }
    }

    can u help me where i’m doing the mistake

    waiting for your reply.

    thanks

    Like

  123. I have deploy an asp.net website to IIS 7.0 with an Apache server running using ProxyPass to redirect. When asp.net has to do a redirection (e.g.you try to go to a page and you are redirect to a login screen automatically) I am getting an error “The resource cannot be found” . This is because it trying to find the page at the wrong url (e.g when it should be http://MyDomain/Admin/User.aspx, the URL is http://MyDomain/Site/Admin/User.aspx) where Site is the actual name of the virtual folder in IIS. Help please

    Like

  124. Hi !
    I’m working with an web application project for my study.. I have some problems and i dont have muche time 😦
    – am using listView which it bounded to myDatabase, there is a Button under the text @ItemTemlate for every generated item in the listView (onPage_load), HOW can i get the productID for this item ??? i need the id to use in code behind to send all the info about the product to the myCart site .
    – I want to update a text on siteMaster when i add product to myCart, to showing the quantity and myCart site and the total cust.
    – What is WCF ? and how can i use it ?

    I appreciate any help as soon as possible, thank in advance
    Best regards

    Like

    1. am using listView which it bounded to myDatabase, there is a Button under the text @ItemTemlate for every generated item in the listView (onPage_load), HOW can i get the productID for this item ??? i need the id to use in code behind to send all the info about the product to the myCart site .

      You can simple get the product id from the source of data. you can use ItemDataBound event to bind with every item. Try e.Item.FindControl() get the button control and do what ever association you want to with it.

      Check here,how ItemDataBound works http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.itemdatabound.aspx

      – What is WCF ? and how can i use it ?

      Like

  125. Hello Sir,

    I am .net developer , i have a query regarding caching.

    i am using caching which is updated and reflected properly through out site. but when i am using it in Quartz scheduler it uses old data. whether i have update it or not.

    and right now we have to reset the scheduler.then it will use new cached data.

    so might be Quartz scheduler caching is override existing one.

    Please let me know if you can solve this issue.

    Like

  126. Hi Abhijit,
    Actually I saw your Kinect Tutorial Part I. I am using Kinect SDK 1.0 and Visual Studio 2010 but I do not get Microsoft.Research.Kinect.dll file and not getting Runnable class. So We need your help.

    Like

  127. Actually I want to find out the distance of multiple person(or even a single person) in cm or mm format. Can you tell me how can I find out this?

    Thanks in advance.

    Like

  128. Hi Abhijit,
    I actually how to find out the distance of a person (single or multiple) from the camera. I tried out Skeleton demo and Explorer demo of Kinect SDK but I want to know distance of a particular person in each frame. Thats all.
    Thanks in advance.

    Like

    1. Hi Siraj,

      Distance calculated based on the below formula,
      int distance = depthFrame[depthIndex] >> DepthImageFrame.PlayerIndexBitmaskWidth;
      where distance is in mm. DepthImageFrame.PlayerIndexBitmaskWidth is the constant and value is 3. depthFrame[depthIndex] is the pixel value with in the player range. Sensor sends raw 16 bit depth data where first 3 bit used for player index that is the reason there is a bit wise shift operator with 3 bit (DepthImageFrame.PlayerIndexBitmaskWidth ) . So, rest high 13 bits represent the pixel distance in mm from sensor. Hope this clears your doubts.

      Let me know if you need additional help !!

      Like

  129. Dear Abhijit,

    I am great fan of ur.
    kindly tell me how to create professional shopping cart application in asp4.0 with interactive store front.

    Waiting for your reply and thanking in advance.

    Like

  130. Dear Abhijit,
    I want to create a custom gridview control. and want to freeze fast 4 column. Plz help….

    Waiting for your reply.

    thanks

    Like

  131. dear sir,

    all your articles are nice,it’s really helpful for me.Especially iis related articles are very nice.

    now i’m presently working in asp.net(C#) technology.

    i want to do MCP in web application ,where i should apply ,and which microsoft paper i should write first.how to prefer for that.i want full detail related to this. please guide me sir,

    i look forward your reply

    Thanks in advance

    Like

  132. dear sir;
    i have seen ur SpyNet project developed by u by using c# and WMI but in that u have created one database in MS Accesses . i am not able to connect that sir . i am getting a run time waring showing dialog box with message “An error occurred while querying for WMI data:Accesses denied”.
    the code is in this formate:

    public static string sDBPath = @”.\spyDB.mdb”;
    public static string ConnectionString=”Provider=Microsoft.Jet.OLEDB.4.0;Data Source=” + sDBPath + “;Persist Security Info=False;”;

    Like

  133. Hi abhijit sir,

    I am saikrishna from Andhrapradesh.You are
    doing really a nice job .This site was very helpful to beginners for
    dotnet.I want the topics of State Management Techniques,
    Authentication Modes,MasterPages in Asp.net.Can ypu please provide to
    me .please…….

    Like

  134. Hi Abhijit,
    I have seen your articles in code project ,it’s really awesome and very helpful.I like your posts and articles.

    Thanks
    SOMESH ANAPARTHI

    Like

  135. hi sir
    i have seen u r spynet project but sir i am not able to understand how u r storing data in ms access data base.? pls ans me sir

    Like

  136. Hi Abhi,
    Great article on Kinect,Just want to know the Is it working simple IIS, hosted domain.
    Windows Azure is needed for capturing kinect data?Please send me the merits and demerits.
    I amplaaning to do the Kinect with IIS? Whats the cost of KINECT in INR[around]??
    thanks

    Like

  137. hi sir !
    I am beginner in asp.net, with experience of web designing
    i have just completed the .net course but the problem is that in institute they had not taught me well ..so now i have only theory knowledge and in practical i am 30%….but daily i practice 2-3 hr on .net framework but when i encounter any error i get confused and stop the work…there is know one around to guide me……so plssssssssssssss helllllllllp!

    Like

  138. hi sir I am engg student & i’m doing my be project on ms kinect i.e. a Quiz application.so plzz help me for my prject

    Like

  139. Hi Abhijit,

    As i am a beginner to .NET my friend suggested me to check your articles i am going through them, they are great and very help full 🙂 Keep going thanx a ton 🙂

    Like

  140. I have developed a web application. I have use session state inproc. but frequently user automatically log out when they are working this application. user’s approx 400. every users use 9:00 AM to 6:00 PM to my application. can any suggestion to me that what should i do?

    Like

    1. Hello,
      This could be because of your application pool is getting recycled automatically. It could be because of memory consumption or any other reason.

      I posted some tips over here,

      This may help you to understand, if there is any reason your app pool is getting recycle and users getting log out from the session.

      Let me know if you need anything else.

      Thanks.
      Abhijit

      Like

  141. Hi Abhijit,
    Great Work! your effort is being useful to many technocrats…Please proceed the same..hope I may also keep asking you help..Felt very happy that you settled in HYD..

    Like

  142. Hello Abhijit Jana, Hope you fine and enjoying your time. I am using Kinect 2 for my project, regarding that I need some help to save skeleton joints in a text file. I already have a program that can record the RGB, depth, and infrared streams.
    Also, If you don’t mind can I ask some question about the infrared images?
    Thank you

    Like

  143. Hi Abhijit,
    wanted to know can we create script for temporary tables If so then how to do it? Im using Sql Server 2008. Please help

    Like

  144. Hi How are you Mr.abhijit jana?
    Now a days i am reading your book kinect for window sdk programming guide. Its really good book. I am learnt much more and more about kinect for window.
    I want to develope application using kinect for window. I am read first,second,third and fourth chepter of your book. I want to make my own API on c#. As you given in chapter4 in your book. I am create start,stop and exit buttons. I put my kinect start code on my start button. When i run my kinect sdk code and click on my start button, kinect run but output screen not open. Sir when i remove the code from button then it work. And when i put my whole code into button it give some errors.
    Sir kindely resolve this issue as soon as possible. i am also sent you email.
    I am available every time, whenever you free kindely reply me any where. if you like i will also join you on facebook or tweeter.
    Thanx
    Regards
    Umer Saeed

    Like

  145. Helo How are you? Mr.Abhijit Jana
    Now a days i am reading your book kinect for windows sdk programming guide. Its really informative book about kinect for window. I am read 1st,second,third and fourth chepter of your book.
    I want to make real time system using kinect for window. Sir as you build API in c# in chapter4 of your book. I want to build this type of API for my project. i create start,stop and exit button.
    I put kinect start function code on my start button. When i run kinect sdk code and press start button, it start the kinect but not show output screen. Sir when i remove this code from button then it work. Sir kindely resolve this isuue. I will also send you email. I am available everytime. Whene ever you free kindely reply me. If you like i will also join you on facebook and tweeter.

    Like

  146. Hi abhijit sir,

    I am Shahabaj shaikh, please send me application life cycle understanding easily i am waiting.

    Thanks
    Shahabaj

    Like

  147. Hello Abhijit
    Please I need your help for solving the issue with 3D Scan app for windows 10 when connecting to Kinect sdk v2

    I followed what you wrote about setting in windows and everything works properly and Sdk is seeing the all sensors and all drivers updated …

    but when connect 3D Scan to Kinect then 3d scan cant find the depth sensor and cant see the kinect camera

    what I can do ? what the problem is?

    Thank you very much

    Like

Leave a reply to J. F. Cancel reply