IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 31st, 2011, 08:33 AM
SeanR SeanR is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Location: South Africa
Posts: 4 SeanR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 42 sec
Reputation Power: 0
IIS7; Virtual Directory; Network Share; Expression Encoder

Hi all,

I'd really appreciate some understanding into this problem I'm having; specifically how IIS7 handles this situation.

I have a Silverlight web application that makes use of the Microsoft Expression Encoder libraries to play videos amongst other things.

I also have a web server - WEB01 - and a file server - FILE1. On the web server I have a virtual directory - MySLApp - pointing to a network share on FILE1.

When I deploy the SL application to the network share above and then navigate to the website - http://WEB01/MySLApp/default.aspx - I get presented with the site and I can start going about. However, video clips do not want to play like they should (Expression Encoder functionality).
If I deploy the SL application exactly the same way, but to a local folder on WEB1 (c:\inetpub\wwwroot\MySLApp) instead of to the network share, change where the virtual directory is pointing accordingly, then my SL application does play the video clips.

In other words, when deploying my SL app to a network share, the SL app can't seem to "access" the Expression Encoder libraries on WEB1; when deploying it to a local path on WEB1, everthing works perfectly.

The only thing I can think is that IIS7 must "handle" a web site differently when it gets requested and the source files are on a network share instead of on a local path.

Can anyone perhaps explain to me why this is?

Much appreciated!
Sean

Reply With Quote
  #2  
Old May 31st, 2011, 09:23 AM
SeanR SeanR is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Location: South Africa
Posts: 4 SeanR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 42 sec
Reputation Power: 0
Another similar scenario:

Reply With Quote
  #3  
Old May 31st, 2011, 09:50 AM
SeanR SeanR is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Location: South Africa
Posts: 4 SeanR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 42 sec
Reputation Power: 0
As part of my source files, I have a directory called Binaries which contains one COM DLL - gsdll32.dll - which I use in my code by using the DllImport command. As part of the DllImport command, I specify the path to this COM DLL. Code looks like this:
[DllImport("../Binaries/gsdll32.dll", EntryPoint = "gsapi_new_instance")]

Now again, like before, if I deploy the code like this to a network share, the above line falls over saying that the file could not be found. If I deploy the exact same code to a local path on WEB1, everything works perfectly.

I'm pretty sure it's not a permission thing, because the website itself works as expected and if I replace the path above with the full UNC path, it works when on the network share.
In other words, if I change the above line of code to this, it does work on the network share:
[DllImport(@"\\FILE1\SharedFiles\MySLApp\Binaries\gsdll32.dll", EntryPoint = "gsapi_new_instance")]

I just don't understand how IIS "handles" files from shared locations, in my case, the gsdll32.dll file.
Almost as if it can't do the one level up (../) when pointing to a network share?

Reply With Quote
  #4  
Old June 2nd, 2011, 08:33 AM
SeanR SeanR is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2011
Location: South Africa
Posts: 4 SeanR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 42 sec
Reputation Power: 0
I've managed to get the Expression Encoder functionality working while using a UNC path. I've added the user that my application pool is configured to run as, as part of the Administrators group on WEB1.

However, this is not an ideal solution, so I'm back to square 1, but at least I have a slightly better understanding as to how IIS handles UNC paths.

If anyone has any insight, please share

Reply With Quote
  #5  
Old June 2nd, 2011, 08:37 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 22 m 8 sec
Reputation Power: 4445
I'm not very familiar with IIS7, but one guess is some kind of permission issue. The user account IIS is operating under may have limited permissions on the shared-from computer.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #6  
Old July 11th, 2011, 03:04 PM
makareem85 makareem85 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2011
Posts: 1 makareem85 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 23 sec
Reputation Power: 0
IIS 7 virtual directory blocking third party dll

if you got any solution to your problem so please share with me.

I too suffering with the same problem.

I am able to run my website smoothly from physical location, but it is not working properly from virtual directory.

I have used 3rd party dll in my website.

suggestions are appreciable.

thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS7; Virtual Directory; Network Share; Expression Encoder

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap