CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 1/11/2006 9:21:27 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 41 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"Matt_F" <>
NewsGroup User
Slow webapp startup in VS2005 vs. VS20031/11/2006 9:21:27 PM

0

Starting up a pretty small web app under VS2005 seems to take well over a minute. I don't see anything at all in the Output window for a quite a long time, then eventually see some messages about Build Started, then within a few seconds the application is up.

Under VS2003, the Build Started messages show up immediately, and the app (a much larger one) is up and running in 5 to 10 seconds.

Anybody know what is going on?

I don't know if it is relevant, but my My Documents is on a network drive, though in both cases the project itself lives on the local C: drive.

-- Matt

"ScottGu" <>
NewsGroup User
Re: Slow webapp startup in VS2005 vs. VS20031/12/2006 6:51:12 AM

0

Hi Matt,

One possible cause of the problem is an issue we sometimes call "dueling references".  Can you confirm whether you have references to external assemblies in your project (you can check this by looking in your \bin directory for files with the .refresh extension)?

Also -- can you try doing a clean compile and seeing how long it takes.  Then, without making any code changes, try doing a "build solution" again and see if it takes the same amount of time.  If it does, then this is probably the dueling references issue.  If so, I can walk you through how to fix this.

Hope this helps,

Scott

"Matt_F" <>
NewsGroup User
Re: Slow webapp startup in VS2005 vs. VS20031/12/2006 7:04:26 PM

0

Yes, I definitely have external references. I added the Enterprise Library dll's to my project. And now that you mention it, that is probably about the same time as when things started seeming slow.

Also, in addition to the Enterprise Library dll's, I had to separate some of my own code out into separate projects and create dll's. This is because I wanted to create my own CustomTraceListener for use with the Enterprise Library Logging package, but in order to configure that, you need an actual dll with your class in it (and web apps do not produce dll's).

So yes, I have a quite a few files in my webapp's Bin folder with the .dll.refresh extension.

Also, selecting Build Web Site, it takes about 65 seconds to see the first "Building Directory" message, and then it is complete in less than 5 seconds after that. Doing it again immediately after it takes about 50 seconds to see the Building Directory message.

Also, one other data point I forgot to mention, if I make a code change while the web app is already being debugged, it only takes a few seconds to recompile/reload. It is only the initial launch of the webapp (or the rebuild command) that is slow.

So it definitely sounds like "dueling references". Please let me know how to end this senseless feud!
"ScottGu" <>
NewsGroup User
Re: Slow webapp startup in VS2005 vs. VS20031/12/2006 8:24:02 PM

0

Yep -- based on your description I'm almost ceretain it is the dueling references issue.  The delay it occurs only happens when you start a build -- which is why you aren't seeing when you make changes while under the debugger.

Basically, the .refresh files within your \bin directory contain a pointer path to an assembly to dynamically refresh in the project anytime it changes.  As part of this refresh process, it will also update and bring over other assemblies used by that target assembly if it has dependencies on it.  For example, if you have a .refresh file pointing to AssembyA.dll which has a dependency on AssemblyB.dll, both will get copied over into your \bin dircectoy whenever one changes.

What can happen is that you might have two or more .refresh files pointing to different assemblies -- and that some of those assemblies are built and have dependencies on different versions of files.

For example: You have two .refresh files -- one pointing to assemblya.dll and one pointing to assemblyc.dll.  Both have a dependency on assemblyb.dll, but the assemblyb.dll in their local directories are different versions.  As such, you can end up "refreshing" and copying it over, and doing a clean build, everytime you do a build or hit F5.  This will slow your build time down incredibly. 

There are a couple of ways to fix it:

1) Make sure any shared assemblies that you have references to are in sync and don't have version mis-matches.  This is the ideal approach and would be what I'd recommend unless there is some technical reason why they can't be versioned in sync.

2) Delete the .refresh files in your \bin directory.  The .refresh files are only needed if you want to dynamically update the assemblies on changes.  If you want to manually update an assembly, you can just delete its .refresh file (but keep the .dll). 

If you can't fix the cirtuclar reference in #1 and/or don't want to loose the dynamic update capability by doing #2, you can kind of cheat the build system by creating a new utility library as a class project.  Have this utility class project reference these dueling assemblies, and then reference the utility project from your web-project.  This will then cause all of the latest assemblies you need to be copied into the web project -- and avoid having the duplicate cause a reset each time.

Let me know if this works for you or if I can help more.

Thanks,

Scott

"Matt_F" <>
NewsGroup User
Re: Slow webapp startup in VS2005 vs. VS20031/12/2006 10:19:14 PM

0

I deleted the .refresh files and build time has dropped from around 60 seconds to around 3 seconds!

Thanks for the help. If I get inspired I may try and sort out what the conflicts actually were. I had copied all the dll's out of the individual folders in the Enterprise Library and put them into one place before I added them as references to my project, so that may have something to do with the confusion.
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













googling for getsecuritydescriptor in c# and i have found kb:899553, but i don't want to set permissions

network credentials

authorizationstoreroleprovider error

problem seeing provider placed in gac

i cant get recoverpassword to work help

security implementation?

https page prompt to accept a certificate on all object (images...)

active directory authentication - password reset not working correctly please help!

current user logout when using createuserwizard control

x.509 certificates and encryption problem

how to authenticate users using user login and password stored in sql database?

set roles without going to "administer website

form authentication working in firefox 1.5 , but not with ie 6

when is 'isanonymous' available in the request pipeline?

problem using login control

issue with role based access control

organizing roles and user for an enterprise system.

not sure what im doing wrong here..

protecting a pdf within a folder

how do you setup security with one application but multiple databases for different usergroups?

automatic logout

rsacryptoserviceprovider stores key in user profile?

forms authentication - timeout redirect

ssl

restricted directory problem

change connection string dynamically per user

authentication not timing out

cannot access a subdirectory

multiple user authentication

asp.net forms first user???

authorized

logging in from multiple pages

security exception when encrypting web.config

group names & ad - vb

roles & users

how to encode a url path

login control customization!

validating local users, passwords, and groups

encrypting the connection string

passing user credentials from sharepoint 2003 site to asp.net web application

create new user with a profile and role but already logged in as admin. please advise....thank you.

problem with redirecting to the correct web server...

sql injection

login control

problem with membership and role manager

protecting .aspx files

any standard way of user account creation and management

date validator and smartnavigation ->windows popup netwok username

login redirection not working

restrict user to view a certain area of the page on the bases of his rights

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT