Global ASAX – get the server name
Can anybody tell me if there is a way for me to get the domain name of my site in the Application_Start event in the global.asax?
Can anybody tell me if there is a way for me to get the domain name of my site in the Application_Start event in the global.asax?
I need to remove excessive headers (primarily to pass penetration testing). I have spent time looking at solutions that involve running UrlScan, but these are cumbersome as UrlScan needs to be installed each time an Azure instance is started.
I have never used Windows Authentication for ASP.NET MVC web applications before, but Forms Authentication. Recently, I have had an ASP.NET MVC 4 web application that requires a Windows Authentication implementation for users who are granted to log in my company web server. So, I have some questions regarding Windows Authentication. I am using Visual Studio 2012.
I am getting “Mailbox unavailable. The server response was: 5.7.1 Unable to relay for [email protected]” when I try to send the mail using ASP.NET. The site is deployed on IIS7, Windows 2008 server. The website was working fine on IIS6 and Windows 2003 Server. I deployed it on IIS7, 2008 it has started giving me … Read more
I hope that you can help me with the below problem.
My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config).
I currently have 2 x ASP.NET 3.5 web applications in IIS7 (lets call them WebParent and WebChild).
On my ASP.NET MVC application, I am trying to implement a URL like below :
I have spent a day and a half trying to resolve this issue. Bascially have an ASP.net website with Forms Authentication on IIS7 using Framework 4.0.
I been strugling with this for 2 days now without comming any closer to solution. I have read 20-30 threads alteast and stil can not resolve this.