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

  • SEARCH
  • Home
  • 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 8618881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:12:36+00:00 2026-06-12T06:12:36+00:00

I am facing very strange situation. I am developing my ASP.NET application and debugging

  • 0

I am facing very strange situation. I am developing my ASP.NET application and debugging it on visual studio development server and when I some component is finished, I publish my application on IIS to let other people test the input data. So when I am running it on dev. server, everything is fine, but on IIS the page loading is incredible slow.

So first question is How can be compiled application slower then application in debug mode?

I wanted to find out why, so I started to remove JavaScript includes from my site.master.cs file. And It actually helped, but it works in unexpected way.

My includes are done by this code :

ClientScriptManager cs =Page.ClientScript;
        cs.RegisterClientScriptInclude(typeof(string), "jquery", Page.ResolveClientUrl("~/Scripts/jquery-1.8.0.min.js"));
        cs.RegisterClientScriptInclude(typeof(string), "jqueryUI", Page.ResolveClientUrl("~/Scripts/jquery-ui-1.8.23.custom.min.js"));
        cs.RegisterClientScriptInclude(typeof(string), "utility", Page.ResolveClientUrl("~/Scripts/utility.js"));
        cs.RegisterClientScriptInclude(typeof(string), "forms_v2", Page.ResolveClientUrl("~/Scripts/forms_v2.js"));
        cs.RegisterClientScriptInclude(typeof(string), "odkazy", Page.ResolveClientUrl("~/Scripts/odkazy.js"));
        cs.RegisterClientScriptInclude(typeof(string), "tabs_v2", Page.ResolveClientUrl("~/Scripts/tabs_v2.js"));  //Nahradí tabs
        cs.RegisterClientScriptInclude(typeof(string), "user", Page.ResolveClientUrl("~/Scripts/user.js"));
        cs.RegisterClientScriptInclude(typeof(string), "grafika", Page.ResolveClientUrl("~/Scripts/grafika.js"));
        cs.RegisterClientScriptInclude(typeof(string), "json2", Page.ResolveClientUrl("~/Scripts/json2.js"));//IE7

So by removing includes one by one I have found out that the problem is caused only by forms_v2.js but I can’t simply remove this script, I need to find out exactly which function slows my app down. But after removing whole text in the script, nothing changes.

So finally the situation is this: when there is include for forms_v2.js even if it’s empty file, my app is very slow, but when this include is removed, everything works fine.

P.S. I know that to improve performance its better to have less JS files and I will merge it and minify before deploying, so that’s not my problem.

  • 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-12T06:12:38+00:00Added an answer on June 12, 2026 at 6:12 am

    Try to check existing of these script before including

    if (!Page.ClientScript.IsClientScriptBlockRegistered("jquery"))
          Page.ClientScript.RegisterClientScriptInclude(typeof(string), "jquery", "YOUR_SCRIPT");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm facing a very strange problem in my ASP.NET Application. When the user clicks
I am facing very critical issue with my asp.net web application in which i
I've websphere application server 7 network deployment, and am facing a very strange issue,
We are facing a very weird situation using Visual Studio 2005: There is a
I am facing very strange problem. After debugging from my side, I thought to
In my 2nd ASP.NET MVC project I'm facing a very weird problem: when I
I am facing very strange and difficult problem. I am developing a web app,
I have a very strange behavior on an application. The server is in New
I'm facing a very very strange behavior my application. I'm going to describe my
I am facing a very strange problem that my J2ME application .jar file is

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.