One Click Publishing A Web Application Without Restarting It
Mar 22, 2011
I have installed Web Deployment service on a Windows 2008 machine, started using one click publishing in VS2010 and it works.
With one glitch, even though I change a view only file (like a *.cshtml razor file which is not compiled), web site is restarted. Therefore user sessions are lost. Maybe I am missing something so trivial, because it knows uploading only the changes.
Does anyone know whether restarting can be prevented using one click publishing or not?
If not, suggestions are welcome ^_^
View 2 Replies
Similar Messages:
Jun 14, 2010
I'm working on an ASP.NET app that keeps a lot of data cached. This data remains cached when I restart the app, so I have to reset IIS if I want to rerun the code that gets the data, otherwise it's just taken from the cache. Is there a way that I can automate this?
View 2 Replies
Mar 29, 2011
I have an asp.net application which uses session for user management. So if the application is restarted users will loose their works. I have some components used by this asp.net application and those components (class libraries in Bin folder) have configurations. I want to save configurations of those components somewhere and change them from back-end (administration panel) and the components use the updated configs but still application should not be restarted (changing web.config will result in application restart).
View 2 Replies
Jan 28, 2010
Possible Duplicate:
How to prevent an ASP.NET application restarting when the web.config is modified?
View 5 Replies
Nov 18, 2010
My WCF Service isnt restarting after the app pool recycles. I have no control over how often the pool is recycled (shared hosting) .How do I get the wcf service to restart on pool-recycle ?
View 1 Replies
May 26, 2010
I am caching a file in ttpContext.Current.Application object. Now when I change the values in file, it does not get reflected in the application (I am reading the values from the file for app version).
Even after restarting the app pool and the website in IIS, the changes does not reflect. I dont want to restart IIS.
View 1 Replies
Mar 10, 2011
I'm using Visual Studio 2010 and working on an ASP.NET 4.0 web application. At the moment, a co-worker and I are tweaking CSS, which means constantly changing and saving CSS files and then refreshing the running page in a web browser.Every few saves, the application restarts, causing a considerable delay while we wait for the app to start up, log in again, and return to the page we were working on. In an IIS production environment a CSS file wouldn't go through the ASP.NET ISAPI, but apparently when running with VS2010 and the developent web server this doesn't matter... or something.
View 2 Replies
Jan 4, 2010
I want to know a few things about Publishing an asp.net web application,
Why should i publish my web application? What are the advantages of publishing a web application?
View 3 Replies
Jan 26, 2011
have a problem when published web application in IIS.
First of all, I converted my web application from 2008 version in 2010 version of visual studio, but I didn't change the framework, so framework is 3.5. This application is writen in c#.net.
I published it succesfully in IIS. The problem is that this application run , but when I try to login , it remain in the same page , so I cant login ,cant go inside my application. It seems like the server redirect the browser in the same conten page.
View 8 Replies
Dec 30, 2010
I have various dll's that I am not directly referencing in a ASP.NET website I am attempting to publish via the "Package/Publish Web" feature in Visual Studio 2010.
How can I tell the publishing feature that it needs to include these certain files?
Note that I do not want to directly reference these dll's (the solution has specifically been setup in a way so that these specific dll's are not directly referenced).
I've found a <ExcludeFilesFromDeployment/> but I can't find a way to specifically include files.
View 3 Replies
Feb 23, 2011
I have a web application and when I decided to test on IIS 7 i have this Exception when trying to load a couple of pages that uses Entity Framework 4. I use EF 4 with my own CRUD assemblies but sometimes using the EntityDataSource. I have noticed that the problem is not appearing in all my Web Pages but I think in those that I use the EntityDataSource.
Here's the log from a Page:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
mscorlib
System.Type[] GetTypes(System.Reflection.RuntimeModule)
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly()
at System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load()
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData)
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors)
at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage)
at System.Web.UI.WebControls.EntityDataSourceView.ConstructContext()
at System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
................it's not complete but I guess you can see the latest breadcumb...
Just for more info i post another page problem.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
mscorlib
System.Type[] GetTypes(System.Reflection.RuntimeModule)
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly()
at System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load()
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData)
at System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors)
at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage)
at System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage)
at System.Web.UI.WebControls.EntityDataSourceView.ConstructContext()
at System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at System.Web.UI.WebControls.FormView.DataBind()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.FormView.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I think its the EDM problem but I can't get through.
I should mention that in my development pc is working all perfectly!!!
My controls are DevExpress but I dont think this should play any role!
[EDIT]
Forgot to mention that I use Self tracking Template with the Entities.tt in a separate assembly!
[EDIT 2]
On my local Windows 7 IIS works OK! It's Windows Server 2008 I can't get it done!
View 1 Replies
Nov 29, 2010
I am trying to move my web application from my computer to a server by publishing as a web site. But, after publishing, the user controls defined in the designer files are no longer recognized by the code behind.
View 5 Replies
Nov 16, 2010
How to publish the website/application on localhost and what should be entered in browser while accessing it from localhost
View 1 Replies
Apr 22, 2010
I have a .rdl report generated by using Report Server Project(BIDS).I want to use this existing rdl report in my web application without deploying it to Report Server...i.e i want that .rdl report object so that i can additinal columns dynamically and display that report in ReportViewer
View 1 Replies
Nov 18, 2010
i have built a webapplication using VS08 and IIS 5.1
then i published it to IIS but now i have noticed that the images the application has are not visible.
also the Javascript that i have added are not being added.
this was not the case when i was developing the application.
i was sure that i was path problem but i changed it <img alt="Loading" src="images/progress.gif" />
still the image is not being shown.
also if i try to browse the path http://localhost/MyApplication/images/progress.gif then i see this message
You are not authorized to view this page
View 4 Replies
Dec 12, 2010
i published an application on windows server 2008 and IIS 7 i am facing a problem when user are trying to access the server or the web application in address they put ip address of the server /application a pop up screen asking for username and password problem IIS on windows server 2008 ..the server is configured it s making me crazy it s asking users for username and password
View 3 Replies
Oct 21, 2010
We have a shared drive where web applications are published to. When I attempt to publish I get the following error:
------ Publish started: Project: XXX.Web, Configuration: Release Any CPU ------
Connecting to T:WebSitesXXX...
Unable to create the Web site 'T:WebSitesXXX'. The path 'T:WebSitesXXX' does not exist or you do not have access. The system cannot find the path specified.
Details
OS: Windows 7
IDE: Visual Studio 2008 (running as administrator)
Path exists? Yup.
I assume it's some permissions issue, but I have no idea where to start.
View 2 Replies
Aug 26, 2010
If you could give me some guidelines It would mean a lot to me. what type of authentication I use, how to do id from localhost, how to modify web.config file etc
View 1 Replies
Nov 4, 2010
After i publish my web.config i get null reference to all the code that uses the webconfig.What could be happening?I checked my web.config property and its set to Embedded Resource.
View 2 Replies
Dec 1, 2010
have looked around for an answer to this but not quite found what I need.
The main (home) page of my web app has a field on it indicating the last time an SSIS package was run. This is done under the page load event and the code reads a sql server table to pull of the date and time.
The problem is, if the date and time is updated and I then close teh web browser and re-open it and displays the main (home) page, the time displayed has not been updated. I have to either hit F5 or clear the temp internet files using the options under IE.
I found some code which refreshes the page automatically once every 5 seconds or at set intervals but this is not what I want to do. I just the page to be refreshed upon loading it.
View 2 Replies
Jun 24, 2010
i have deployed my website in windows 2003 server. my cliets are working on that.every day night i restart the machine untill that there is no problem. if i have not restart the machine then soon my clients recive "PAGE CANNOT BE DISPLAYED". if i restart the machine then the issue is solved. i want to know the issue which makes the site "page cannot be displayed" and i want to resolve the issue with out restarting.
View 4 Replies
May 11, 2010
I am a problem in my one of my web applications. I run this application under ASP.NET Development Server. Normally, in all of my other projects, when I made a change, I recompiled the project, and then press CTRL+F5 in the browser, then the new changes will be displayed in the browser. However, this specific project, when I made a change, recompiled, and then press CTRL+F5 in the browser, the page stayed the same as it was, withouth displaying the changes. I have to restart the ASP.NET Development Server to see the new changes.
This problem is not only happending in my PC, but also in others who doesn't have Visual Studio installed. So I guess there is nothing to do with my PC's environment. Are there anything wrong with my web.config?
View 2 Replies
Apr 13, 2010
When I make changes to a file, Mono ASP.NET doesn't see my changes, I have to do this:
sudo /etc/init.d/apache2 restart
I remember when Mono ASP.NET executes ASP.NET it caches the compilation somewhere. Before, when the updated page doesn't come up, I just delete that cached compiled code. I just forgot the exact path
How to make Mono ASP.NET detects the changes I made in program, without restarting the web server?
View 2 Replies
Aug 28, 2010
I am using Visual Web Developer 2010 Express. When I minimized a subroutine or a function to make my .vb file smaller, it looks great. But for some reason when I save, exit, and go back into the IDE the code is back to being maximized, making me have to do it all over again. And the more code I have in my .vb file the more chaotic it is.
Am I doing something wrong, or is there just no way to have the state of minimized subs and functions to follow through to the next time I'm in that same .vb file in VWD upon exit and restart? T
View 2 Replies
Sep 29, 2010
I'm getting "Cannot connect to ASP.NET development server" almost every time I stop the ASP.NET server before restarting the project in debug mode. It can take between 15 seconds and 2 minutes to get the error message, and Visual Studio is frozen.
Sometimes I get three in a row, and I have to wait 2 minutes each time, or go into Task Manager and kill to process. Then I have to start Visual Studio 2010 again, which is at least three times slower than Visual Studio 2008 to open.
It's *extremely* annoying. I know I don't have to close the server if the code has changed, but sometimes I simply want to restart my website in debug mode (there is a cache on most web service calls, so this clears the cache). A workaround is to add "foo" code to a class and restart the project.
I'm running Visual Studio 2010 Professional on Windows Server 2008. I'm running the Visual Studio Power Tools too, with the latest update.
View 1 Replies