Hello,
I have an issue with my site and i am hoping i can get some help or someone point me in the right direction. I have googled the heck out of this thing and some of the answers i have found as far as changes to the web.config don't apply because I already
have them. Some others dont seem to do the job. I am new to IIS 7, so i am hoping for some specific guidance here.
I am sorry for the long explanation, i just wanted to cover as much info as possible to get the help i need. Thanks in advance.
The site:
- Asp.net, vb.net and SQL Server 2008
- Using VS2010 Web Developer and SSMS 2008, .net Framework 4.0
- Running on two separate boxes, one as a web server and the other as the SQL server.
- The SQL Database has a table that contains the image path per user as \\[Internal IP]\images\etc. The internal IP is the same for the SQL box, basically also using it as an Imaging server for now as I dont have a 3rd server to use.
The site was developed on a Windows XP Pro machine and was hosted on this same machine for testing purposes using IIS 6. I have AJAX controls through out the site for various drop downs and panel displays. The site runs perfectly fine on the XP system under IIS 6.
However, now that I was ready to bring the site to an actual Web Server which runs on Windows Server 2008 Standard 32bit with IIS 7, and then run the site as \\localhost, everything is fine. Run the site from the web, it runs fine until i hit a page when it is trying to pull images from the other server.
So if I change my router setting to point to my XP machine for hosting, i browse the site, i have NO issues viewing images. The SQL server is still the same and the images location is still the same. The only thing that I did was move the site from the XP box to the Windows Server 2008 box, everything on the site works, except when i try to view a page that is trying to retrieve an image. in
- The site runs on this new Win Server 2008 through http://localhost - and it works fine.
- I believe it is may be a Permissions related issue... but i have looked at firewall settings, sharing and permission settings of the images folder - and i guess i am missing something, but i dont know what. I have guest users, network services, everyone, IIS_IUSRS, Anonymous logon, and all of those with modify access, so read and write.
- When i run from the web, and get to an image viewing page, i get the following error:
Server Error in '/' Application.
\\172.16.0.36\images\20140320_163445.jpg
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.IO.FileNotFoundException: \\172.16.0.36\images\20140320_163445.jpg
Source Error:
Line 197: If ActualImage1.Length > 0 Then
Line 198: 'btnDeleteImage1.Enabled = TrueLine 199: Dim currentImage1 As System.Drawing.Image = System.Drawing.Image.FromFile(ActualImage1)Line 200: imgHeight1 = currentImage1.Height
Line 201: imgWidth1 = currentImage1.Width |
Source File: C:\inetpub\wwwroot\Website\EN\ViewDetails.aspx.vb Line: 199
Stack Trace:
[FileNotFoundException: \\172.16.0.36\images\20140320_163445.jpg] System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +472351 System.Drawing.Image.FromFile(String filename) +6 GPWebsite.ViewListingDetails.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Website\EN\ViewDetails.aspx.vb:199 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772 |
any help on how to correct this problem would be greatly appreciated.
Thanks.