iis-7.5

Viewing my IIS hosted site on other machines on my network

雨燕双飞 提交于 2019-11-27 10:25:14
At home I have a simple network setup containing 2 machines. On one machine i have a site hosted with IIS7. Rather than the standard localhost/index.htm address I have added an entry in the HOSTS file pointing the local IP (127.0.0.1) to this domain - www.mysite.dev . I can access the site with www.mysite.dev with no problem. what I would like to do is be able to view this site from my other machine on the network. Initially I assumed this could be done with a URL like so MACHINE-NAME/www.mysite.dev , but the connection always times out. But I can ping MACHINE-NAME without problems. For

Stopping cookies being set from a domain (aka “cookieless domain”) to increase site performance

天涯浪子 提交于 2019-11-27 10:21:33
问题 I was reading in Google's documentation about improving site speed. One of their recommendations is serving static content (images, css, js, etc.) from a "cookieless domain": Static content, such as images, JS and CSS files, don't need to be accompanied by cookies, as there is no user interaction with these resources. You can decrease request latency by serving static resources from a domain that doesn't serve cookies. Google then says that the best way to do this is to buy a new domain and

IIS 7.5 application pool uses wrong %APPDATA% for custom user as identity

百般思念 提交于 2019-11-27 09:06:24
I want my MVC3 web application to access %APPDATA% (e.g. C:\Users\MyUsername\AppData\Roaming on Windows 7) because I store configuration files there. Therefore I created an application pool in IIS with the identity of the user "MyUsername", created that user's profile by logging in with the account, and turned on the option "Load User Profile" (was true by default anyway). Impersonation is turned off. Now I have the problem that %APPDATA% (in C#): appdataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) resolves to c:\windows\system32\inetsrv instead of C:\Users

The client and server cannot communicate, because they do not possess a common algorithm ASP.NET C# IIS

 ̄綄美尐妖づ 提交于 2019-11-27 09:00:37
I have an issue with a C# PayTrace Gateway. The below code was working fine until yesterday when I believe they turned off SSL3 due to the Poodle Exploit. When running the code below we got the following message. The remote server has forcefully closed the connection. After doing some research on the problem we determined that because our IIS Server 7.5 was configured to still use SSL3, C# defaulted to SSL3, which PayTrace would forcibly close the connection. We then removed SSL3 from the server. Which then lead to the following error: The client and server cannot communicate, because they do

IIS 7.5 Fixing An attempt was made to load a program with an incorrect format problem?

蹲街弑〆低调 提交于 2019-11-27 08:33:31
I have a unusual problem throwing an exception "An attempt was made to load a program with an incorrect format" error? I have two identical websites on the same IIS server and my build configuration works for one of them but not the other. My C# MVC 2 web app can deployed to two websites that reside on the same IIS 7.5 webserver (x64). One is the live site (deployed using Release configuration), the second is the beta site (deployed using a new Beta configuration created just for this project). The codebase for both projects is the same. They have different build configurations, but the

IIS Server & ASP.Net Core - page cannot be accessed because the related configuration data for the page is invalid

孤街浪徒 提交于 2019-11-27 07:58:59
I am getting the following error when I try to launch my ASP.Net Core App using IIS Server v7.5 ... I published the website (File System option in Visual Studio) to a specific directory successfully. It launches fine from approot/web.cmd file. But when I try to hook it up to IIS Server and point it to the wwwroot folder, I get the following error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module IIS Web Core Notification Unknown Handler Not yet determined Error Code

The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

十年热恋 提交于 2019-11-27 06:52:43
I am getting error ( The configuration section system.web.extensions cannot be read because it is missing a section declaration ) while installing my Web Application in Server 2008 32 bit machine with .NET Framework 4.0 . but it works well in 2008 r2 64 bit machine. This is my webconfig file info <configuration> <runtime> <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> </dependentAssembly>

Script not served by static file handler on IIS7.5

对着背影说爱祢 提交于 2019-11-27 06:21:29
I've just tried to deploy my first web application to IIS on my Windows 7 Home Premium notebook. After creating the application, I had to change to the Classic App Pool, then set that pool for framework 4.0. Now I get the following error: HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. The requested URL is http://localhost:80/pvmms/default.aspx I'm afraid extensive Googling has yielded nothing clear or definite enough for me to work with and as usual I've turned to the experts. EDIT: I suspect this is because there are

IIS application using application pool identity loses primary token?

痞子三分冷 提交于 2019-11-27 06:20:28
(This is a question about a vague problem. I try to present all relevant data, in the hope that someone has helpful information; apologies for the long description.) Our web app We have a .NET 4 web application running in IIS 7.5 accessing Active Directory and a SQL Server database. This web application is running under a virtual 'app pool identity', by setting the Identity of the application's application pool to ApplicationPoolIdentity . A concise description of virtual identities can be found in a StackOverflow answer , and the blog post to which it refers: an app pool identity is just an

Programmatically unlocking IIS configuration sections in Powershell

我们两清 提交于 2019-11-27 05:59:45
问题 I am writing a powershell script to create and configure a number of websites and virtual directories. I am using the .NET Microsoft.Web.Administration assembly. I have created a new application under the default website and added a new virtual directory to it and it all works well. What I'm trying to do now is set up the authentication options for the virtual directory. I am doing the following in powershell: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration")