Pages

Monday, January 31, 2011

Flex Remote Object to CFC with IIS Windows Authentication

I am building a flex application and using RemoteObject to connect to Coldfusion CFC's with access set to remote. Everytime I run the flex application and try to connect to the remoteobject IIS throws a 401 error. I have been researching and saw that it is possible to add a authentication header to a webservice call, but I can't figure out how to get a remoteobject call to pass credentials to IIS. Is it possible for flex to use RemoteObject to access a Coldfusion CFC behind IIS using Windows Authentication with anonymous turned off?

Solution : - Please see the code and examples given here :
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
It may help you.

How to improve IIS performance for an ASP.net application ?

 we have an ASP.NET application hosted on a IIS (windows 2008) R2(64-bit) server

1) Are there any parameters in IIS which needs to be tweaked to get the optimal performance
   from IIS ?

2) Is there any tool in IIS which would tell if the performance bottle neck of the ASP.NET web
    application is because IIS ?

3) Is there any memory/parameter setting in Windows server which would allocated more
    memory for IIS ? ( IIS exe process )


Solution : - 
1) Are there any parameters in IIS which needs to be tweaked to get the optimal performance  from IIS ?
>>> To optimize IIS performance   : http://technet.microsoft.com/en-us/library/cc770381%28WS.10%29.aspx
2) Is there any tool in IIS which would tell if the performance bottle neck of the ASP.NET web application is because IIS ?
>>> Performance counters for IIS 7
http://blogs.iis.net/mailant/archive/2008/01/10/new-worker-process-performance-counters-in-iis7.aspx
For .net debugging see here
http://blogs.msdn.com/b/tess/archive/2008/02/04/net-debugging-demos-information-and-setup-instructions.aspx
3) Is there any memory/parameter setting in Windows server which would allocated more memory for IIS ? ( IIS exe process )
You can create multiple page files in your server so that IIS will allocate memory. Also see the application pools configuration to allow available memory.
http://technet.microsoft.com/en-us/library/cc725749%28WS.10%29.aspx
http://technet.microsoft.com/en-us/library/cc732519%28WS.10%29.aspx

I hope this will help.



**** AS IS **** ; Please apply at your own risk.

Friday, January 28, 2011

Retrieve site name from host name IIS7

hi,
we have an internal website (https://intranet) running on IIS7. It is basically redirected to another site.
but i am not able to find the site name in IIS manager. how can i do it?

Please advice

thanks


Solution: -  
On  command prompt type : "iisweb /query" and press enter, It will list all of the websites and the hostnames for those website.
It should be in \system32 , Also You can try "appcmd list site" eg., appcmd list site /bindings:http/*:80: 

Thursday, January 27, 2011

Index Directories

A couple of questions:

a) Can anyone tell me what in terms of a web applications are “indexable directories”?, And in IIS 1) how and 2) why would an admin set up indexable directories? Are these the index of type pages where you can see each and every page or resource in that directory? I.e. http://www.ibiblio.org/pub/ or http://museum.php.net/

b) And also, in an asp.net app hosted on IIS, sometimes I will see \\server\app\login.aspx for a specific page, and other apps I just see \\server\app no full path to the login *.aspx file? Any reason for this, is it a security countermeasure people use, how is it configured in IIS, or is there anyway in the browser to still see the full path and subsequently which page we are working with?


Solution: - Indexing What : - Just one page article http://msdn.microsoft.com/en-us/library/ms692947%28v=vs.85%29.aspx
How : - Install indexing service from Add/remove , Create new Index add directories to it which should be directory of your website content and also provide the path to save the Indexed document report.

Errors me that the Frontpage Extension is not in the server.



IIS 6.0 with Window Server 2003
Question: Fresh installation Window Server 2003 with IIS 6 and ASP.net 2.0
Frontpage Extension Installation as well. When I tried to remote access
the asp.net website, it still errors me that the Frontpage Extension is not
in the server.

Any ideas what I should do next?

Solution : - start -> run -> Appwiz.cpl ->  Add / remove Windows component -> Select Application Server  Click Details  -> Internet Information Service  click details ->  check "Front page 2002 server extension"

Click ok -> ok and it will be installed.

Post installation see if it needs any extension to allow under IIS -> web service extension.

Locate Web Server

Question : -

I’ve installed Microsoft Visual Web Development 2010 Experts, but not sure how to locate the web server. I’m intent to upload few medai file into this server. Hope Expert can guide me.


Solution : -
http://msdn.microsoft.com/en-us/library/ms178108.aspx
But I would prefer to publish files to local folder and then copy those files to web server.

flash media server or red 5

Question :  - We plan to deploy a video whicth will be watched 1m+ user and we want to protect it from stoling so which one should we use , and how we protect the file. We will close all the ports except http do you have any advice

Solution : - You can get the comparison here :
http://askmeflash.com/article/10/comparison-wowza-vs-fms-vs-red5
Adobe Flash Media Interactive Server 4 is much better in media servers in terms of security though you can get more details about other flavors here
http://www.adobe.com/products/flashmediaserver/

Thursday, January 20, 2011

Count hits to a web page

Question : -  I need to know how many people are visiting a particular web page.  Our environment is setup where we have 3 servers on the web farm.  So that's 3 IISs.  What is the recommended way to get a cumulative count from the servers of the hits on a particular web page?

Solution : -
You should install log analyzer and read IIS using it. It will give you count hits per page. Also it will show many other useful reports.
http://www.weblogexpert.com/
There are many other tools for same, I commonly use this and prefer it because its free. This will give result for one server and so for others , You will get three report for each server. And you want hits for one particular page , you can add hits for that page from three reports . 

Tuesday, January 18, 2011

Lync Edge Server Configuration

The Lync Edge Server configuration is here:
  1. Create Edge configuration in Topology builder
  2. Define Internal IP for internal interface
  3. Define External IP and port 443 for Access Edge Interface and FQDN
  4. Define External IP and port 443 for Web Conferencing Interface and FQDN
  5. Define External IP and port 443 for A/V interface and FQDN
  6. Publish the topology
  7. export the topology export-cstopology -filename C:\EdgeSrvTopology.zip
  8. Install prerequisites on Edge Server
  9. Run setup.exe and choose install or update Lync Server system
  10.  Install Local Configuration Store choosing to import the configuration from the EdgeSrvTopology.zip file (copy it to the Edge server)
  11. Choose option 2 to Setup or Remove Lync Server Components
  12. Then request, install or assign Certificates (I generated a new access edge certificate because of the following in the RTM docs
To create a certificate request for the external interface of the Edge Server to support public IM connectivity with AOL
  1. When the required template is available to the CA, use the following Windows PowerShell cmdlet from at the Edge server to request the certificate:
     
    Request-CsCertificate -New -Type AccessEdgeExternal  -Output C:\  -ClientEku $true -Template 
    The default certificate name of the template provided in Lync Server 2010 is Web Server. Only enter the
    Note:
    If your organization wants to support public IM connectivity with AOL, you must use Windows PowerShell instead of the Certificate Wizard to request the certificate to be assigned to the external edge for the Access Edge service. This is because the Lync Server 2010 Web Server template that the Certificate Wizard uses to request a certificate does not support client EKU configuration. Before using Windows PowerShell to create the certificate, the CA administrator must create and deploy a new template that supports client EKU.

13.  Assign the certificates and then Step 4 is to start the services.
14.  If any of the services fail to start ensure that you have assigned all the correct IP addresses in the topology builder, if they are not correct the service will fail to bind to the IP address as it doesn’t exist.
15.  Here are some thing I did that caused some delay:
  • I failed to change the Site Federation route assignment for my site in topology builder to the new Lync RTM edge server.  The Edge deployment wizard will automatically associate the edge server with the edge pool for your Enterprise Server.  It will not set the federation box.  This will cause all of your contacts that you are federated with to show presence unknown
  • So after that everything should be good right NO!
  • You need to verify the users that are using federation are assigned the appropriate  External Access Policy in the user property page and that policy has the external compnents allowed or enabled
  • So at that point everything should be good right NO again!  I can now see my federated OCS 2007 R2/Lync contacts presence but no AOL, MSN, YAHOO!
  • Under External User Access in the Lync Server Control Panel you need under the provider tab you need to allow communication with the public provider by editing the properties and enabling them and choosing the appropriate type of verification level.
  • So at this point everything should be good right YES!
Tested and everything is working

****AS IS**** ; Please apply at your own risk.

Win 7 - Add Roles Services

How to Add Roles in Win7?

IIS Roles Services:
IIS ISAPIFilter role
IIS Windows Authentication role
CGI role


How?


Solution : -
You may check if feature is available on your Win7 , Here : -
http://technet.microsoft.com/en-in/library/cc753473%28en-us%29.aspx

also download RSAT packl and install it, you'll find everything needed .  

ASP.NET is not authorized to access the requested resource

Hi,

one of my clients have a external website running on a Microsoft SBS 2008 server where users can login and view PDF files. However after the administrator of the website has made some changes, users are now getting this error:

"Server Error in '/' Application.
--------------------------------------------------------------------------------

Access to the path '\\server01\salg\cash\dokumenter\techpeople_softwareudvikler m4ypatlsmye.pdf' is denied.
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.UnauthorizedAccessException: Access to the path '\\server01\salg\cash\dokumenter\techpeople_softwareudvikler m4ypatlsmye.pdf' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

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:


[UnauthorizedAccessException: Access to the path '\\server01\salg\cash\dokumenter\techpeople_softwareudvikler m4ypatlsmye.pdf' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10547331
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2580
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +89
   System.IO.File.OpenRead(String path) +55
   TechPeople.members.ShowAvailableJobFile.Page_Load(Object sender, EventArgs e) in C:\Users\Ole Frederiksen\Documents\Visual Studio 2010\Projects\TechPeople\cvLogin\members\ShowAvailableJobFile.aspx.cs:29
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209 "

I've been trying to find out which account it is that requires access but with no luck. Can someone please help me?

Thanks in advance,
Ronnie


Solution : - 
Are you using aspnet user for any specific reason? IIS6 onwards you should use " NETWORK Services " user account. Please change the identity of application pool to Network Service and restart the application pool.
If it does not help then please share the information about the Operating System's bit version and IIS version.
Please see that Read only permission is only for sharing permission for user everyone. It is safe and secure.a 

Launch permissions for COM services

I have been experiencing issues when running IIreset. Looks to me like I need to add my defaultAppPool to have launch permissions for the com service.
 I go to: Command prompt->dcomcnfg->component services->computers->right click on my computer->properties.
Go to COM security
Under launch and activation permissions, but I don’t have the option to add the defaultAPPPool to the security setting, only local accounts are available. Any suggestions? 


Solution 
There you can add users only. Probably you need to add the identity of defAppPool . Go to IIS -> Application Pools -> locate defAppPool right click -> properties -> Identity -> by default it is network service . If it is some other user , just note id down.

Go to Command prompt->dcomcnfg->component services->computers->right  click on my computer->properties.
Go to COM security
And add the user here . machineName\network service or machineName\Username

Monday, January 17, 2011

How to show Power Point PPS using Internet Explorer?

Hi,

I have a power point PPS presentation at my IIS server, and I let this file to download. I would like when someone download this presentation, it opens like a PPS presentation with animations, sounds etc... and not like PPT source file, at this moment the second options happens.

I searched over web and I found some links talking about this, and telling about the need to register in IIS PPS MIME extension, it has been done but even so the problem is still happening.

This problem just happens using Internet Explorer and with Office installed, using any other browser it will open fine.

Anyone knows a solution to this problem?

Thank you.

LINK WITH PROBLEM: http://www.ngo.com.br/docs/mensagem.pps


Solution : - 
it is sure you need to set Mime :
Value : - application/vnd.ms-powerpoint   And Extension - pps

Now , to open it with IE , Open windows explorer on your machine and click on Tools -> folder options  -> file Types -> Scroll it and locate PPS , You will see its mapped to Office package. You need to change it.
Select what you want "PPS" click on change , In New Window select IE. Click OK, OK and you are done. 

When you install MS Office on the operating system , binding of file types like .doc, .ppt, .pps, xsl, etc changes to default open with MS office. Now in your env. you have Office installed , so you need to change the binding and map it to IE. Wihtout doing so it will kept opening with MS Office.  

Thursday, January 13, 2011

How can I fix this Application event log error?

How can I fix this Application event log error?

Question: The Application event log on my Windows Server 2003 for Small Business Server SBS server is overrun with this one particular error (see the attached screenshots).

What do I need to do to fix this error (or prevent it from showing in the Application event log so that only legitimate errors and messages will display)?

Here is the exact error:

b3ddcb18-8730-48ed-bbde-f42e70d84992, 2010-12-27 3:54:50 PM, ERROR,  [
(TimerCallbackID = 2e9385c7-6d00-4cd1-81b8-bb55a64ed2a2)
(RecoveryAttemptNumber = 11401)
(DateWhenFirstErrorHappened = 12/27/2010 9:33:44 AM)
(ConfigCacheManagerID = a45c0ad2-5d57-4023-adf2-807a2f5f8e3f)
(CacheName = SoftwareUpdateServices_AppConfigSettings_ConfigCacheManager)
(Process Directory = c:\windows\system32\inetsrv)
(Web Path = NULL)
 An error happened in the timer Callback method: An exception happened when we were trying to check for modifications (or read settings) out of the config file. The callback will keep re-trying until it succeeds. ]  Exception_MESSAGE: (Couldn't find key [MSCOM/SoftwareUpdateServices/2.0/ConfigFilePath] in AppSettings . See method ConfigFileUtility.GetAppSettingValueOrThrow. )  Exception_SOURCE: (Microsoft.UpdateServices.Common)  Exception_STACKTRACE: (   at Microsoft.MSCOM.SoftwareUpdateServices.UniversalUtility.ConfigFileReader.GetAppSettingValueOrThrow(String sAppSettingKey)
   at Microsoft.MSCOM.SoftwareUpdateServices.UniversalUtility.ConfigFileReader.GetConfigFileModifiedDateTime(String sAppSettingKeyToConfigFilePath)
   at Microsoft.MSCOM.SoftwareUpdateServices.LocalUtility.MSComConfiguration.Microsoft.MSCOM.SoftwareUpdateServices.UniversalUtility.ICacheableConfigSettings.IsConfigFileModified()
   at Microsoft.MSCOM.SoftwareUpdateServices.UniversalUtility.ConfigCacheManager.CallBackForExpiredTime(Object oState))

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.




Solution : - 
First try my above suggested solution, incase that does not work, then you will need to reinstall it :
Steps are Here : -
How to manually remove all of WSUS
http://blogs.technet.com/sus/archive/2008/11/05/how-to-manually-remove-all-of-wsus.aspx

In addition to the Blog above you may also need to remove the "Windows internal Database"


To uninstall Windows Internal Database
Open a command shell.

Call msiexec with the correct key for the operating system platform.

On 32-bit platforms: msiexec /x {CEB5780F-1A70-44A9-850F-DE6C4F6AA8FB} callerid=ocsetup.exe

On 64-bit platforms: msiexec /x {BDD79957-5801-4A2D-B09E-852E7FA64D01} callerid=ocsetup.exe


Then if you decide to reinstall

http://technet.microsoft.com/en-us/library/cc708091%28WS.10%29.aspx

http://blogs.microsoft.co.il/blogs/yanivf/archive/2007/09/23/install-wsus-3-0-step-by-step.aspx

Wednesday, January 12, 2011

Stunnel Errors

I have a web server and the fellow who put my Certificate on used stunnel. But stunnel keeps causing an error and shutting down...which stops the ability for a secure connection (required to make a reservation at the facility). Any ideas of what I should be looking for to figure whay it shuts down all the time?

Solution ; - Its very weird error.  Please try this :
Go to task manager , locate the service for stunnel.exe , right click on it and set the affinity to only one CPU (either cpu 0 or cpu1)



How do i manage DFS "active path" from a domain administration standpoint?


How do i manage DFS "active path" from a domain administration standpoint?

How do i manage DFS "active path" from a domain administration standpoint?  I want to make sure each user in the domain has the proper default "Active Path" within DFS.

Solution: - 
There are only two group policies associated with DFS:
1. Computer Configuration\Administrative Templates\Network\Sets how often a DFS Client discovers DC’s
 - Configures how often a DFS client attempts to discover domain controllers on the network. By default, a DFS client attempts to discover domain controllers every 15 minutes. This value is specified in minutes. If you disable this setting or do not configure it, the default value (15 minutes) is used.

The minimum value you can select is 15 minutes. If you specify a value of less than 15 minutes, the default value of 15 minutes is used.

2. User Configuration\Administrative Templates\Shared Folders\Allow DFS roots to be published
-Determines whether the user can publish DFS roots in Active Directory. If you enable this setting or do not configure it, users can use the “Publish in Active Directory” option to publish DFS roots as shared folders in Active Directory. If you disable this setting, the user cannot publish DFS roots in Active Directory, and the “Publish in Active Directory” option is disabled.

The default is to allow shared folders to be published when this setting is not configured.


****AS IS**** ; Please apply at your own risk.

not enough storge problem

Hello, i am using Windows server 2008 datacenter - this is my vps.
i am new to this os but i understand what to do in order to host my site.
the problem is that every thing i try to install from the server manager or to add roles from the iis isn't working and gives a massage that there isnt enough storage to complete the operation. I tried fixing the regedit value of IRPStackSize and it only worked for me to install the iis but then the same problem happened when trying to install other things.
also i saw that the RAM usage is very very high almost maxed up.
tnx ahead.


 Solution : - It could be a virtual problem, VPS could be shared among multiple users. What is the Memory and CPU quota for you and How much is utilizes?
Please see event viewer for errors. You said explorer.exe is taking most of the RAM, You may use process explorer to find out what is exactly eating the resources
http://technet.microsoft.com/en-us/sysinternals/bb896653
Do you have any anti-virus on the server , You may  stop that antivirus and monitor. 


****AS IS**** ; Please apply at your own risk.

Monday, January 10, 2011

Classic ASP site on Windows server 2008

Question : - I've inherited a classic ASP website hosted on an old NT server and connecting to a SQL 6 database.  I'm moving that website to be hosted on a new Windows Server 2008, and transitioning the database to SQL Server 2008.  The database I've moved successfully, but I'm having an issue with the website move.

From the new hosting server, I can view the site using it's given URL (http://intranet/home)...but from any client machine, using the exact same URL, I receive the "500 - Internal Server Error" message.  Even if I were to try to use the IP address in the URL, I get the 500 error.

Roles installed on the server:
Application Server
File Server
Web Server

Features installed on the server:
ASP/ASP.NET
FTP Publishing/Server/Management
IIS6 Management Compatibility
ISAPI Filters
Request Filtering

I know that there are some issues with running ASP on Windows Server 2008, but I thought it was possible to get it running.

Any help would be much appreciated.


Environment : - Windows 2008, IIS 7

Solution : - 
Please provide details about the 500 error message. You can make it enable
A: IIS> Sites > Website > Error Pages > Edit Feature Settings > "Detailed errors"
B: IIS> Sites > Website > ASP > Debugging Properties > Send Error to Browser = True

Why iis is not working for .net websites?

Question : - I have a static ip address, I did the configuration so the ip can locate to my server IIS, I did a small test, I have created very basic html page page to check that the IIS can view that html page, and the static ip address is routed correctly to my server, and it's succeeded to view the page,

now I have created a website in visual studio .net 2005 (also very simple), and I publish it to binaries and change the iis website directory to that published files. but I am unable to view the site!!

I got this page:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Please try the following:

    * Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    * If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
    * Click the Back button to try another link.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

Technical Information (for support personnel)

    * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
    * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

so any help please?


Environment : Windows 2003 , IIS 6.0

Solution: -  
1) Please publish the project to a local directory from visual studio and then copy this content and OVERWRITE it to the website's home path in IIS.
I believe this problem will be sorted by step 1. Incase no, then
2) As you have already installed asp.net 2 and enabled the web svc extn in IIS for it , Please check if website is using asp.net 2 . Go to iis -> website -> properties -> asp.net -> select .net 2 framework here and apply it.
3) Please see the website -> properties -> atleast Script allowed permissions are given to the website.
If still No, then please suggest  - Do you have website's home path on same server or Shared server?


**** AS IS ***** ; Please apply with your own risk.

How do I enable ASP error output to a Browser?

Question: -    I have an ASP script which has an error, but for some reason, IIS has stopped sending debug information. I've checked that "Show Friendly HTTP Error Messages" is unchecked, but all I see is:-
500 - Internal server error.  There is a problem with the resource you are looking for, and it cannot be displayed. Any ideas how I can fix this and display the normal ASP error details so that I can debug the asp page.


Solution : -      
IIS6
Check that IIS > Server > Websites > Website > Properties > Home Directory > Configuration > Debugging > "Send Detailed ASP error messages top client" is checked.

IIS7:    

A: IIS> Sites > Website > Error Pages > Edit Feature Settings > "Detailed errors"
B: IIS> Sites > Website > ASP > Debugging Properties > Send Error to Browser = True

Tuesday, January 4, 2011

How do i configure user relationships module in drupal 6?

Question: - Hi all. I want to configure user relationships module in drupal 6 in order to make a friend two way relationship like facebook does, between my site users. I setup the permissions for the module also the relationship type but i can't see a way to send a request to add as a friend an another user when i visit his/her profile. Can anyone provide a solution?

Technology : Drupal 6

Solution : - Please see : http://zugec.com/drupal-planet/how-to-install-and-setup-user-relationships

**** AS  IS **** ; Please apply at your own risk.

SQL Instance running on different port

Go to SQL Server Client Network Utility , Check Alias
There should be an alias for second Instance with protocol TCP/IP and "Dynamically determine port" should be Unchecked.
Mention Server name : DBServer\Instance 



That will make the connectivity

windows 2008 and IIS7

Question : - I want to create a virtual directory which will be accessed anonymously. The virtual directory home is located on a network shared storage, I will use the UNC to connect to this folder. Is it possible to create such directory using UNC on IIS 7? How can I pass the authentication? Is there any document or guide? 


Apply to 
Operating System : Windows 2008
Web Server : IIS 7 , IIS 7.5


My Solution : -
Create an account on the UNC server that has the same username and password as the user account that is being used to access Web pages on the IIS server. Both the connect as user and the authenticated user (the user that is connecting from the Web browser) need to have the appropriate NTFS permissions on the UNC share to access the content. Note that the files on the UNC server should be treated as content.
Let's Name it "UNCUser"
Steps to create a Virtual Directory :
To add a virtual directory

  Open IIS Manager
 ->      In the Connections pane, expand the Sites node in the tree, and then click to select the site in which you want to create a virtual directory.
->       In the Actions pane, click View Virtual Directories.
->       On the Virtual Directories page, in the Actions pane, click Add Virtual Directory.
->      In the Add Virtual Directory dialog box, type a name in the Alias text box. This alias is used to access the content from a URL.
->      In the Physical path text box, type the UNC path of the content folder, or click Browse to navigate through the file system to find the folder.
->       Optionally, click Connect as to specify credentials that have permission to access the physical path , User '"UNCUser"" which we create above. Doing this will null the requirement of Pass-thru.
->       Optionally, click Test Settings to verify the settings that you specified for the virtual directory.
 ->     Click OK.

Save all Changes

Cheers


****AS IS**** ; Please apply at your own risk.