iis

Issue with SMTP relay in .NET

Perhaps this is more of an IIS question than programming, but I'll throw it out there nonetheless. I am attempting to send an email via SMTP with C# using the following test code: //params: from email, to email, subject, body MailMessage m = new MailMessage( <sendemail>, <receiveemail>, "testsubject", "Testbody" ); SmtpClient c = new ...

Access webpage on lan or remote location running on VisualStudio (2008)

I am deving a webpage. For testing purposes i want to access the webpage via my VM and possibly ask a friend to mess with it remotely. The app is running in visual studios 2008. I put set my router DMZ to my IP address and i tried connecting via VM and remotely. No luck. How do i config visual studios to listen outside of the machine? ...

PHP, IIS Image not displaying on browser

The following code is not displaying the image from IIS 6/PHP 5.2.9. It works OK from XAMPP (PHP 5.3) $img = @imagecreate(200, 200); $background_color = imagecolorallocate($img, 0, 0, 0); $text_color = imagecolorallocate($img, 233, 14, 91); imagestring($img, 12, 60, 90, 'image here', $text_color); header('Last-Modified: ' . date('D, d ...

How to specify a timeout value on HttpWebRequest.BeginGetResponse without blocking the thread

Hi all … I’m trying to issue web requests asynchronously. I have my code working fine except for one thing: There doesn’t seem to be a built-in way to specify a timeout on BeginGetResponse. The MSDN example clearly show a working example but the downside to it is they all end up with a SomeObject.WaitOne() Which again clearly state...

How to configure asp.net MVC project in IIS?

When I run project in IIS, after displaying home page it will not allow to redirect on any other page. It gives Page could not found error. ...

Writing a web-scripting language from the ground up?

I'm looking for references stating how to write a web scripting language and interface it with a web-server. I'm not looking for "how to write the language" or "how to write an interpreter" references rather - I don't know how the basics of a web-script interpreter work? Is it a simply a CGI based interpreter that is passed the HTTP pa...

wix and iis - unable to update metabase error

Hi I have a wix project that installs a web site (MVC2) to an existing web site the user selects. This works fine on my machine (of course) but the client is getting the following error on there test vm's: Action 16:08:03: ConfigureIIsExec. Action 16:08:03: WriteMetabaseChanges. Installing Metabase Keys and Values WriteMetabaseChange...

Running django on IronPython

There have been some questions and answers here on stackoverflow, but no one asked if it's a good solution to run django on IIS. Any experience is welcome, both good and bad. ...

CryptographicException using WSE3 crashes webservice IIS process

We are using c# webservice hosted in IIS. Webservice uses WSE3 extensions for Kerberos authentication. Sometimes webservice crashes with unhandled exception, which is loged in event log: Ereignistyp: Fehler Ereignisquelle: ASP.NET 2.0.50727.0 Ereigniskategorie: Keine Ereigniskennung: 1334 Datum: 22.01.2010 Zeit: 08:39:49 Benutzer: Nicht...

ISAPI Rewrite wont proxy the root folder

I wasn't sure if this is a ServerFault question or StackOverflow, so I am going to ask it here first. When using ISAPI Rewrite (Helion Tech), I cannot seem to proxy the root directory http://www.somesite.com/ http://www.somesite.com/subdir/ will work if subdir is on the other server, but just plain old '/' will not work. Here is a cop...

IIS 7.5 shows aspx but no content

Hi All, I recently switched from Vista to Windows 7 (with IIS 7.5). But i can't seem to get it fully working. My problem: I run Visual Studio 2008 (sp1) (run as administrator) and i see my WebSite (webforms). I publish my website, and all seems well, except my layout is wasted.. why? i get a 404 on my CSS and javascript file. I read a...

urlrewriter.net

Hello all! I have a question concerning urlrewiter. I want to rewrite the following url like this: <rewrite url="~/sportswear/browse-by-category/(\d+)/(.+)/(\d+)" to="~/Browse.aspx?cid=9&amp;type=category&amp;mid=$1&amp;p=$2" /> This does work but my get variable p cannot be read. However when i write 'shoes' which is the categorynam...

ASP.NET IIS Web.config [Internal Server Error]

I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website But I can't run my site from this server . . . error : Error description: Error HTTP 500.19 - Internal Server Error The requested page is not available because of incorrect configuration data for this page. Error Details Module...

Castle WCF DefaultServiceHostFactory in IIS: Accessing the ServiceHost

I am attempting to move from a self hosting architecture to hosting under IIS 6, primarily to take advantage of built in dynamic compression. I am using the Castle DefaultServiceHostFactory to provide the service to IIS in the .svc file. However, I need to programmatically specify certain end points and behaviours and I do not know how...

Basic questions on setting up an access controlled intranet site - ASP .NET

Please note: I understand this is a somewhat vague question. Therefore your patience is very much appreciated. Requesting: An abstract high level idea of where to begin as I am totally clueless at this point. Background: I am setting up an intranet site (ASP .NET) where users from our local user group (who are also added in ou...

Web site logs (IIS7, hosted)

I have an ASP.NET MVC app hosted at webhost4life What's a good way to save logs? I have an access to the ftp I upload site to, should I just do effectively File.AppendAllText("log.txt", "Ooops, we have an error" + e.Message); Or is there a better way? Send e-mail? save log into a database? ...

ASP.NET MVC + IIS7 + FireFox : trailing slash in URL

Note: I have done hours of digging for the answer, and couldn't find one. I have an ASP.NET MVC (2.0) application, hosted on IIS7 (integrated mode). When GET request is made to /Toons/List - I get a redirect (302) to /Toons/List/ which is expected. THE PROBLEM But when I send a POST request, say to /Toons/Add (notice no trailing...

Password-Protecting Elmah.axd file

Hi, I've succesfully set up Elmah in my web project and I can access the crash log at http://www.myserver.com/Elmah.axd . The only question is how to secure this URL so that only my colleagues (as opposed to anonymous users and users who are logged in, but not part of my team) can access it. ASP.NET forms authentication is already se...

simultaneous connections in XP/Vista/Win7

IIS 7 on Vista does not limit the number of allowed connections as IIS on XP did but limits concurrent requests to 10 (Windows Vista Ultimate, Business, and Enterprise Editions) or 3 (Vista Home Premium). Additional requests are queued which hampers performance but they are not rejected as with XP. This is what I got from wiki, but I wo...

White Labeling Provider Advice

I've developed a website that provides a fairly basic service. Users register, fill in online forms, make a payment and then generate some pdf documents based on the data in the forms. They can log in again, downlod documents etc. Nothing amazing... The sites been developed to change its branding based on a query string parameter (peopl...