Microsoft 开发人员网络 >
论坛主页
>
Live Framework
>
Fixing app permissions set by Live Framework Tools for Microsoft Visual Studio
Fixing app permissions set by Live Framework Tools for Microsoft Visual Studio
- We've discovered a bug in how the VS tools set permission values for Live Mesh apps uploaded using the Live Framework Tools for Microsoft Visual Studio ("VS tools"). This results in your mesh app running with fewer permissions than the intended default permission set, which will prevent your app from modifying mesh feeds for contacts or news.
You can fix the default permissions on your app after you perform the first upload steps in VS and the dev portal.
- Perform the first-time app upload steps in VS to upload the zip to the dev portal and set the app self link in the VS project.
- In VS, press F5 again to verify that your mesh app starts up in Live Desktop in the browser, under VS debugger control.
- Close the Live Desktop browser to end the debug session.
- Open a new browser window and log into Live Desktop (http://developer.mesh-ctp.com)
- Select the Apps page.
- Find your mesh app in the list of installed mesh apps. Click on the name of your mesh app instance to view its details page.
To adjust the permissions to the correct default values, click on the "Edit" link in the top right corner of the panel.
The permissions listed on the details page will look like this:
Permissions Read access to my Live Mesh object Read access to my Windows Live Contacts Read access to my Live Mesh User News
An "Access Permission" page will be displayed. Click Allow Access.
Click on the app instance link in the installed applications list to view the app's details page again.
The app permissions should now look like this:
Permissions Read access to my Windows Live Profiles Read access to my Live Mesh Devices Read and update access to my Windows Live Contacts Full access to my Live Mesh User News
Your mesh app can now write to its contacts and news feeds.
This permissions adjustment only needs to be done once after the VS tools have uploaded the app for the first time. Subsequent edits & updates by VS will not change the permissions.
This default permissions bug will be fixed in the next update of the VS tools.
-Danny
http://dannythorpe.com- 已编辑Danny ThorpeMSFT, 版主2008年11月4日 17:54
- 已编辑Danny ThorpeMSFT, 版主2008年11月11日 17:50adjust steps
- 已编辑Danny ThorpeMSFT, 版主2008年11月11日 21:23fix link
全部回复
This issue has been fixed with January 2009 CTP Release.
http://blogs.msdn.com/liveframework/archive/2009/02/02/live-framework-tools-january-ctp.aspx
This posting is provided "AS IS" with no warranties, and confers no rights.

