iis

Why i can't use webclient in iis?

Hi! I have deploy the dropthings source code into my iis, and in its code, the author used WebClient in a web service to DownloadString, but it threw an exception, but if i deploy my code into visual studio asp.net develepment server ,WebClient went fine. I think I have encountered some authorize problem~~~ Please tell me how to configur...

Server Error in '/domain/website' Application.

I am getting following error while i deployed the website.. Server Error in '/domain/website' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It cou...

Is the below error from GenericErrorPage.htm

Is the below error looks same as from GenericErrorPage.htm? Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the applicat...

Web Application Problems (web.config errors) HTTP 500.19 with IIS7.5 and ASP.NET v2

This is driving the whole team crazy. There must be some simple mis-configured part of IIS or our Web Server, but every time we try to run out ASP.NET Web Application on IIS 7.5 we get the following error... Here's the error in full: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related co...

How do you get the default document in an http module?

I am working on an HttpModule which does a number of things. Long story short, I simply would like to be able to determine what is the default document and do a context.RewritePath to it. Any suggestions? :) ...

Configure IIS for ftp using Visual Studio for an asp.net application in windows 7

HI can anyone please tell me how to do this please? I can't seem to do this ...

Restful WCF (webhttpbinding) in IIS breaks after adding https binding

I have a WCF service hosted in IIS (7.0) which implements multiple service contracts and therefore defines multiple endpoints (one for each contract). It has been working fine but I have just added an https binding to the IIS web application and I am now getting an activation exception specifying that the service implements multiple cont...

Howto enable passing full file names in the PATH_INFO part of the URL

Because of issues with the Content-Disposition header (character encoding, cross-browser support) I decided to give another way to dynamically serve files a try. Namely, I redirect the request to something like: localhost/Download/Page.aspx/filename-without-extension in order for the browser to pick up the file name at the end. I als...

IIS: create subdomain for mail server (newbie)

hi all, when adding a new domain in the iis-manager (eg. www.myurl.com), whats the easiest way to auto-set up a mail subdomain for it (mail.myurl.com)? 2nd how do i connect the mail subdomain to the mailserver? thx ...

Dynamic subdomains in asp.net mvc

I am fairly new to asp.net, and have little experience with iis. I would like to have each user of my application get their own sub-domain, but all use the same controllers. The subdomain would then control what content is displayed. Example: user1subdomain.mydomain.com/Whatever user2subdomain.mydomain.com/Whatever Will both use the ...

Using IIS 7 Redirect Module or coding your own

What's the difference in using the IIS Redirect module to redirect vs. just coding your own and playing with the Response.context? To me it doesn't make a difference, they both do the same thing and it's much easier to just use the redirect module in IIS as it appears to redirect relatively anyway! Same as this code is doing in lets sa...

Having issues with IIS7 URL rewrite

I'm trying to rewrite the following URL, but I always get a 404 error. I know that the Url Rewrite is working because I have other rewrites working. Any idea what I am doing wrong? <rule name="PixelTracking"> <match url="^pixel([0-9]*).png?OrderTotal=([0-9]*)&amp;OrderID=([0-9]*)" /> <action type="Rewrite" url="^Confir...

Get an application pool's Process ID using ADSI

Hi all, I've wrote a small tool that lists all the app pools running on a box and allows you to start/ stop/ recycle them. I've used System.DirectoryServices. Now I'm trying to get it to write out the ProcessID of each AppPool for use in another tool but I'm struggling to find where it is / how to access it. Does anyone have any pointe...

vb.net Send Smtp Mail From IIS FormatException

Well i got a page that sends emails and everything runs fine in the developer web server but when i publish to a IIS Server i get a FormatException when i try to send the mail.... ex.Message = "the specified string is not in the form required for an e-mail address." the email is in this sample [email protected] Im using the "SmtpClient...

System.Drawing: GDI+ is not properly initialized (​internal GDI+ error​)

Hi! An ASP.NET Web Site raises randomly this System.Drawing-error: System.Runtime.InteropServices.ExternalException: System.Drawing.Bitmap..ctor(Stream stream) System.Drawing.ToolboxBitmapAttribute..cctor() Exception information: Exception type: TypeInitializationException Exception message: The type initializer for 'Sys...

Configuration of SSI in IIS 7

Hi, I've installed ServerSideIncludes module on my computer and it works great with one exception. <!--#include virtual="meta.inc" --> The line above is causing the problem. I know I must change virtual with file but I have a huge website and it means I must change at least 1000 line of code like this and I am looking for a way to ru...

WCF Syndication Service not found in II6

I have a WCF Syndication Service that works fine when run locally on Windows Vista or Windows 7, but when it is deployed to a Windows 2003 Server, it gets a 404 (Resource cannot be found). Non-REST WCF services work fine on this machine, so I know that .Net 3.5 is registered correctly in IIS. Any suggestions? ...

Not able to access IIS deployed asp.net application from remote systems.

Hi, I have deployed an asp.net(2.0) application in IIS. I am able to access the link for the application from my system. How ever it is not accessible from the other systems in the same LAN. Can anyone tell me what might be the problem? Thanks Rupa ...

log in asp.net mvc

In my mvc application i need to check a condition in action and throw it to the log. How can i add a info to log info. ...

Virtual directory deleted when publishing asp.net application?

Hi! A short question. I have a website running at :80. I create a virtual directory "itemimages" under the site that reference E:\itemimages. When i publish the ASP.net to the website at :80 with "Delete all existing files prior to publish" the virtual directory "itemimages" is also deleted. Any way to stop this from happening? Or be...