Pages

Tuesday, March 29, 2011

Worker-process in Web-Garden IIS 6.0

Our IIS slows down very often and message only way to bring it back is to restart it...
we see inthe http-error log is Connection_Dropped DefaultAppPool blah blah...

We have 1 worker process in web-garden setting in IIS 6.0
will increasing number of worker process improve this behaviour?

thanks

at999

Solution :-
First of all , Web Garden is not a solution for this problem. You are trying to hide the actual problem.
You find your IIS get slows down, So you need to identify what is the cause.
Like
1. How frequently it happens? - You can restart your IIS every mid night or every weekend.
2. If Its intraday - What is the process which takes high resources like Memory & or CPU?
3. You can configure the performance monitor and record the number of threads for the process and find how many threads are in use at that moment.
4. Try to identify the root cause, use IISState, Perfmon and process explorer tools , they will help you.
5. if you are hosting multiple applications , separate them in dedicated app pool so you can make sure which website is casuing slowness.
Your question is a broad end question mainly says by a non technical customer .. You are require to do some perf maintenance there.

Hope you will get it.
Cheers

Wednesday, March 23, 2011

Mails dissappeared in the inbox after transition from exchgange 2003 to 2010

Question: -
Hi

We did a transisition from exchange 2003 to 2010 and  migrated all mail boixes  to 2010.

I have a problem with one of the user and when i log into owa i cant see any emails the inbox.
If i go to the mailbox and properties of the user and there it says
Total items 500
Size(KB)is  4001.

I tried to send a test mail to this account  and i  wheni logged in as the user in OWA i can see the test email. But i dont know why its not showing the old emails when i login to owa.

Thanks

Solution: - 
PietMuis -- In OWA 2010 you can apply filters, there is a filter called unread - maybe that is applied? 
pcsmitpra - You need to make sure that the account that runs the restore job(which can be set manually) has full permissions to the Exchange server, Information Store, and User's Mailbox.

Try this : - go to the user Inbox  folder -> properties -. Security -> Advance -> Owner -> Select owner -> Select "replace" ->Apply -> ok

This will over write the permissions on old files, and Exchange will have permission on all 


PietMuis -- have you tried opening the mailbox as an administrator?
What about moving it back to 2003? - then export to pst and create a new mailbox on 2010.

sorry i do not know the solution just some ideas...
 
Logon to an PC with your exchange admin account and setup outlook for the user.

To do the import/export look here
http://www.msexchange.org/articles_tutorials/exchange-server-2010/management-administration/exporting-importing-mailboxes-exchange-server-2010.html
 

2008 SMTP server

I am building a SMTP server on 2008. I turned it on in IIS and when I run a script it sends my test email but when I try to get my servers to use it to send message no messages go through. Is there something I could be missing? The script below is the one I use and it works fine.  I get a test email okay.

Const MAIL_SERVER = "smtp server"

Set objMail = CreateObject("CDO.Message")

objMail.Subject = "Message: " & Now
objMail.From = "email address"
objMail.To = "email address"
objMail.TextBody = "Test"

objMail.Configuration.Fields.Item _
  ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMail.Configuration.Fields.Item _
  ("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
  = MAIL_SERVER
objMail.Configuration.Fields.Item _
  ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
  = 25

objMail.Configuration.Fields.Update
objMail.Send


Solution :-
On Windows 2008, You can run SMTP with default setup, You only need to change Access tab ->Relay Restrictions, select the radio button "Only the list below" and there you can add the IPAddress or IP range of machines that you want to send emails from this server.
And under Delivery -> Advance  -> Mention  FQDN for the domain name or server name in question. If this server is part of Example.com Active directory domain, then you can create an MX record in DNS. So you may check these few settings.
Cheers!

Monday, March 21, 2011

SMTP server setup with authentication

I need to setup an SMTP server that will accept requests to send from any e-mail address to any e-mail address. I want to use an authentication process to allow clients to connect to it with a username and password. Can I do this by setting up IIS? If no what is my best method of setting an SMTP server up with this?

Thank you,
Rob


Solution :-
Please check your mail logs and you will see the error there, You can find its location under mail sever properties logs. Also, Please provide details like weather you are using smarthost?

Event 4001 Typically, this problem occurs if the destination SMTP server performs a reverse lookup and if one of the following conditions is true:

    * The IP address does not match the domain name that is used in the return address of the e-mail message.
    * A pointer (PTR) record does not exist or is not valid for the source SMTP server's IP address.

For example, consider the following scenario. The domain name that is used in the return address of the message is source.com. You send the message to a different domain. The destination SMTP server then performs a reverse lookup on the incoming message. If the PTR record for the source.com domain does not exist or is incorrect, the destination SMTP server does not deliver the message.

Note If your Network adapter that is connected to the Internet is using a dynamic IP address, you may have to configure Exchange Server to route mail from the source.com domain through an SMTP connector to a smart host.

Note You can configure the Exchange server to reject incoming connections by specifying a domain name on the SMTP virtual server. When this is done, reverse lookups are performed on all connection attempts. This setting is available under Connection Control on the Access tab when you right-click the SMTP virtual server and then click Properties.

Webserver, how to...?

Hey Guys

Just a quick question,

I have a server built with sbs2003, my domain is working fine, email blah blah.
I have created a website in dreamweaver and have saved the site in a folder called "site" and have copied this to my server.
question is this...how do i make this my active site?  and am i going about this the right way?  I appreciate that hosting a website on sbs2003 is a crappy idea and i would never recommend doing this to clients, but its my own personal website, so only friends will be looking, 


Solution: - 
hosting a website on sbs2003 is a crappy idea >>> :-( it made me SAD

how do i make this my active site? > You browse website by using hostname also known as domain name, YOu need to configure that. So you can browse it like you do any other webstie .
Lets , you like to keep the hostname www.Domain.com ,
Go to Start ->  Run  -> Inetmgr -> Website -> On right side -> locate your website and right click  -. properties -> Advance -> Add -> hostname mention it here , Keep TCP port : 80 and  Press Ok

Apply and Ok

If you like to browse it from local server then make an entry in
RUN > Drivers\etc \host file
127.0.0.1   
www.Domain.com

Same you can do at your Local desktop
If you have DNS server then make a record for it there,

I hope this will help you.

Wednesday, March 16, 2011

Securing IIS over webdav IIS 6.0 and 7.5

I am trying to create webdav for either a IIS 6 or 7.5 and wanted to know if anyone have any step by step directions on setting this up over port 443 or any other secure method, thanks.

Solution : - How to create a secure WebDAV publishing directory :
http://support.microsoft.com/kb/323470

Wednesday, March 9, 2011

Object reference not set to an instance of an object.

Question : - earlier website was using ASP.NET 2.0 till then code was working fine since we changed it to .NET 4.0, it is giving error
Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ImageViewerHandler.ImageViewerHandler.ProcessRequest(HttpContext context) +226
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +596
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +265


We are using IIS 7 . Please help.

Solution: - I checked about image viewer, they support only asp.net 2.0 , I doubt if you can get it working on asp.net 4.
http://www.codeproject.com/KB/web-image/ThumbViewerControl.aspx
 

Applicaiton Hosting

I am hosting all the company online application under MyDomain.com however the holding company have many small companies and now they what each company to have their online applicaiton using their own domain. For Example: instead for shows.MyDomain.com they want shows.ThierDomain.com
I guess my quesiton how do I host the application with our domain names that I do not have control over, so the DNS server is not under my control?
All my servers are Windows 2008 R2, IIS 7.0
Any help will be very much appriciated.
Thank you
Roy


My Solution: - You already have webstie for your company with name "MyDomain.com". Now first you can buy ( incase you need public facing )the domain name for your applications like ThierDomain.com .
Once you buy the domains , the domain registrar (like Go daddy) will provide you a control panel where you can mention the DNS for that domain name ,  You may use name servers provided by registrar. So as you will mention the 'A' record the domain name will point to your servers. This process may take some hours or 1 day.

On your server side you need to make separate websites like  ThierDomain.com  in IIS so that DNS name will find it there. For safety purpose you can install firewall / proxy server between Internet and your webserver , and open the connection only for particular port like 80 , 443 .

I hope you will get it. Cheers.