Pages

Thursday, April 21, 2011

Title: exePath must be specified when not running inside a stand alone exe - known causes?

knowlton : - "exePath must be specified when not running inside a stand alone exe" .
What are some known causes / solutions for this error?

IIS / ASP.NET / C#


Rovastar : - Incorrectly using ConfigurationManager.OpenExeConfiguration instead of the correct ConfigurationManager.OpenWebConfiguration when using web applications is a common cause.

pcsmitpra : - There is first possible cause that you are referring to configuration group like here:
we can use ConfigurationManager.OpenWebConfiguration() method instead of ConfigurationManager.OpenExeConfiguration().

There is one more close and relevant case :
API configuration for WCF :
Configuration appConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
ServiceModelSectionGroup serviceModel = ServiceModelSectionGroup.GetSectionGroup(appConfig);
This code will work while the application is an exe but if you will write the same code in an web application it will fail.

Here the issue is , IIS could not load the exe from configuration manager, So we require configuration section instead of Configuration group to use directly ConfigurationManager and some modified syntax. The previous example can now be rewritten like this:
ClientSection client = ConfigurationManager.GetSection("system.serviceModel/client") as ClientSection;

I hope it will give you a good idea to deal with it.
Cheers.
 

Wednesday, April 13, 2011

IIS log analyzer for W2000 server

starbase2 : - Hi,

I have three w2000 server with sp4 running and on every server I have several web applications published.
I need to analyze traffic and band consumption for the webs and I've been searching for some free analyzers. I've found the indihiang.codeplex.com that looks beautiful.
But it needs to install framework dot.net 3.5 and as as far I know there is no way to install this framework version on Windows 2000.

Do you know some free component that allows me to obtain and manage the IIS log info? There is some way to do this on real time? (as iis log only works from hour-to-hour).

Thanks a lot and kind regards!!


Rovastar :- Free realtime tools I do not know of any. They all cost a lot ingeneral.

DO you want a graphical tool? or do you just need to figures for bandwidth/traffic consumption?

Can you run this tool on another machine obviously Windows 2000 is an old OS. Maybe you can run these reports on another server or locally.

Anyway if it has to be free try.

http://awstats.sourceforge.net/


pcsmitpra :- indihiang - it does not Support IIS5. It only support IIS6 & 7.
Log parser - Free tool from Microsoft.  command line tool - www.logparser.com

AWStats - Free and open source tool that is popular. http://awstats.sourceforge.net/

Analog - Free  http://www.analog.cx/

Smarterstats - free for one domain (written in .NET)
http://www.smartertools.com/Products/SmarterStats/Overview.aspx?ref=51

IIS Logging pack for SSRS 2000 - Add-on to SQL Server reporting services.
http://www.microsoft.com/downloads/details.aspx?FamilyID=2805d337-14c7-40e3-820b-e7ee653c68c0

Urchin - Google product
http://www.google.com/analytics/urchin_software.html

Sawmill - many versions are there : http://www.sawmill.net/

Webtrends - COSTLY - powerful. - http://www.webtrends.com/

Title: FTP 7.5, IIS User authentication and Isolation logon problems

craignh : - I am trying to get user isolation working on Windows 2008, FTP 7.5. The logon box keeps coming up (internal and external) and none of the user accounts work. If I remove user isolation and allow anonymous access it works.

There are only 2 servers in the company. The FTP server is a secondary domain controller and its only purpose is to be used as an FTP server (and to have a backup of active directory). The FTP users will NOT be domain users (they will be customers of the company). User isolation needs to be in place so when a customer logs in, it goes right to there "username" directory ONLY. The users should not have permissions to any other customer’s directory. They should not even see the other directories.

In addition the users should be able to upload and read files but NOT be able to delete any files.

I understand how user isolation and IIS Users work. I have been over the config many times. I used Microsoft articles on how to set it up step by step. The config looks fine except none of the user names work when trying to log in. They only work when user isolation is shut off and anonymous access is enabled. I have tried it by logging in directly on the FTP server through IE and also on a computer external to the network and get the same results. It just keeps popping up with a user name and password prompt and none of them work. 


pcsmitpra ; - Same problem was discussed here : LINK
You will surely get the issue resolved . Cheers. 


craingh : - The solution did not directly fix my problem but helped provide a link that helped. 

Acting up host headers

Abonsu : - I moved a host header(customer) from old production server to a new production server.
Before then, I had a test hostheader (Testcustomer) on the new production site and everything works perfectly


I created a new website using the host header (Customer) pointing to the same coldfusion files as (TestCustomer)
and the session login part is not working properly for Customer site.
(no physical errors..just keep taking me back to the login prompt in the application)

 My concern is that:
The 2 websites Customer and TestCustomer are pointing to the same Coldfusion files on the same server.
I am not sure why host header Customer is giving different results.  

Any inputs will be appreciated 


pcsmitpra : - There is a facility in Coldfusion to define hash () and  getCurrentTemplatePath() like in this code:


What does it means , is that the application name is used to map or attach with the coldfusion memory space. Which means it does react as a a completely different coldfusion name space if the application name is different. So you can run multiple of websites with separate names on same data.
You may find the related code in some file like Application.cfc, which will have code for cfcomponent and cffunction.
Hope this will help you.

Cheers.


Abonsu : - Can you share more light on what I should do to resolve this.  I want to remove the Testcustomer if the Customer works ok. 

pcsmitpra : - You can check any of the website and if you find it fine it will valid for both as same code in use. To make it working only for one application you can modify "Application.cfc". And you can delete this code ""
But there is no harm with this code. You can safely stop your one website in IIS and go with testing with the other you need.
 

Abonsu : - In the user.cfc which controls the login which seems to be the problem .I do not see  ""

I removed  TestCustomer  website so that only Customer is pointing to the path --same issue.  I pointed TestCustomer  back to the same path and it is working great.  I tried renaming host name testcustomer to Customer but IIS will not let me....


Abonsu :- can you ellaborate on this ..I do not see this code
--- To make it working only for one application you can modify "Application.cfc". And you can delete this code ""


any inputs...users are waiting to use the site with Customer as the host header name..any inputs  what to do to resolve this issue



pcsmitpra : - what is the error you see with Customer" website?

Abonsu : - no physical errors....There is a login prompt that validates the login and session the user to access all other links.  Even though I am able to log in ok.....it keeps taking me back to login prompt again when I try to access the other links.....  It is acting that user is not logged in

 pcsmitpra :- no physical errors....There is a login prompt that validates the login and session the user to access all other links.  Even though I am able to log in ok.....it keeps taking me back to login prompt again when I try to access the other links.....  It is acting that user is not logged in



pcsmitpra :-In case you want to investigate, Please tell me your version of IIS.
For IIS 6
Go to website -> Properties -> Security -> Check and compare the security here  for both of the websites.


Abonsu : - iis7--version of iis


pcsmitpra : - Please see : http://technet.microsoft.com/en-us/library/cc733010%28WS.10%29.aspx


Abonsu : --oh, thats not a problem of Coldfusion, Its problem with Permissions. You may check and compare -------permissions for Customer with other and make same , Or for now, Stop the website Customer, and ----change the hostname for other website  to customer and it will work with Customer's hostname.


I stopped the customer website and changed the host name of the other website  to Customer website and the same issue again


Abonsu : - I changed the host name back to  TestCustomer and everything is working fine....I am not sure why different host names will act differently even with the same site.  Any inputs appreciated.  I have to let users start using...the only problem is that I cannot tell users the address is TestCustomer instead of  Customer


Abonsu :- I created a new host header CustomerInfo and that seems to work


pcsmitpra : - Great ;-)

Communicator 2007 not saving conversation history

AceIT : - I have a user that I built a new system for:
windows 7 pro 64-bit
office 2010 64-bit
microsoft communicator 2007 32-bit.

So after the system is built, the user is getting all of her conversation history from communicator saved in outlook just like it is suposed to do.  well about a week later it just stops saving converstion history.  I try and reset Communicator, make sure settings are correct ect.  I try all the fixes I can find online nothing is working.  Here is the strange part.
Our network egineer is working with Microsoft on a seperate issue, and the microsoft tech deletes our DNS zone during a move.  After its all fixed the user reports that all of a sudden her conversation history from the past few weeks that were missing fill up her inbox.. so I figured the system re-boot fixed it.
After everything came back up that one time, she has not gotten any new history since then... so still broke.

Other problem I have,  User on XP, Office 2007, communicator 2007:
Office Communicator is not picking there status from Outlook.    It is showing her available regardless of whether she has a meeting booked or not.    Did a GP update but that didnt fix it... Not sure if the two are related..

As always thanks for your help


pcsmitpra :- To me it seems to be a problem with DNS, the DNS doesn't seems to be well published. Could you try this : From the user system try to run this command "IPconfig /flushdns" . And then try to see if he gets the conversations history. You can also try to remove it from the domain and then adding it back to the domain. 

AceIT :- It was tied to DNS/ had to configure the OC server also...

Excel 2007 Extension Warning On Opening Excel Workbook from a Web Site

raiccs :- i get a warning like this when the excel downloaded from a asp.net developed website

"The file you are trying to open, '[filename]', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"  (Yes | No | Help)

any help with this??


pcsmitpra :-- As per MS : The alert prompt is "by design", but the interaction of the cancel action and IE's attempt to open the file again is a known problem under investigation for a future fix.

There is no fix for this alert yet.

But you can configure the Client machine to disable such alerts
Key: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security
Value: (DWORD)"ExtensionHardening" = [0 = Disable check; 1 = Enable check and prompt; 2 = Enable check, no prompt deny open]
Default setting if value not present is 1 (enable and prompt)

For more details , Please see http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/03/11/excel-2007-extension-warning.aspx

How to set-up forward proxy for IIS 7.5?


T-cko : - How to set-up forward proxy for IIS 7.5?

Please it is quite urgent, I need to know this asap


pcsmitpra : -
    In IIS 7.5 , Forward proxy work is done by enabling Application Request Routing .
Installation   and also perform post installation steps given there.
You can see general recommendation given here

Forward Proxy work set , YOu can set it by defining ARR Server Farm , How To
You can achieve more using ARR , More options are here

Also you can see STEP BY STEP Guide for How to create Server Farm Here

Cheers

IIS issue while hosting multiple sites

HI,

we have IIS 6.0 on windows 2003 std. 64bit.  I have intalled the first application(GFI Mail archiver 2011) which took default web site. It works fine. No issues. Later I have installed second application(SolarWinds ntk monitoring tool) which created a new site. I configured Solarwinds on port 81 whereas GFI on 80. Both the IP addresses are unassigned. Now when I try to browse GFI I get the error which is added to this question. Please advice.


mohammad827 ; - Try running using Firefox or IE 9 which have script debugger. They can help you find the line in JS which is failing. Otherwise there should not be anything to do with multiple sites.

Rovastar : - Also to test the theory about nothing to do with multiple sites what is you stop a site does it work again?

pcsmtpra : - To host a website three parameters are required : Hostname (domain name), IP address , Port. If any of these three is different then website will keep working. As you are running second website on diff port 81 it is not a problem with configuration.

It seems by installation of SolarWinds ntk monitoring tool , some thing got disturbed, may be version of java script. You may check what component get updated/downgraded with installation of SolarWinds ntk monitoring tool. Also you may try to browse the "GFI Mail archiver 2011" website in a updated IE. It may help.

Wednesday, April 6, 2011

mass mail server

email spam : Hi,

Looking for a "good" mass mail server available online to send mass emails in a production environment.  
We currently have one implemented but fear the emails are being caught by spam filtering services.  need some recommendations that other companies use when sending mass emails.


Solution: - One good Mass mailer software : http://web.twelvehorses.com/technology/messagemaker/
one more option is : http://www.emailbrain.com/eb/index.shtml

IIS contact us tab

Question: - By Yogesh_Exchange_Expert 
Customer had reported that contact us tab is not working on website As the website is hosted on our shared server we have checked all the necessary setting for the website it looks fine.

The website application is running on .NET 2.0 versions with a DefaultApplicationpool 1.4.
Last time after recycling of application pool it started working.

Now again customer had reported the same issue, request you kindly suggest on same and let me know for any further course of action from my side. 


Solution: -  
What is the version of ASP.NET running for the website? Are you running "Contact Us" tab as virtual directory under website? What error you see when it does not work?

OVER WINDOWS 2008 > If you are running a webstie with asp.net 2.0 code then please make sure your application pool is running with ASP.NET 2.0 only.
Please provide more details as above so that we can suggest better.

Friday, April 1, 2011

Help with IIS creation of user

Hi,

I did not originally set up the ftp using IIS but I need to add another user in order for them to log in.
I checked under active directory and have found a user that currently logs in and have duplicated them. When I try and log in using the ftp account I receive the following message:
Response:      530 User Domain/user cannot log in, home directory inaccessible.
I have checked the permissions on the folder that the ftp accesses and added the new user in their.
I am not sure what else I need to do.

Regards,

Ross


Solution :-  Let you have created a new user 'FtpUser1'
Go to IIS -> Locate Default FTP Site , Add  'FtpUser1' user to it and provide "list only permissions" . Expand FTP site , locate your virtual directory open its directory and add  'FtpUser1' user there with modify and write permissions.
Try to login with user id and test its working.