ASMX +外部动态链接库
我正在开发 Microsoft Team Foundation Server 的 Silverlight 客户端。我正在使用 ASMX Web 服务通过 TFS api 进行实际调用。
当我使用 Visual Studio 开发服务器运行它时,一切正常,但我不知道如何将应用程序部署到 IIS。
我可以让 ASMX Web 服务正常工作,除非它是使用 TFS api 的调用。我尝试过将所有 TFS api DLL 放入我能想到的每个目录中,甚至安装 Visual Studio sdk。什么都不起作用!
更新 11/15/09 7:50PM EST:
事实证明,TFS api 试图在 c:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team 处创建缓存Foundation\2.0\Cache\,而 IIS_WPG 用户无权执行此操作。轻松修复。
I am working on Silverlight client to Microsoft Team Foundation Server. I am using an ASMX web service to make the actual calls using the TFS api.
Everything works fine when I run it with the visual studio development server, but I cannot figure out how to deploy the app to IIS.
I can get the ASMX web service to work unless it is a call that uses the TFS api. I have tried putting all of the TFS api DLLs in like every directory that I can think of, and even installing the visual studio sdk. Nothing works!
UPDATE 11/15/09 7:50PM EST:
Turns out that the TFS api was trying to create a cache at c:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\, and the IIS_WPG user didn't have access to do so. Easy fix.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装 TFS API 的唯一受支持的方法是安装 Team Explorer。您可以尝试仅对您需要的程序集进行 GAC,但您只能靠自己[并且在技术上违反了 EULA]...
其他需要检查的事项:
您出现了什么错误得到?您是否尝试过将调试器附加到 IIS?
The only supported way of installing the TFS API is to install Team Explorer. You could try to GAC just the assemblies you need, but you're on your own [and technically violating the EULA]...
Other things to check:
What error do you get? Have you tried attaching a debugger to IIS?