How To Refresh Mono Page Without Restarting The Web Server
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?
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.
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.
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?
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.
Apparently Mono replaces references to SQL Server membership provider with sqlite membership provider (see ASP.NET_Settings_Mapping). Is there any way to convince Mono to use SQL Server for the membership provider?
When I try to log in to my web app, I get the following:
System.Configuration.Provider.ProviderException: Operation aborted due to an exception (see Trace for details). at System.Web.Security.SqliteMembershipProvider.ValidateUser (string,string) <0x003bb> at DirectMail.Controllers.AccountMembershipService.ValidateUser (string,string) [0x00000] in [file].cs:404 at DirectMail.Controllers.AccountController.ValidateLogOn (string,string) [0x00040] in [file].cs:346 at DirectMail.Controllers.AccountController.LogOn (string,string,bool,string) [0x00000] in [file].cs:79 at (wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,System.Web.Mvc.ControllerBase,object[]) <0x001c1> at System.Web.Mvc.ActionMethodDispatcher.Execute (System.Web.Mvc.ControllerBase,object[]) <0x00028> at System.Web.Mvc.ReflectedActionDescriptor.Execute (System.Web.Mvc.ControllerContext,System.Collections.Generic.IDictionary`2<string, object>) <0x0015b> at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor,System.Collections.Generic.IDictionary`2<string, object>) <0x00036> at System.Web.Mvc.ControllerActionInvoker/<InvokeActionMethodWithFilters>c__AnonStoreyB.<>m__E () <0x00092> at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc.IActionFilter,System.Web.Mvc.ActionExecutingContext,System.Func`1<System.Web.Mvc.ActionExecutedContext>) <0x00125>
The top of the file /usr/local/etc/mono/4.0/settings.map on one Debian Linux machine is:
I have made a very simple Asp.net web site with a WCF service - "Person.svc" - that runs fine when hosted on Asp.Net development server(visual web developer 2010), but if I host on Mono's XSP 2 and access some parse error is thrown. Can WCF services live inside a XSP Web site?
Need to execute .aspx page & .vb code from PHP server.
Therefore i have downloaded MONO for windows from link: [URL] .... And installed as per the guidelines provided on website: [URL] .... Now, how should i use it on PHP Server .....?
I have a table on my page. I need to scroll down a little to get to that table. In that table i have som data that i edit and save to database. When the save is done i need to refresh the page( Response.Redirect(Request.RawUrl )) so it loads the new data to that table. When the refresh is done the page is on top again so that i need to scroll down again to see the table. This makes it very unusable for the user.
How can i refresh the page without it going back to top again? I tryed wrapping an updatepanel around the table but it didnt
we have a sql server 2005...that has 70-80 databases and hundreds of tables....
It is supposed to refresh every night.... refresh is done by other vendor(3rd party).... we dont know what method(technology) they use to refresh the databases....
My question is .....
Is there a good way to know when the last refresh has happend...can we determine it from sys tables.....
the sql server is installed in window server 2003 box.... we have access to the box as well as the sql server.....
I am using Ajax's EnablePageMethods way to call server side code using javascript. The problem is that in IE8 the page automatically refreshes after the ajax call has been completed i.e. the server side function has been executed successfully. I want the same to happen with Chrome and Firefox but it doesnt refresh the page once the server side function has been executed.
I am using this way to call server side code from Javascript -- [URL]
I know why runat="server" is currently required (ASP.NET why runat="server"), but the consensus is that it should not be required if you incorporate a simple default into the design (I agree of course).
Would it be possible to modify, extend, decompile and recreate, intercept or otherwise change the behavior of how ASP.NET parses ASPX and ASCX files so that runat="server" would no longer be required? For instance, I assume that a version of Mono could be branched to accomplish this goal.
In case specific requirements are helpful, the following highlights one design:
During parsing, when configured namespace tags are encountered (such as "asp"), default the element's runat property to "server" During parsing, when configured namespace tags are encountered (such as "asp"), if the element's runat property value is available, then that value should be used in place of the default New page-level setting introduced (can be set in the page directive or web.config) that specifies the default runat value for a specific namespace tag
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?
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 ^_^
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).
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
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 ?
How can I use double buffering in asp.net C#?I want smthng like that : I dont want full page refresh when I click a button in a web page.. I think it can be solved with double buffering. When a button clicked for redirect a content page (button-in master page), current page will not go until the redirected page completely load in the background..