iis-7.5

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

无人久伴 提交于 2020-01-01 10:51:34
问题 I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory,

Keep getting “Login failed for user IIS APPPOOL\DefaultAppPool” no matter what I do

 ̄綄美尐妖づ 提交于 2020-01-01 10:19:08
问题 I'm trying to give an ASP NET App access to a database (These are test only not production). It's the first time I try it in this network, and I haven't done it with VS2012, SQL Server 2012 Express, Windows 7 before What I have done: I upgraded my Sql Server 2012 Express since what VS2012 first installs is a version that doesn't allow access from IIS I found that I had to configure SQL Server 2012 Express to accept remote connections , then I followed a good blog I found here In SSME 2012, I

How to correctly debug web applications on local IIS 7.5 with VS 2010 Beta2?

橙三吉。 提交于 2020-01-01 09:38:09
问题 I'm sort of new to developing Asp.net webapplication projects while running them on a local IIS. Till now I used the 'Use Visual Studio Development Server' option. I'm using Visual Studio 2010 Beta 2. Edit: less complex sample code Following code sample: List<string> _list = new List<string>(); _list.Add("asd"); _list.Add("asd2"); _list.Add("asd3"); Now I want to debug / step through some line of codes with _list . While using 'Use Visual Studio Development Server' I can see the contents of

Receiving The remote server returned an error: (403) Forbidden message

牧云@^-^@ 提交于 2019-12-30 19:57:12
问题 I am receiving "The remote server returned an error: (403) Forbidden" error message on the block of code below. Specifically this line is failing: var response = (HttpWebResponse)(request.GetResponse()); The code works perfectly on my dev machine, but not in production. I am using IIS 7.5 in both environments. Both machines are fulling patched (all Windows updates installed). Using 4.0 .Net Framework. Not sure why it works on one machine and not other other. Code: var uri = new Uri(url); var

How to force certain sections of the website to be browsed under SSL?

随声附和 提交于 2019-12-30 14:45:08
问题 On our website certain sections or pages deal with sensitive user or account information. I want to force the users to browse those pages under HTTPS. Whereas other pages with public content should be available under HTTP. I was planning to install url Rewrite module on IIS and write rules to achieve this. I am not sure how to write the rules in web.config for redirection. Server: IIS 7.5 Example of pages under SSL: mywebsite.com.au/login mywebsite.com.au/login/ mywebsite.com.au/member

How to change the amount of fields that can be posted in a form with IIS 7.5?

本小妞迷上赌 提交于 2019-12-30 09:48:10
问题 We've hit a problem with some forms in the admin portion of our web app. There are a handful of forms that contain a large number of fields (it can range anywhere from one input field to the hundreds). We've found that as these forms grow, there is a point where the server will throw 500 errors when a form is posted. After running a test, I was able to find that the server can handle forms with 100 fields in them; once 101 or more fields are used, we get the errors. We run Coldfusion, and we

Upgrading WebGrease to version 1.3.0 causes error only on production server

旧街凉风 提交于 2019-12-30 06:54:44
问题 First off, answers to this question,do NOT solve my error: Upgrading WebGrease to version 1.3.0 gets me error I have the following bindingredirect on my production server: <dependentAssembly> <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" /> </dependentAssembly> I have the following DLL's on my production server that are required for the Microsoft ASP.NET Web Optimization Framework:

Redirect from HTTP to HTTPS - IIS 7.5

对着背影说爱祢 提交于 2019-12-30 06:10:15
问题 I have implemented https on my application and now i'm trying to make IIS redirect all http request to https, so that the user doesn't even notice this change. I have changed and tried some of the IIS options but with no luck. How can i do this? I'm using IIS 7.5 and ASP.NET 2.0 Regards, 回答1: You can install the RewriteModule and follow the instructions on this page. 回答2: The approach described in this blog article works well. Summary: 1) Turn on "Require SSL" setting for the site. 2) In the

Redirect from HTTP to HTTPS - IIS 7.5

試著忘記壹切 提交于 2019-12-30 06:07:40
问题 I have implemented https on my application and now i'm trying to make IIS redirect all http request to https, so that the user doesn't even notice this change. I have changed and tried some of the IIS options but with no luck. How can i do this? I'm using IIS 7.5 and ASP.NET 2.0 Regards, 回答1: You can install the RewriteModule and follow the instructions on this page. 回答2: The approach described in this blog article works well. Summary: 1) Turn on "Require SSL" setting for the site. 2) In the

Publishing ASP.NET 3.5 Site Leaves Web.config Empty Due to providerOptions Element

橙三吉。 提交于 2019-12-29 09:37:52
问题 I am trying to publish a ASP.Net 3.5 site to an IIS 7.5 server using WebDAV and each time I do the config file winds up empty. The culprit is the providerOption elemet seen in the code below. <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError"