iis-7

Change IIS domain url

寵の児 提交于 2020-01-05 10:32:32
问题 I have a deployed web application on my local IIS (7.0) and is working perfectly. Since it's on my local, it is accessible via http://<>/webapp/index.aspx. Now, what I am trying to achieve is to access it on a custom url i.e. http://www.someuniqueweburl.com, and will make sure that it doesn't exist on the internet and of course, can only be accessed when you are on the same network with the local IIS web server. Is this achievable? Thanks a bunch! 回答1: You need some kind of DNS service to

Change IIS domain url

白昼怎懂夜的黑 提交于 2020-01-05 10:29:12
问题 I have a deployed web application on my local IIS (7.0) and is working perfectly. Since it's on my local, it is accessible via http://<>/webapp/index.aspx. Now, what I am trying to achieve is to access it on a custom url i.e. http://www.someuniqueweburl.com, and will make sure that it doesn't exist on the internet and of course, can only be accessed when you are on the same network with the local IIS web server. Is this achievable? Thanks a bunch! 回答1: You need some kind of DNS service to

asp.net custom error page and file without extension

青春壹個敷衍的年華 提交于 2020-01-05 08:32:19
问题 How can i get IIS 7 to return my custom error pages for file without extension? I got it working for file with extension, but when the extension is not specified, i get the generic page. 回答1: Try adding a wildcard application extension that maps to the aspnet_isapi.dll. Without that mapping, requests will never hit the aspnet dll for processing and the default IIS 404 page will be returned. 回答2: Well if you are dealing with such a situation you should handle these no extension files and then

Any way to wrap code to detect App pool crashs IIS 7 MVC 3.0

纵然是瞬间 提交于 2020-01-05 07:37:13
问题 I have an MVC 3.0 application that when deployed crashs the app pool every time a certain page is run. This page is not doing anything different to any of the other pages, basically Grabs a database record and presents the information using a view. I have not been able to figure out why it crashes causing the app pool to shut down and shutting down the entire site. I have install ELMAH log tracking and have wrapped a base controller but as the app pool crashes no logs get written to ELMAH I

Any way to wrap code to detect App pool crashs IIS 7 MVC 3.0

只谈情不闲聊 提交于 2020-01-05 07:37:06
问题 I have an MVC 3.0 application that when deployed crashs the app pool every time a certain page is run. This page is not doing anything different to any of the other pages, basically Grabs a database record and presents the information using a view. I have not been able to figure out why it crashes causing the app pool to shut down and shutting down the entire site. I have install ELMAH log tracking and have wrapped a base controller but as the app pool crashes no logs get written to ELMAH I

How do I cache WCF REST web service in IIS7?

笑着哭i 提交于 2020-01-05 07:11:18
问题 When I turn on output caching for my service it doesn't appear to be cache-worthy in IIS. It really should be since I'm returning the same JSON content over and over. The varyByQueryString option seems like it would do the trick, but since my resources are URI based, there really isn't a query string, just a path to a resource. Has anyone successfully gotten IIS to output cache a WCF REST service? 回答1: After much digging using the FREB logs in IIS, my service is in fact cache-worthy. You can

developing site in vs2010 but changed to local IIS and prompts

你说的曾经没有我的故事 提交于 2020-01-05 05:24:07
问题 If I run a 2010 visual studio C# web project using the "Use Visual Studio Development Server" in the project settings my app opens up fine and the CSS renders and all images render. If I change the property of the project to use the Local IIS Web Server and I try to run the project. I get a prompt almost about as many for how many images / css files I have linked. If i keep clicking cancel the web page appears but all the images are missing and the css file is not rendered (formatting looks

Can not access WCF duplex from client

Deadly 提交于 2020-01-05 04:02:32
问题 I'm STUCK and have no IDEA why I can't connect to my WCF!!! Details: I have a duplex WCF, it successfully run and work in my local window. I host it in server (IIS - server 2008 R2-STANDARD), and trying to connect, but get an error seems like a security issue, I can access it from the web browser and get all the xml.... In my client I'm trying to access it as following: this.myCallbackProxy = new MyCallbackProxy(); InstanceContext cntx = new InstanceContext(myCallbackProxy); this.Proxy = new

System.Security.Permissions.FileIOPermission when using MEF to load dll's

元气小坏坏 提交于 2020-01-04 18:56:49
问题 I am trying to load some dll's into a MEF DirectoryCatalog within an ASP.NET MVC application: var catalog = new DirectoryCatalog(HttpRuntime.BinDirectory, "Toptable.Mobile.*.dll"); When I run the app through the Cassini web server (i.e. F5) everything runs fine however when hosted in IIS(7) I get the following exception: [SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken

asp.net application userprincipal.findbyidentity works with browser on server, throws exception from my machine

前提是你 提交于 2020-01-04 15:13:53
问题 I have an application that is running on an IIS 7 server, in this program I need to find all the groups that the current user is a member of. When I access the website using the browser on the server, it works perfectly, but when I try to access it from my machine it keeps throwing a COM exception, Here is the code I'm using to get the user groups. private List<string> GetUserGroups(string userName) { //The list of strings for output. List<string> output= new List<string>(); try { //creating