Posts by Dorival • 531 points
5 posts
-
8
votes3
answers424
viewsQ: Server.Mappath fails within Global.asax
In the code below, when I try to call the Mappath function inside Global.asax, an error occurs at runtime with the following error message: System.Web.Httpexception (0 80004005): Request is not…
-
6
votes3
answers424
viewsA: Server.Mappath fails within Global.asax
The problem is in fact HttpContext.Server.MapPath. The problem occurs because when called on Application_Start, there is no HTTP context. This context only exists when there is an HTTP call. The…
-
4
votes2
answers961
viewsA: How to redirect from non-www to www?
One way to promote this is to take advantage of the modules of ASP.Net. You can create a module that will enter the ASP.Net execution pipeline and intercept the "www". For this just create a class…
-
14
votes1
answer485
viewsQ: How to do Signalr load test?
When testing with the library SignalR to create applications in real time in . NET, generated some doubts about scalability which could not be found on the internet. After a few tests using the…
-
9
votes4
answers28968
viewsA: What is the most appropriate way to concatenate strings?
Since every string can be considered an array of characters, concatenating strings in the classic way is very costly. For every + used, a copy of a new string is generated in memory. In the case of…