1
Answer

Security Exception coming in a running asp.net website

Photo of M B

M B

8y
264
1
 
 I am getting this error when I am trying to call above function.

var controller = new createCustomerProfileController(request); // instantiate the contoller that will call the service
ontroller.Execute();
 
Error :- Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
 
 I have tried  my app.config file.
 
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
 
Please help me to solve this issue.
 
 
 
 

Answers (1)

0
Photo of Pradip Pandey
NA 6.9k 1.1m 12y
Hi Saurabh
 You can show your entry records on top on daily basis by using the concept of date, i mean to say that when you are trying to show the records, use order by <datefield> desc clause in your select query.

For question 2 refer this link
http://www.c-sharpcorner.com/UploadFile/satyapriyanayak/how-to-save-image-along-with-details-into-database-in-asp-ne/

Hope this will help you.