Running Sites On "localhost" Is Extremeley Slow?
Mar 5, 2010
Having real trouble using my local host to test sites. It runs extremely slow! Sometimes up to a minute to load a page. I'm using firefox and the sites i'm testing run fine on other developers in my office local machines/ on the production server.
I've gone through the normal things :-
Disabled IPv6
Not running in debug mood Put the site in the highest app pool (High Isolated) on IIS 6.Taking of firewalls etc.The problem only seems to occur when hitting pages which contain some form of .net code in the code-behind.
Appreciate that this a little bit of a vague topic / stab in the dark but would appreciate any sort of advice - it's horrible waiting a minute each refresh to try out a change!
View 2 Replies
Similar Messages:
Sep 27, 2010
i see that my site is a little slow in my localhost it is fast but in the server not but i see that videos are displayed without problems so i dont think that is from bandwith but i am not sure which are the main things that make a page go slow? sessions can be one of that?? or connections with database??or something else?
View 8 Replies
Apr 15, 2010
iam using c#,asp.net and iis, i want to simulate slow internet connection on my pc for testing my app. is it possible i can control bandwidth of iis. System.Threading.Thread.Sleep(someDuration); in c# file.
View 3 Replies
Sep 21, 2012
All of a sudden my debugging is taking forever to start on localhost (several minutes). It also takes a long time to return to the vwd after I stop debugging.
I haven't done anything that I can think of that would change anything (it has worked in the past, although the slow stop may have been there for some time.
The only thing I did was to add another user to the membership db.
I think it's a problem with starting the localhost development server.
View 1 Replies
Nov 15, 2010
I have two sites: a site written in vb (site 1), a site written in C # (Site 2).
Site 1 running on a primary domain, eg http://abc.com. site 2 run as sub domain, eg http://site2.abc.com.Now I do not want to run the site 2 as a sub domain 2 again, which would put it in a folder of the site 1, for //abc.com/site2/Default.aspx.So now we have to configure in a site how to run the site 2.
View 2 Replies
Jul 9, 2010
How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1?
View 2 Replies
May 22, 2010
i even dont know how to configure and use all the stuffs and just want to start learning..
when i type localhost in my IE..it shows IE cannot display the webpage..
View 2 Replies
Oct 30, 2010
I have a fairly big ASP.NET 3.5 website that refuses to open any page via the 'View in Browser' option of VS2010, i.e. the LocalHost facility does not work. All I get is a 'File Not Found' error.
Two other ASP.NET 4.0 sites (which are much simpler and do not have any SQL Server connections) can be viewed without any problem via the LocalHost service.
View 9 Replies
Mar 16, 2011
I'm more into the LAMP stack, but I've been asked to work on a site that is running Windows and IIS 2008. I'm a beginner with IIS, so please be patient with me on this, and please ask me to provide more information if that is needed to determine. I read the answer here (Slow first page load on asp.net site), but it seems like if I go to the site with one browser it takes long to load the first page, then fast on all other pages, then if I open up another browser, it's the same thing, so it's not something that is saved on the server, but per session? Is there a way to have the application running at all times? Right now it is taking 12 to 15 seconds for the first page to load. I have access to the WebControlCenter and FTP.
View 3 Replies
Mar 19, 2011
The below SQL query is running extremely slow. Im using this query on other tables and its processing about 5 rows per second. The below version is running 1 row every 10 seconds when @SQLNew is executed.
[Code]....
View 5 Replies
Feb 22, 2011
There's a web app I've been assigned to, which is running very slow. It is a site that sells products so it is database driven, however even pages that do not query the database are loading very slow. The pages use master pages, and the code is in VB.NETI checked with fiddler and the time it takes to load basic (non database driven) pages are about 5.5 seconds on average.
What are some tools that can help me determine the cause of the slow speeds, and any recommendations as to how to speed it up, or potential issues that could cause it?UpdateSo I messed around with the code piece by piece as I wasn't getting anywhere with these tools. As soon as I remove master pages, and I include the same code that's on the master pages in the .aspx page itself, the speed improves drastically (approximately 5 times faster load times).What might cause the master pages to cause load times to slow down so much?
View 4 Replies
May 25, 2010
My web app connects to my database server which is on my lan. It is usually very quick but once in a while the connection is extremely slow and has even causing errors by timing out. The server only has 1 gb of memory so I'm going to upgrade to at least 4 gb.
View 3 Replies
Dec 30, 2010
I created a simple web service in VS2010 (C# - XP Professional SP3 development computer -- running .Net 3.5/4.0) that just does the basic "Hello World" and changes Temperatues from Farenhet to Celcius functions and ran fine in VS2010. I then created a directory in C:Inetpubwwwrootwebsvcvs10a (of the same development computer). In the localhost IIS I converted this to an application directory (properties/create application). I tried to deploy my web service here using the publish wizard of VS2010 but was getting errors stating that the URL was not in the correct format, so I decided to just copy myService1.asmx, Web.Config, and the bin folder (which contains the compiled assembly) directly to C:Inetpubwwwrootwebsvcvs10a. Then from the localhost IIS I tried to browse myService1.asmx and received the following error:
Configuration Error
Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error: [Code]....
Source File: c:inetpubwwwrootwebsvcvs10aweb.config Line: 6
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
--I tried changing the targetFramework to 3.5 in web.config, but that did not fix the problem. I then removed the targetFramework attribute from web.config and then got this error message:
Could not load file or assembly 'myVS2010Websvc' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
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.BadImageFormatException: Could not load file or assembly 'myVS2010Websvc' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
What can I / should I do to resolve this problem so that I can deploy this web service project to localhost -- don't I already have .Net 4.0 runtime on this machine? It is the same machine that is running VS2010.
View 2 Replies
Nov 9, 2010
I am using AUtomapper which I am very impressed with however, I have a complex object with many nested collections. I'm using Telerik OpenAccess and it returns the 1400 records fast but when I pass it to Automapper and it slows to a ridiculous crawl. Here is my code for reference:
List<DAL.Event> query = httpContext.Events.Where(e => e.Inactive != true && e.Event_Locations != null).ToList();
Mapper.CreateMap<DAL.Event, EventDTO>();
Mapper.CreateMap<DAL.Event_Association, EventAssociationDTO>(); [code]....
View 2 Replies
Nov 15, 2010
One of my peer wrote a query based on multiple tables using joins. One of the table is in a different database The query was taking much time
1. Create an SP
2. Create a temp table and copy all records from the external db
3. Avoid using Left Join as much as possible and use Inner Join
4. Create and use indexes
5. Remove tables/columns that are not necessary
In this scenario, I would like to suggest to use Covering Index, but how can it be created for multiple tables and a temp table?
View 3 Replies
Aug 31, 2010
Page A loads very fast; Page B loads very slowly and does some CPU-intensive things on the web server. I noticed that if someone is loading Page B, then Page A also loads slowly - for ALL users. What is the standard practice for making sure this doesn't happen? If multiple users are loading Page B at the same time then Page A is ridiculously slow. Is there an IIS setting, web.config setting, or hardware configuration I could use to make sure that the fast-loading pages aren't bogged down by other pages that need more time to load?
View 1 Replies
Nov 27, 2014
I'm new in using C# in ASP.net My code is causing Internet Explorer to run slow and return error message asking to stop running this script.
When I use the "Select *...", it return about 700 rows of records and it cause the error.
When I use another SQL "Select NOC0854....", filtering some records, it return about 300 rows of records and no error message appear.
How I can improve my code so that I can retrieve all records from my table? I think 700 rows of records doesn't seem a lot, maybe my code is not correct?
Code:
//cmd.CommandText = "Select * from PTH3759";
cmd.CommandText = "SELECT NOC0854 from PTH3759 WHERE HID0019 >= TO_DATE('11/01/2014','MM/DD/YYYY') AND HID0019 <= TO_DATE('11/28/2014','MM/DD/YYYY')";
cmd.CommandType = CommandType.Text;
OracleDataReader dr = cmd.ExecuteReader();
if (dr.HasRows) {
GridView1.DataSource = cmd.ExecuteReader();
GridView1.DataBind();
}
View 2 Replies
Nov 29, 2010
I've written a small MVC application and am having trouble deploying it to localhost. I use the publish feature when I browse http://localhost this is what I get: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this dir A sample aspx page is rendered correctly.
I've tried the aspnet_regiis -r I've made sure ASP.NET is installed in Windows Features. The web platform installer tells me MVC 2.0 is installed. I did install VS2010 first and then IIS so I suspect that maybe causing problems but in the past aspnet_regiis -r has fixed that.
View 4 Replies
May 13, 2010
How remove "localhost:portno" when running an asp.net website under iis?... When i browse my virtual directory i can
http://localhost:120/mine/Forms/Clients.aspx.....
View 2 Replies
Aug 17, 2010
i m not able to open certain sites from internet explorer 7.it is showing all sites as restricted .
View 12 Replies
Jul 16, 2010
I am interested in developing Web Parts that can be used in our ASP.NET sites
and our SharePoint sites. An example Web Part I have in mind is a Post Code (Zip Code) look up.- Visual Studio 2010 Premium- SharePoint Designer 2007- Windows 2003 Server (therefore WSS 3.0)- No SharePoint Server
View 2 Replies
Jul 1, 2010
I am executing a long-running Oracle stored procedure from .NET. The procedure takes about three hours to run. Ideally, the user should be able to kick off the procedure, close the browser, and come back later to check the results.
The problem is that the connection to the Oracle procedure is lost after exactly an hour. As you would expect, the Oracle procedre runs to completion if it is executed from SQL Plus. Strangely enough, it will also run to completion if I run in debug mode on my local machine (I start two threads, one of which executes the procedure. I set a breakpoint on the second thread).
Here is my connection string:
data source= (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=serverx)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TestSID)))
Some relevant sections from web.config:
<sessionState mode="InProc" cookieless="false" timeout="3000" stateNetworkTimeout="72000"/>
<httpRuntime executionTimeout="18000" maxRequestLength="2097151" />
Any thoughts as to why the connection is being lost in exactly an hour, and what I can do to maintain the connection until the procedure finishes?
View 1 Replies
Mar 25, 2011
We plan to develop a ASP.NET ( VS 2010 ) web site.We need to know if there are any ready made startup ASP.NET web sites so we can get them and adjust / upgrade according to our needs.
View 1 Replies
May 31, 2010
I want to create several websites on my domain, and I am wondering how to go about this in MVC? Should I put them all within one project, and create separate folders in each Views, Models and Controllers folder for each site, or would it be better to create a separate project for each site, although I'm not sure how I would integrate
View 5 Replies
Feb 16, 2011
Im working on a project where i will need to create sites programatically when a user completes a sign up process.
so basically if my main site is: www.mysite.com i will need to create subsites in the format of: www.username.mysite.com
where username is an option entered by the user in the signup process to designate a unique identifier for their site.
im working with VB.NET language.
View 5 Replies