hi
I build a coldfusion web service which invoke the admin api cfcs. the web
service past the test for consuming from a coldfusion page.
I need make it also can be consumed in asp.net. Then I encountered problem
with security.cfc in adminapi. Because the setSecuritySandbox function
has a required parameter "sandbox" which has to be an array of structures.
Somehow my .net code is not working. I test the array of structures i
build and it seems fine. but asp.net keep returning the error "Compiler
Error Message: CS1502: The best overloaded method match for
'CF7SandBox.setSecuritySandbox(string, string, object[])' has some invalid
arguments". Any guru know why this happen?the code as following
<script language="c#" runat="server">
struct param {
public string action;
public string @class;
public string target;
}
void cfSetSandBox(object sender, EventArgs e){
CF7SandBox aCF7SandBox;
param [] rules=new param[1];
rules[0].action="read";
[EMAIL PROTECTED]"java.util.PropertyPermission ";
rules[0].target="*";
Object aObject =
aCF7SandBox.setSecuritySandbox(/*adminpassword*/"test",/*directory*/"e:\\wwwroot\\testing",/*
sandbox*/rules); // error occured on this line
}
</script>
Thanks a lot!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218477
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54