Studio中获取测试许可证密钥

Studio中获取测试许可证密钥

本文介绍了在Visual Studio中获取测试许可证密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过Visual Studio 2012开发环境测试我的Excel内容应用程序中的许可,但我无法让它给我"et"查询参数。 我创建了一个测试令牌,并根据这些说明将其放在
目录中,并带有清单文件:  msdn.microsoft.com/en-us/library/office/fp123519(v=office.15).aspx 


.tok和.xml(清单)文件都具有相同的根名称。 我已经创建了必要的注册表项。 但是,当我在调试器中运行App时,没有"et"。查询参数。 我甚至尝试重新启动: - )


这是我的令牌:

 

< rv =" 1" >
&NBSP; < t aid =" WA102957661"
&NBSP;&NBSP;&NBSP; PID =" 9ae9f205-87a3-4032-b77a-bb73bf7782af"
&NBSP;&NBSP;&NBSP; CID =" C9318CF562EEEB81"
&NBSP;&NBSP;&NBSP; TS = QUOT; 0"
&NBSP;&NBSP;&NBSP; SL ="真"
&NBSP;&NBSP;&NBSP;等= QUOT;免"
&NBSP;&NBSP;&NBSP;广告= QUOT; 2012-07-23T23:46:00Z"
&NBSP;&NBSP;&NBSP; SD =" 2012年9月20日"
&NBSP;测试= QUOT 1 QUOT;
&NBSP;&NBSP;&NBSP; TE = QUOT; 2013-09-20T23:35:08Z" />
&NBSP; < d> LxYWszpUM7ljxcUkUsC8MVnjd7owBh / VwkUCFsKKD2Q =< / d>
< / r>

然后启动应用并使用此行Page_Load事件: 

 string token = Request.Params [" et"]。ToString(); 

从这些方向:  msdn.microsoft.com/en-us/library/office/jj163908(v = office.15).aspx  这会产生一个很好的null异常,因为et不在params列表中。 


我的第一个问题是,我是否理解正确? 它应该出现在调试器中吗? 我希望如此,或者我无法真正处理代码。 如果它应该出现,有什么建议我可以检查
,看看我做错了吗? 我在这个问题上花了一整天的时间,我根本无法实现这一目标。 
谢谢!



解决方案

I am attempting to test the licensing in my Excel Content App through the a Visual Studio 2012 development environment, but I am unable to get it to give the me "et" query parameter.  I have created a test token and placed it in a directory with the manifest file as per these instructions:  msdn.microsoft.com/en-us/library/office/fp123519(v=office.15).aspx 

Both the .tok and .xml (manifest) files have the same root name.  I have created the requisite registry entry.  But still, when I run the App in the debugger, there is no "et" query parameter.  I even tried rebooting :-)

this is my token:

<r v="1">
  <t aid="WA102957661"
    pid="9ae9f205-87a3-4032-b77a-bb73bf7782af"
    cid="C9318CF562EEEB81"
    ts="0"
    sl="true"
    et="Free"
    ad="2012-07-23T23:46:00Z"
    sd="2012-09-20"
 test="1"
    te="2013-09-20T23:35:08Z" />
  <d>LxYWszpUM7ljxcUkUsC8MVnjd7owBh/VwkUCFsKKD2Q=</d>
</r>

I then start the app and use this line in the Page_Load event: 

string token = Request.Params["et"].ToString();

from these directions: msdn.microsoft.com/en-us/library/office/jj163908(v=office.15).aspx    which produces a nice null exception because et is not in the params list. 

My first question is, am I understanding this correctly?  Should it show up in the debugger?  I would hope so or I'd have no way of really working on the code.  If it is supposed to show up, are there any suggestions on what I might check to see if I'm doing wrong?  I've spent a full day on this issue and I simply cannot make it go. Thank you!

解决方案


这篇关于在Visual Studio中获取测试许可证密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 17:51