与多个网站共享图像 [英] Sharing images with multiple web sites

查看:63
本文介绍了与多个网站共享图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我们无法在我们的开发人员工作站上使用IIS,因为安全

策略,我们希望使用VS.NET 2005中的内部Web服务器。

我目前遇到的问题是我们有许多共享常见图像的web

应用程序,我不知道放在哪里。我是
无法在Cassini中创建虚拟目录,所以'不是一个可行的

解决方案。我也不想在每个Web应用程序下的\images

目录下复制所有共享图像,因为这将是一个管理和

维护的噩梦。我们可以将这些图像存储在一个单独的服务器上,并通过HTTP引用它们,但是这不是一个很好的解决方案,因为我们需要从部署

的角度来看在开发,
阶段和我们的生产环境之间更改代码。如果我们在标签

中使用<%= location%来查找运行时的位置,那么图片就不会出现在

设计器中。我在互联网上搜索是徒劳无功的,所以希望

你会对这个问题有一些指导。我必须忽略显而易见的事实。

Since we are unable to use IIS on our developer workstations due to security
policy, we would like to use the internal web server baked into VS.NET 2005.
The problem that I am currently running into is that we have many web
applications that share common images and I don''t know where to put them. I''m
not able to create a virtual directory in "Cassini", so that''s not a viable
solution. I also don''t want to copy all the shared images under an \images
directory under each web application as this will be an administrative and
maintenance nightmare. We could store these images on a separate server and
reference them via HTTP, but that won''t be a nice solution from a deployment
standpoint because we will need to change the code between development,
staging and our production environments. If we use <%=location%in the tags
to find the location at runtime, then the images won''t show up in the
designer. I have searched the internet in vain for a solution, so hopefully
you will have some guidance on this issue. I must be overlooking the obvious.

推荐答案

使用绝对URL,例如
http://yourdomain.com/yourimageweb/images/image.jpg


-

HTH,


Kevin Spencer

Microsoft MVP

专业鸡肉沙拉炼金术士


顺序,选择,迭代。

Jason Camp < Ja ******* @ discuss.microsoft.com写信息

新闻:DC ********************* ************* @ microsof t.com ...
Use an absolute URL, such as
http://yourdomain.com/yourimageweb/images/image.jpg

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Sequence, Selection, Iteration.
"Jason Camp" <Ja*******@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...

由于我们无法在开发人员工作站上使用IIS

安全

政策,我们想使用内部网络服务器烘焙成VS.NET

2005.

我目前遇到的问题是我们有很多网页

应用程序共享常见的图像,我不知道放在哪里。

我' 'm

无法在Cassini中创建虚拟目录,因此'不是一个可行的

解决方案。我也不想在每个Web应用程序下的\images

目录下复制所有共享图像,因为这将是一个管理和

维护的噩梦。我们可以将这些图像存储在一个单独的服务器上



通过HTTP引用它们,但这不是一个很好的解决方案来自

部署

立场因为我们需要在开发,
阶段和我们的生产环境之间更改代码。如果我们在

标签

中使用<%= location%来查找运行时的位置,那么图片就不会出现在

设计师。我在互联网上搜索了一个解决方案是徒劳的,所以

希望

你会对这个问题有一些指导。我一定要忽视

显而易见的。
Since we are unable to use IIS on our developer workstations due to
security
policy, we would like to use the internal web server baked into VS.NET
2005.
The problem that I am currently running into is that we have many web
applications that share common images and I don''t know where to put them.
I''m
not able to create a virtual directory in "Cassini", so that''s not a
viable
solution. I also don''t want to copy all the shared images under an \images
directory under each web application as this will be an administrative and
maintenance nightmare. We could store these images on a separate server
and
reference them via HTTP, but that won''t be a nice solution from a
deployment
standpoint because we will need to change the code between development,
staging and our production environments. If we use <%=location%in the
tags
to find the location at runtime, then the images won''t show up in the
designer. I have searched the internet in vain for a solution, so
hopefully
you will have some guidance on this issue. I must be overlooking the
obvious.



绝对URL会从开发变为暂存到生产,所以我必须要去
并在部署之前将所有引用从一个

平台更改为另一个。我不喜欢这个主意。


" Kevin Spencer"写道:
The absolute URL would change from development to staging to production, so I
would then have to go and change all reference before deployment from one
platform to another. I don''t like this idea.

"Kevin Spencer" wrote:

使用绝对URL,例如
http://yourdomain.com/yourimageweb/images/image.jpg


-

HTH,


Kevin Spencer

微软MVP

专业鸡肉沙拉炼金术士


顺序,选择,迭代。


" Jason Camp" < Ja ******* @ discuss.microsoft.com写信息

新闻:DC ********************* ************* @ microsof t.com ...
Use an absolute URL, such as
http://yourdomain.com/yourimageweb/images/image.jpg

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Sequence, Selection, Iteration.
"Jason Camp" <Ja*******@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...

由于我们无法在开发人员工作站上使用IIS

安全

政策,我们想使用内部网络服务器烘焙成VS.NET

2005.

我目前遇到的问题是我们有很多网页

应用程序共享常见的图像,我不知道放在哪里。

我' 'm

无法在Cassini中创建虚拟目录,因此'不是一个可行的

解决方案。我也不想在每个Web应用程序下的\images

目录下复制所有共享图像,因为这将是一个管理和

维护的噩梦。我们可以将这些图像存储在一个单独的服务器上



通过HTTP引用它们,但这不是一个很好的解决方案来自

部署

立场因为我们需要在开发,
阶段和我们的生产环境之间更改代码。如果我们在

标签

中使用<%= location%来查找运行时的位置,那么图片就不会出现在

设计师。我在互联网上搜索了一个解决方案是徒劳的,所以

希望

你会对这个问题有一些指导。我一定要忽视

显而易见的。
Since we are unable to use IIS on our developer workstations due to
security
policy, we would like to use the internal web server baked into VS.NET
2005.
The problem that I am currently running into is that we have many web
applications that share common images and I don''t know where to put them.
I''m
not able to create a virtual directory in "Cassini", so that''s not a
viable
solution. I also don''t want to copy all the shared images under an \images
directory under each web application as this will be an administrative and
maintenance nightmare. We could store these images on a separate server
and
reference them via HTTP, but that won''t be a nice solution from a
deployment
standpoint because we will need to change the code between development,
staging and our production environments. If we use <%=location%in the
tags
to find the location at runtime, then the images won''t show up in the
designer. I have searched the internet in vain for a solution, so
hopefully
you will have some guidance on this issue. I must be overlooking the
obvious.






我的个人偏好可能仍然只是为了使用
$ b自动化副本$ ba工具,例如robocopy (可以从MS下载,允许同步

目录)根据需要或登录时间取决于更新

频率(它们经常更新?)或作为一部分构建过程。


应用程序也可以编写以适应两种情况(

位置可以配置,应用程序可以重定向到

开发模式下的备用位置。


您也可以尝试Windows管理员组(您几乎不知道选项如

作为硬链接或挂点虽然我相信它不会在网络上工作

分享)。


祝你好运

- < br $>
Patrice


Jason Camp < Ja ******* @discussion.microsoft.comaécritdansle message

de news: DC ******************** **************@microsoft.com ...
My personal preference would be likely still just to automate the copy using
a tool such as "robocopy" (downloable from MS, allows to synchronize
directories) either on demand or at logon time depending on the update
frequency (are they updated so often ?) or as part of the build process.

The application could be also written to accomodate both scenarios (the
location could be configurable, the application could redirect to an
alternate location in dev mode).

You could also try a Windows admin group (you have little know options such
as hardlinks or mount points though I believe it wouldn''t work on a network
share).

Good luck
--
Patrice

"Jason Camp" <Ja*******@discussions.microsoft.coma écrit dans le message
de news: DC**********************************@microsoft.com...

因为我们无法在我们的网站上使用IIS开发人员工作站由于

安全性

政策,我们想使用内部网络服务器烘焙成VS.NET

2005.

我目前遇到的问题是我们有许多网页

应用程序共享常见图像,我不知道放在哪里。

我是

无法在Cassini中创建虚拟目录,因此'不是'

可行

解决方案。我也不想在每个Web应用程序下的\images

目录下复制所有共享图像,因为这将是一个管理和

维护的噩梦。我们可以将这些图像存储在一个单独的服务器上



通过HTTP引用它们,但这不是一个很好的解决方案来自

部署

立场因为我们需要在开发,
阶段和我们的生产环境之间更改代码。如果我们在

标签

中使用<%= location%来查找运行时的位置,那么图片就不会出现在

设计师。我在互联网上搜索了一个解决方案是徒劳的,所以

希望

你会对这个问题有一些指导。我一定要忽视

显而易见的。
Since we are unable to use IIS on our developer workstations due to
security
policy, we would like to use the internal web server baked into VS.NET
2005.
The problem that I am currently running into is that we have many web
applications that share common images and I don''t know where to put them.
I''m
not able to create a virtual directory in "Cassini", so that''s not a
viable
solution. I also don''t want to copy all the shared images under an \images
directory under each web application as this will be an administrative and
maintenance nightmare. We could store these images on a separate server
and
reference them via HTTP, but that won''t be a nice solution from a
deployment
standpoint because we will need to change the code between development,
staging and our production environments. If we use <%=location%in the
tags
to find the location at runtime, then the images won''t show up in the
designer. I have searched the internet in vain for a solution, so
hopefully
you will have some guidance on this issue. I must be overlooking the
obvious.



这篇关于与多个网站共享图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆