Menu
  • HOME
  • TAGS

WCF REST Error 401.3 in PUT and DELETE methods but not in GET and POST

wcf,rest,ssl,iis-8,http-status-code-401

We solved the problem. It's as silly as not having defined the ssl authentication method yet. If you add <authentication mode="None" />, just to test, all methods works fine. We will add an authentication method soon but I would love to know why get and post didn't care about setting...

Web Application Works Localhost but not Remote

c#,asp.net,asp.net-mvc,windows-server-2012,iis-8

I found out the problem. Tks God! The application was returning an error that was not being displayed in page. But the problema was about the Culture in IIS. Because of number conversion, the application was not working propoerly, and many information was being lost during the process. When I...

Using web.config to block content based on IP address

asp.net,iis-8

I believe this wont be possible via web.config, though I may be wrong also. However I have successfully used global.asax for doing these kind of nasty stuff. Mind it that you cant be 100% sure about the Ip address, they can be spoofed, so you donowanna use it for security...

HTTP Error 401.2 - Unauthorized (for DefaultDocument)

c#,asp.net,visual-studio-2013,iis-8,default-document

I hesitate to offer this as an answer as I don't understand exactly why it worked for me. However it is too long for a comment and it might help you. I found that adding the following to the System.Webserver section solved this problem: <modules> <remove name="FormsAuthentication"/> <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule"...

how to bind a website with static public ip address

webserver,hosting,iis-8

You are correct, you have to change the bindings of your web site, you do that in the IIS Manager GUI on the site level. Click bindings in on the right hand side and add your IP address with an empty hostname. Or via the command line: C:\Windows\System32\inetsrv\appcmd.exe set config...

I created a web app in VS, how do I open it in IIS?

visual-studio-2012,iis,web-applications,localhost,iis-8

You have to create new site on your IIS or change default web site path. If you chose to change path (simplest solution) Go to IIS manager and point your default website path to your project path In VS2013 go to Project Properties -> Web -> Servers - change IIS...

File.WriteAllText() not working in Server 2012 with IIS8

c#,amazon-ec2,windows-server-2012,iis-8

Figured it out, it was the IIS_IUSRS permission set that was causing the problems. Even though the Application was running under another user, I assumed it'd use those permissions. I was wrong.

URL Rewrite causing redirect loop

.net,iis,iis-7,web-config,iis-8

I ended up adding the following to my web.config to resolve this issue: <defaultDocument> <files> <clear /> <add value="default.aspx" /> </files> </defaultDocument> based on a reddit post. So my overall web.config for this section looks like this: <system.webServer> <rewrite> <rules> <rule name="RemoveDefaultAspxFromRoot" stopProcessing="true"> <match url="default.aspx" ignoreCase="true" /> <action type="Redirect" url="/"...

IIS Not Passing Credentials with .NET WebClient Object

asp.net,vb.net,iis,windows-authentication,iis-8

After much digging, I checked out the event viewer on the server and found a corresponding warning in the servers event viewer: The program w3wp.exe, with the assigned process ID 7328, could not authenticate locally by using the target name HTTP/codeuat.cmapps.stele.net. The target name used is not valid. A target...

CFWheels App goes to directory structure instead

iis,coldfusion,iis-8,cfwheels,coldfusion-11

Geo, Your problem is the default document settings as Anit has suggested. In the IIS8 control pannel look for a cpl called "default document". It will show a list of documents that are served by "Default" so that when you navigate to something.com/home it actually serves up something.com/home/index.cfm (as an...

How do I re-register ASP.NET with IIS 8?

asp.net,azure,windows-server-2012,iis-8

I want to re-register ASP.NET with IIS using aspnet_regiis.exe simply you can't, you'll need to turn on / off features in windows 2012 Go to Control Panel, Click Programs, and then click Turn Windows features on or off. In the Windows Features dialog box, click Internet Information Services to install...

Deploy on localhost doesn't work with json request

jquery,asp.net,asp.net-mvc,json,iis-8

Instead of hard-coding the url, try UrlHelper.Action: url: '@Url.Action("ChangeVisibility", "Questionnaire")' A couple other things.. Instead of $(".visibility").attr("checked"), use this.checked. The attribute's value doesn't change when the user checks the checkbox. Also, this should probably be a post request, not a get. If it has to be a get for some...

Two websites using the same physical location, but need to have different default documents

web,url-rewriting,iis-7,iis-8,default-document

The higher-ups have decided to modify the setup so that both sites use the same main page. Problem solved. Thanks!

How to gracefully close a two-way WebSocket in .Net

c#,asp.net-web-api,websocket,iis-8

Figured this out. Basically, I had to call the ClientWebSocket.CloseOutputAsync (instead of the CloseAsync) method to tell the framework no more output is going to be sent from the client. Then in the Receive function, I had to allow for socket state WebSocketState.CloseSent to receive the Close response from the...

Moved to Windows 2012/IIS 8.0 from Windows 2008 R2/IIS 7.5 and websites aren't working

asp.net,web-config,windows-server-2012,iis-8

We figured it out! Inside of IIS 8.0 > Server Parent Node > Features View > Management Section > Feature Delegation : Authentication - Windows was set to Read Only instead of Read/Write. Once we changed it to Read/Write, the sites started working again. So lesson learned, that's one more...

Owin Hosted NancyFX app returns Could not load type Nancy.Hosting.Aspnet.NancyHttpRequestHandler once published to IIS

owin,iis-8,nancy

Since you're using OWIN you need to use the SystemWeb host not Nancy's AspNet host. You also need to remove these two parts from your web.config: <httpHandlers> <add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> </httpHandlers> <handlers> <add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*"/> </handlers> You probably have a copy of the nancy host in...

Why does an exception about ambigious controllers with attempted errorhandling mess up the pipeline?

asp.net,asp.net-mvc,iis,asp.net-mvc-5,iis-8

The behaviour depends on where the exception is thrown regarding the request handling pipeline. In case of the ambiguous controller, the routing system founds a route that matches the url and tries to get an IHttpHandler that will handle the request. However the exception is thrown trying to get that...

What permissions/policies are needed to support loadUserProfile=true for new application pools?

iis-8,application-pool,applicationpoolidentity

The SQM file listed in the event log warning was created by a Windows or Visual Studio update. When the user profile service or application pool runs and tries to create a new profile, it tries to copy the file to the profile. The SQM file requires administrator permissions to...

Infinite redirect loop for Basic or Windows authentication?

asp.net,windows-server-2012,iis-8

I fixed it. First thing that you have to do is enable Windows auth and disable anonymous on both IIS and your Visual Studio project (select the root project node in Solution Explorer and in the Property window to disable Anonymous access and enable Windows auth). Next, add the following...

Is it possible to publish/deploy a web package, using a non-admin account, from the command line only?

msdeploy,iis-8,microsoft-web-deploy,msdeployserviceagent

I can't see a way around this using the process I've laid out. My solution here is to simply take the expanded MSDeploy.exe command line and use it directly instead of the generated *.deploy.cmd file. Of course, if anyone comes along with an actual solution to my original problem, I'll...

IIS redirect wildcard few subdomain to domain

iis,redirect,rewrite,iis-8

I did something like this ;) <rule name="*.example.pl" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="example\.pl$" /> </conditions> <action type="Redirect" url="http://example.pl/" /> </rule> <rule name="*.example2.pl" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="example2\.pl$"...

Commands missing on command-line started from IIS 8.5

c#,asp.net,iis,iis-8

I don't know if this is a new setting in Window 8, but it seems there is now a User Path variable and this is the variable that was referencing compass. However, the IIS process worker is the ApplicationPoolIdentity, so it will not receive my User's Path specification. The solution...

URL rewrite on IIS 8.0

iis,url-rewriting,iis-8,url-rewrite-module

I could solve this issue may be it will help to somebody so I am adding my solution over here. I change Mobile Redirect rule action to <action type="Redirect" url="https://m.website.com/en-mobile" appendQueryString="true" redirectType="Found" /> Putting redirectType to found solves my issue....

Constant Build issues with IIS not being able to find WebViewPage in System.Web.Mvc

asp.net-mvc-4,iis,iis-8

It turned out to be the references in the project were falling back to a different version of MVC.

Unable to set default document in IIS 8

windows,iis,server,iis-8

After working on IIS the conclusion is we can set the different default page for two virtual directories directing to same path on IIS8 with changes in ApplicationHost.config and removing the default documents from the web.config in System.webserver

Classic ASP/ASP.NET Application Variables

asp.net,asp-classic,iis-8,application-variables

Unless there is intentional exchange between Classic ASP site and NET application** even running on the same site(!!!) but separate app pools for obvious reason, for example using application variable for storing values, there is no way that Classic asp would pass variable to NET application. Even session variable is...

Cannot instantiate delphi written application.exe using IIS, MVC4, C# and COM

asp.net,delphi,iis,com,iis-8

Depending on the user IIS is running under this could be a problem where the non-interactive desktop heap size is an issue. I've ran into this problem involving windows services. When you run your test application most likely you are running under a different user. You can try adjusting the...

Unable to download the .7z extension file through application

c#,asp.net-mvc,iis-8,7zip

You need to set the MIME type on the server: application/x-7z-compressed How to set MIME Types on IIS: http://www.iis.net/configreference/system.webserver/staticcontent/mimemap...

MVC (asp.net) issue with decimal places

c#,asp.net,asp.net-mvc,iis-8

It was a little bit difficult to find the issue. It was due to the default decimal editor template is defined. I just created a new template in ~/Views/Shared/EditorTemplates/Decimal.cshtml as follows; @Html.TextBox( "", ViewData.TemplateInfo.FormattedModelValue, new { @class = "text-box single-line" } ) Reference: MVC3 Decimal truncated to 2 decimal places...

How to programmatically set App Pool Identity

c#,.net,iis,iis-8,application-pool

Try this ( from How can I change the username/password of an ApplicationPool in IIS from C#? ) myAppPool .Properties["AppPoolIdentityType"].Value = 3; myAppPool .Properties["WAMUserName"].Value = Environment.MachineName + @"\" + username; myAppPool .Properties["WAMUserPass"].Value = password; ...

Custom error in web.config not working for 404

asp.net,iis,iis-7,iis-8

Check if you have more then one web config Or Check your web config file is inside your project correctly.

IIS Remote Manager is missing icons for a specific site

iis-8

Come to find out he was ignoring the prompt that he was getting saying that there were new versions of the tools to download on his machine that are on the server.. He just hit Cancel instead of selecting them and hitting ok to install the DLL's and enabling them.

Migrating a Classic ASP app from 2003/IIS7 to 2012/IIS8

asp-classic,windows-server-2012,iis-8

Have you moved from a 32 bit to a 64 bit platform. Both the OLEDB and the ODBC drivers for JET (Access) databases are 32 bit only - and the solution may be to open IIS manager and enable 32 bit applications in your app pool. If you follow the...

remove www from web adress

web,iis-8

you can use url rewrite module add this code to web.config and replace domain.tld with your domain name <rule name="Remove www" stopProcessing="true"> <match url="^(.*)$" /> <conditions> <add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" /> </conditions> <action type="Redirect" url="http://domain.tld{PATH_INFO}" /> </rule>...

iis 8 website not opening

iis,iis-8

My problem is solved. I have opened a 8080 port on Azure management portal. And on VM I have create new rule which points to this port.

In response header Content-encoding: gzip is present, but in request header Accept-encoding: gzip, deflate is missing

c#,asp.net,iis-8

From RFC 7231: A request without an Accept-Encoding header field implies that the user agent has no preferences regarding content-codings. Although this allows the server to use any content-coding in a response, it does not imply that the user agent will be able to correctly process all encodings. In short:...

MVC 4 POST fails to bind model with IIS 8 in Windows Server 2012

.net,asp.net-mvc-4,windows-server-2012,iis-8

Ok, turns out that the problem was the machine key that we used to encrypt/decrypt connection strings in the web.config file for the site. In addition to copying the SSL Certs, we needed the the machine key used for RSA encryption. (Not a very helpful error message at all.)...

Security Token Service upgrade from .Net 3.0/IIS7 to .Net 4.0/IIS 8

.net,asp.net-mvc,iis-7,iis-8,sts-securitytokenservice

So I have managed to get the original installers working. My installer had a dependency for 'my' old .Net 3, which was why it wasn't working before. This is under the "launch condition editor" on the right-click menu of the installer, nb you also need the prerequisite on the properties...

How to remotely stop/start an application pool in IIS 8

powershell,iis,tfs,iis-8

You can do the following to start your application pool : Invoke-Command -ComputerName "REMOTE_SERVER" -ScriptBlock { Start-WebAppPool -Name "MY_FANCY_APPPOOL" } You can do the following to stop your application pool : Invoke-Command -ComputerName "REMOTE_SERVER" -ScriptBlock { Stop-WebAppPool -Name "MY_FANCY_APPPOOL" } ...

Multiple image upload mvc4

c#,asp.net-mvc,asp.net-mvc-4,file-upload,iis-8

Check the path variable on the server, i think it is same for all the files. If you have the same path variable, then all files will override one another and finally you end up with last file. Also I would suggest you to try the following logic - var...

Sync ASP.NET website with web server?

asp.net,ftp,visual-studio-2013,iis-8

In Visual Studio you can create a publish profile and configure your FTP server on it. Then, after the publish profile is created, you can use the "One-Click Publish" feature to send the files to your server. It even has some preview options, that allow you to see the changes...

Does IIS cache static content by default or not?

asp.net,caching,iis,iis-8

It is true that IIS caches all the static content by default. The definition of the type of files to be considered as static is defined in the applicationHost.config under the staticContent section. If you want to override the policy or add additional type for caching, then you would need...

How can I use MVC5 attribute-based routes with a dot/period in them?

asp.net-mvc,iis,iis-8,attributerouting,asp.net-mvc-5.2

The difference between errors you see is because when you try to access /hello.txt IIS tries to reach the static resource file located on the server, on the other hand /hello404 is just an unknown route so 404 is thrown. To ensure that I am right try to add slash...

Unable to host large files on IIS webserver

iis,webserver,iis-8

The problem could be that your MIME types need to be modified. From http://serverfault.com/a/78526/12894: What is probably happening is that your server doesn't know that .war is a type of file that needs to be downloaded rather than executed. It then is run through your allowed Web Service Extensions for...

Publishing MVC 6 site with Visual Studio 2015 CTP 6 to IIS

iis-8,asp.net-5,visual-studio-2015,asp.net-mvc-6

It looks like there were some temp files created during the publish process that were not being deleted between versions. They were located at %temp%\AspNetPublish\[ProjectName], and deleting that folder removed the errors I was seeing as it cleared out all the old DLL files that shouldn’t have been published and...

Error 500 on IIS 8/8.5 with ColdFusion 10/11

coldfusion,coldfusion-10,iis-8,coldfusion-11,iis-8.5

Okay, I was finally able to fix this. The problem I run multiple web applications each in a own virtual directory under the same IIS website. It turned out that adding existingResponse="PassThrough" to the web.config only works partially in virtual directories. Without that setting I never get any ColdFusion error...

Request entity too large wcf iis8

wcf,iis-8

Thanks for the reply, i found the problem. When i have created the service i changed the ServiceContract attribute to [ServiceContract(Namespace="PTouchService")] public interface IService1 And in the web config file i could not matched this name space. And as a result all changes that i tried did not work. This...