iis7

Visual Studio publish fails

I can rebuild and build my application without any errors, but I cannot publish it to my local IIS 7 web site. I most certainly am missing a step... It is an XBAP application that i'm trying to publish to a web site. I created the web site by manually adding web site in IIS7 with default settings. I noticed that there are no sub fol...

wcf client ip as ipv6

Hello. i'm using next piece of code to get client ip on wcf service : OperationContext context = OperationContext.Current; System.ServiceModel.Channels.MessageProperties prop = context.IncomingMessageProperties; System.ServiceModel.Channels.RemoteEndpointMessageProperty endpoint = prop[System.ServiceModel.Channe...

Automating adding sites to IIS7

I'm building some scripts for automatically setting up a developer's machine so everyone has an identical setup & configuration. One thing in particular I want to automate is the configuration in IIS7. We have a bunch of web apps which need to be hosted locally and would ideally like them all set up automatically. Does anyone know of a...

Friendly URLs for localhost ASP.NET websites

I Use Visual Studio 2010 with ASP.NET 4.0 and IIS7. When I open my site, the URL looks like this http://localhost:6549/Website/help/tab/contact-us I want a friendly URL: http://mysite/help/tab/contact-us or anything that will help me to get rid of the Port 6549 from URL http://localhost/Website/help/tab/contact-us I use ASP.NET ...

Using IIS7's Rewrite Module and a database

My company converted from an old website to a new one and we have a bunch of old pages with URLs like this: www.example.com?foo.aspx www.example.com?foo.aspx?ID=B&utm_source=Foo www.example.com?foo.aspx?ID=C&utm_source=Foo Those URLs need to go to these pages respectively: www.example.com/ProductA www.example.com/ProductB?utm_sourc...

IIS Developer Express on XP using Visual Studio

As of recently there is a express edition of the IIS 7. It is bundled with this crazy new tool Web Matrix (http://www.asp.net/webmatrix). A real IIS instead of the development server in Visual Studio would have many advantages. Does anybody know, if this IIS edition can be separately downloaded ? Can it be installed on Windows XP (Pro...

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

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: [SecurityExc...

iis7 hiddensegment bin folder

I just recently moved from a 2003 server to server 2008. I have a clickonce application that is structured like so /{version_of_app}/*.application /{version_of_app}/bin/ (the binary files renamed to .deploy) Now with IIS7 i get 404's hitting the bin folder because of the hiddenSegment feature in iis7. Is there anyway i can keep that ...

Settings needed for IIS 7.5 with simple MVC2 Application through VS2008 Windows 7

If anyone can make the following combination work for Debugging purposes I would be very grateful if I could get a copy of the settings you are using for VS and IIS.(authentications, etc) I have been trying to get the IIS to work for debugging for 3 days to no avail. Tried every possible config i can think of. ...

Analyze IIS Logfiles (like Google Analytics)

Do you know a free good analyzer for IIS 7 Logfiles? I want to make charts like google analytics, but locally! I'm looking for a Windows tool WITHOUT CYGWIN and WITHOUT PERL :-) Can you help me? br, knom. ...

Website request and IP problem

I have two website with two valid IP address, first website send request to other websites with it's own IP address but second website send request with IP of first website. This issue cause that payment of my second website users rejected because of wrong IP address. Please guide me about this issue, my server is windows 2008 and webse...

How do i map http://localhost:8080 to http://mysites in iis7?

Basically i want to be able to type in http://mysites and it show me my localsite rather than typing in http://localhost:8080/? I intend to do it a few times like http://localhost:8181 to http://mysites2 I thought you could do it via hosts file? This is all localy on my machine ...

Can't serve text through HTML file in .NET 4

I am trying to verify my website to Google (Apps and Webmasters), and one such method for doing this is to upload an HTML file containing plain text (specific name and specific text). This worked fine under IIS 7 / .NET 2.0/3.0/3.5. I have now switched over to .NET 4, and it seems that ASP.NET is playing silly buggers with me. When I ...

Url rewrite in IIS 7

I need to rewrite URL in the following way: http://mydomain.com/somedir/someapp.aspx -> ProperDomain.com. I want people that going to ProperDomain.com only see ProperDomain.com. Is it possible to achieve with IIS url rewrite module? If not - are there any other possibilities? Really need this urgently. ...

MS IIS - Add users automatically with credential generation

Hey, I'm looking for a solution to automate the user creation process. I need a tool that generates passwords and sends the user credentials in a mail to the added user. Does anyone know an easy way or tool to achieve that? Thanks! ...

What am I missing that is making sql deploy not work?

Hi I am trying to use the package/publish sql in VS 2010. So I went through this tutorial http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28WEBAPPLICATIONPROJECTS.DEPLOYSQLWALKTHROUGH%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22%29&rd=true I imported the connection string from...

Where is the metabase key for my IIS7 web site?

I'm trying to set up the automated (nightly) installation of my web site setup project. I can specify some install-time values on the command line; in particular, adding a TARGETSITE value defines the web site to which my new deployment will go. How do I find the metabase key to my web site (eg. "/LM/W3SVC/213548468") in an IIS7 instal...

IIS 7 ASP.Net 4 - Code Behind Auto Compile Not Working

I fired up my first asp.net 4 app put together with visual studio 2010 and IIS doesn't seem to compile my code behinds on the fly for some reason, I have to build the site manually. How do I configure my app to compile code behinds on the fly? I looked around but I must be missing something. Never had this issue before. Thanks all, b...

Cannot create an instance of a COM component on a server side

Hi, I'm trying to use MS IME on a server to retrieve some Japanese info in a silverlight app. The app accesses to the server by using WCF, but when calling a CoCreateInstance to create a IFELanguage2, it gives me -2147467262. The same code I'm using on the server actually works pretty fine on a WPF app. Here is the code, // ...omit G...

Page not rendered when sending statuscode 500 to the client

I have a page (generic handler) on which I want to return the status code 500 to the client to indicate that something is wrong. I do it like this: Response.StatusCode = 500; Response.StatusDescription = "Internal Server Error"; And at the same time I render a friendly message telling the user that something went wrong. But instead of...