iis-7.5

SiteMapPath Stops Displaying in ASP.NET 4

我的未来我决定 提交于 2019-12-06 12:08:29
问题 We have a SiteMapPath control on the page and this is bound to an XML Web.sitemap file with the default provider. We've had this site for years and have recently upgraded to ASP.NET 4.0 on IIS 7.5 on Windows 2008 R2. For some reason, after about 6-12 hours of operating (not sure exactly when, but it is consistent), the SiteMapPath stops loading for everyone. If we restart the application pool or modify and save the web.config or the web.sitemap XML files, the SiteMapPath starts loading again.

Request is not available in this context exception when runnig mvc on iis7.5

荒凉一梦 提交于 2019-12-06 11:45:53
when i running mvc app on iis7.5 win 7 it cause an exception "Request is not available in this context" which this don't cause when running by vs2008. can anyone help me? Paddy I think the answers and notes in my question regarding use of the request object in the global.asax file may be helpful. Are you developing on a system that doesn't use IIS7 by any chance? Global ASAX - get the server name 来源: https://stackoverflow.com/questions/2056398/request-is-not-available-in-this-context-exception-when-runnig-mvc-on-iis7-5

Urls /lpt1 and /com1 cause IIS to render its own screen of death

一笑奈何 提交于 2019-12-06 10:45:17
When running a recent SkipFish scan - we found that IIS (7.5) returns the following if you call /lptX or /comX (where X is a number 1-9). Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you ...[and so on]... This is dispite the fact that we have custom [pretty] errors at the site-level and at the web server config level. Try it on your IIS box now if you have one - http://localhost/lpt1 should do it. I'm guessing this is a legacy thing from 'the good ol days' of LPT printers and mice connecting via COM ports. But it is slightly unsettling to

Could not load file or assembly '…' or one of its dependencies. An attempt was made to load a program with an incorrect format

↘锁芯ラ 提交于 2019-12-06 09:56:58
问题 NOTE: I know this has been posted before but i have tried the solutions presented in other threads and haven't had any luck yet I'm trying to deploy a NET 4.0 MVC 4 Application onto an IIS server (version 7.5). I get the following error: The server is running Windows 7 64 bits. I'm using two "special" libraries: -EPPlus -itextsharp Notes: -The application pool has the following config: Help please :( 回答1: Probably, you are trying to load x32 DLL. Try to change "Enable 32-bit Applications" to

ServiceBus throws 401 Unauthorized Error

限于喜欢 提交于 2019-12-06 09:30:06
I'm using a simple implementation of the Windows Service Bus 1.0 Brokered messaging to keep track of the user interactions with a particular web application. Every time something is saved to a "sensitive" table in the database, I have setup the repository layer send a message like so: ServiceBus.MessageQueue<T>.PushAsync(entity); which will then serialize the entity and create a message out of it. My MessageQueue class is something like this. public static class MessageQueue<T> { static string ServerFQDN; static int HttpPort = 9355; static int TcpPort = 9354; static string ServiceNamespace =

Why does 'string'[0] behave differently on ie8 + IIS7.5 than other browsers or local file?

旧城冷巷雨未停 提交于 2019-12-06 07:19:57
问题 Consider the following Html file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>test</title> <style type="text/css"> </style> </head> <body> <script type="text/javascript"> alert('' + '\'test\'[0] = \'' + 'test'[0] + '\'\n' + '\'test\'.charAt(0) = \'' + 'test'.charAt(0) + '\'\n' ); </script> </body> </html> When I open this file on my local machine it gives the following output (both in ie8 and Chrome): 'test'[0] = 't' 'test'

Hosting WCF service on IIS7.5

丶灬走出姿态 提交于 2019-12-06 07:11:38
i am new to wcf. i have created and hosted simple wcf service on iis 7.5 using tutorial from http://debugmode.net/2010/09/07/walkthrough-on-creating-wcf-4-0-service-and-hosting-in-iis-7-5/ all goes fine until i tried to consume this service. when i try to add service reference in my client it gives following error Metadata contains a reference that cannot be resolved: 'http://localhost:4567/Service1.svc?wsdl'. The WSDL document contains links that could not be resolved. There was an error downloading 'http://localhost:4567/Service1.svc?xsd=xsd0'. The underlying connection was closed: An

Win 7 IIS 7.5 weird behavior with System.ComponentModel.BrowseableAttribute

我的梦境 提交于 2019-12-06 05:58:15
I just want to see if others get this same behavior I get. I have a class called GridViewEx which extends GridView. One of the properties in that class has Browsable(true) as an annotation. This allows (well, at least prior to IIS 7.5 it did) the property to be set in the markup. But on Windows 7 IIS 7.5, it gives a parser error. Note that on a Win 2008 server with IIS 7.5, the app ran fine. So I'm wondering if it's some IIS 7.5 setting in Win7 that is messing it up. Steps to Reproduce a) Create new ASP.Net application, use 4.0 for framework version b) Create a new class called GridViewEx (the

Visual Studio 2013 Web Forms Site doesn't work with trust level “Medium”

僤鯓⒐⒋嵵緔 提交于 2019-12-06 05:03:20
I've created an asp.net Web Forms site with Visual Studio 2013. Scripts and pages are generated automatically by VS 2013. The problem is that the website doesn't work with the .Net trust level "Medium". It reqires "Full" level. With the "Medium" Level it throws an error: The application attempted to perform an operation not allowed by the security policy. To grantthis application the required permission please contact your system administrator or change the application's trust level in the configuration file. [SecurityException: Request for the permission of type 'System.Security.Permissions

MSdeploy deploys an MVC 2 application with wrong virtual directory name

醉酒当歌 提交于 2019-12-06 04:45:24
问题 I'm using MSbuild(v4.0.30319.1) and MSdeploy(v7.1.618.0) to deploy my ASP MVC 2 application on IIS(v7.5). Here are the commands I run to do it: msbuild.exe <path to my csproj>/MyMvcApp.csproj /t:Package /p:configuration=release;outDir=<my output dir> and msdeploy: msdeploy.exe -verb:sync -source:package='<MSBuildOutputDir>\_PublishedWebsites\Webui_Package\MyMVCApp.zip' -dest:auto After build and deploy the application is deployed by address http://localhost/MyMVCApp_deploy and not by address