Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8799417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:19:05+00:00 2026-06-14T00:19:05+00:00

I have a web application that works fine on my development machine but when

  • 0

I have a web application that works fine on my development machine but when I install it on another machine, it just crashes on one of the new methods I added to a DLL.

Looking deeper into it, the installed does not take the PDB files whereas they are on my dev machine. So I tried to remove them on the dev machine and my new method crashes the same. Other methods don’t crash at all.

My method just throws up a “NullPointerException” that never comes up when the PDB files are present.

I know what the PDB files are for (I searched this site before posting) but this should not alter the way the application works. Should it?

EDIT: Forgot to mention that all is in <release> not <debug>. That is why I question about the PDB files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:19:07+00:00Added an answer on June 14, 2026 at 12:19 am

    I found what is going wrong in my code.
    In the logger part, using log4Net, I have code like this:

    public static void Info(string strMsg)
    {
        StackTrace st = new StackTrace(true);
        StackFrame sf = st.GetFrame(1);
        _log.Info(string.Format("{0,-25} L{1:0000} {2}", sf.GetFileName().Substring(sf.GetFileName().LastIndexOf(@"\") + 1), sf.GetFileLineNumber(), strMsg));
    }
    

    So I changed the entries to something like this:

    public static void Debug(string strMsg)
    {
        StackTrace st = new StackTrace(true);
    #if DEBUG
        StackFrame sf = st.GetFrame(1);
        _log.Debug(string.Format("{0,-25} L{1:0000} {2}", sf.GetFileName().Substring(sf.GetFileName().LastIndexOf(@"\") + 1), sf.GetFileLineNumber(), strMsg));
    #else
        _log.Debug(string.Format("{0}",strMsg));
    #endif            
    }
    

    And now all works fine without the PDB files.
    So picking information from the stacktrace requires PDB files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that works in our stage/test environment fine but once
I have an Asp.Net MVC application that works in the vs.net development web server.
we have a WAR packaged web application which works on a development machine. It
I have a web application project that works with a quite large database (over
I have a web application that has a constant URL and internal state machine.
At work we have a pretty large web application that works by having a
I have a fairly simple CRUD web application (C#/ASP.NET) that runs fine in Firefox,
I have a web application in ASP MVC 3. In development environment, everything works
I have a web application that allows users to enter search criteria and the
I have a web application that will be used on iPhones, and want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.