I recently moved a few intranet ASP.NET web sites from Windows Server 2003 to Windows Server 2008. I soon learned that the system.web/httpHandlers web.config section was replaced with system.webServer/handlers and that there is a separate API for IIS7.
When I try to use the IIS7 Microsoft.Web.Administration API I get the following error...
I've reviewed a couple options for jquery-based RTE that required PHP. I'm running a MVC/jQuery site on IIS - should i rule out php-based editors just so i can avoid installing PHP? How exactly is the client-side jquery interacting with PHP?
...
I have an ASMX web service running under IIS7 in classic mode. This service has the following code:
try
{
env.ExternalIP = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
catch (Exception ex)
{
LogWriter.WriteError(ex);
env.ExternalIP="000.000.000.000";
}
This results in the follo...
I have an aspx page with multiple FileUpload controls and one Upload button. In the click handler I save the files like this:
string path = "...";
for (int i = 0; i < Request.Files.Count - 1; i++)
{
HttpPostedFile file = Request.Files[i];
string fileName = Path.GetFileName(file.FileName);
string saveAsPath = Path.Combine(pat...
I have 3 IIS7 virtual directories which point to the same physical directory. Each one has a unique host headers bound to it and each one runs in its own app pool. Ultimately, 3 instances of the same ASP.NET application.
In the Application_Start event handler of global.asax I would like to identify which instance of the application is...
I have an ASP.NET MVC application, with some RESTful services that I'm trying to secure using custom basic authentication (they are authenticated against my own database). I have implemented this by writing an HTTPModule.
I have one method attached to the HttpApplication.AuthenticateRequest event, which calls this method in the case of...
I have multiple subdomains trying to use a single subdomain for authentiction using forms authentication all running on windows server 2008 r2.
All of the forms authentication pages are setup to use the same name, and on the authentication page the cookie is added with the following snippet:
FormsAuthentication.SetAuthCookie(txtUserNa...
Hello,
I work on a Joomla web site, installed on a MySQL database and running on IIS7. It's all working fine.
I now need to add functionality that lets (Joomla-)registered users change some configuration data. Though I haven't done this yet, it looks straightforward enough to do with Joomla. The data is private so all external access ...
Hello,
It's there an existing application to visualize IIS 7.0 failed request log ?
I know you can use IE to analyse the xml log file, and we get a visual generate by the xsl file, but my xml log file have 97 MO and the IE performance is not got.
I cannot view the performance log, because i beleive there a javascript error generated.
...
Currently we are developing an ASMX, ASP 2.0, IIS 7 web service that does some calculations (and return a dynamically generated document) and will take approx. 60 seconds to run.
Since whe have a big machine with multiple cores and lots of RAM, I expected that IIS tries its best to route the requests that arrive in its requests queue to...
This is my first ASP.NET MVC application, and my first on an IIS 7.x installation whereby I have to do anything over and above the standard.
I need to enforce Windows authentication on the /Index and /feeds/xxx.svc pages/services. In ASP.NET Web Forms, I would apply the Windows permissions on the files and remove Anonymous authenticatio...
Recent changes are forcing me to add a bunch of 301 redirects. Seems that IIS7 is my best bet as compared to redirects within the files.
I have found how to add them 1 by 1 but this requires the page/folder to exist (which most don't anymore(and creating them seems to defeat the point of the redirect)) and does not work on dynamic urls...
I'm trying to deploy a segment of our site to a new server, and I'm getting the following error when I try to pull up any ASP.Net page...
"401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied."
What permissions should I be chec...
I have several ASP.NET sites in IIS7 and would like to be able to group them into folders (or other mechanism, if available). Ideally, I would use a customer name or account number and put the sites under there.
Is there a way to customize the organization of sites in IIS7, or is there just the one 'flat' view?
I'm open to tricks an...
Senario:
I'm running IIS7 on Win Server 2008 Web Edition
I have a MVC application at the route of the website (main app)
The website HOST is domain.com
I've created a virtual application /testapp with has an ASP.Net application (sub app)
Problem:
when I navigate to http://domain.com the main app works as expected but when I navigat...
I'm trying out WinHost and I'm running into some issues with sub-domains. On WinHost, you can have multiple sub-domains per hosting account, but each sub-domain points to the root website. E.g. you can have www.example.com, sub1.example.com, and sub2.example.com but all of them display the content at http://www.example.com/.
Other Hosts...
Greetings
i have a little problem with my ASP MVC application.
On my local development server everything works just fine but when i try to publish the application to an IIS 7.0 server it just displays plain pages without any styles / markups / images.
I put all those things in the /Content/ subfolder but when i try to access that folde...
I took Jeff's Re-write rules from this post and the HTTP to HTTPS conversion works great. However, going back to HTTP is giving me problems because of the ReturnUrl= in the URL (I'm using webforms).
Here's an example of the url: https://localhost/Login.aspx?ReturnUrl=%2f
Here's the rewrite rule I'm using:
<rule name="HTTPS to HTTP re...
Just moved to vs2010 and found that deployment is quite different.
The old way I did things (vs2008) was as follows:
1) I right-click on my web app and "Add web deployment project"
2) Start a web setup project, dump that web deployment project output in it, and add any custom installer actions (connection strings or other user input) a...
I have set Mercurial 1.51 up on a Hyper-V server running Windows 2008R2 and am trying to use IIS7 to serve the repositories. I followed these instructions which I had previously used when evaluating mercurial with success. All was going well I could see the repositories from with a browser but when I tried to clone the repository from ...