.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Rectify This Manas Patnaik

Posted By: Jayakumar     Posted Date: February 25, 2011    Points:2   Category :ASP.Net
Hi
Friend rectify this
http://www.dotnetspark.com/Forum/2280-dll-error.aspx

Responses
Author: Manas Patnaik             
Posted Date: February 25, 2011     Points: 5   

Please Check the 2280 Thread.

Provide Error Detail and Assembly information .

Manas Patnaik
http://manaspatnaik.com/blog
Author: Sunil Yadav       [Moderator]      
Posted Date: February 25, 2011     Points: 5   

Hi Jayakumar,

It would be helpful if you reply to the same post.

It seems like your application is calling strong name assembly which is not marked with AllowPartiallyTrustedCallersAttribute. Without setting this property yor application won't be able to call strong name assemblies.

Try setting
[assembly:AllowPartiallyTrustedCallers]
in your assemblyinfo.cs.

Apart from this if it is possible try running your application with Full trust if you hosting provider allows.

<trust level="Full" originUrl="" />


For more info http://support.microsoft.com/kb/839300

Let me know if you need any help.

Author: Jayakumar             
Posted Date: February 25, 2011     Points: 5   

hi
if You done mine
reply this

Did not solve this
how to Create AssemblyInfo.cs i have manually created

My AssemblyInfo.cs -> file like this
------------------------------------

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Security.Permissions;
using System.Security;
[assembly: AllowPartiallyTrustedCallers]
/// <summary>
/// Summary description for AssemblyInfo
/// </summary>
public class AssemblyInfo
{
public AssemblyInfo()
{
//
// TODO: Add constructor logic here
//
}
}

WebConfig like this
--------------------

<trust level="Full" originUrl=""/>

did not solve this because i will post here

Regards
Name : R.Jayakumar(JK)
Email Id : kumaraspcode2009@gmail.com
Author: Sunil Yadav       [Moderator]      
Posted Date: February 25, 2011     Points: 5   

Hi,

AssemblyInfo.cs file you will find under properties folder in the project.

No need to create one. It automatically gets added when you create a new project using VS IDE.


Author: Jayakumar             
Posted Date: February 25, 2011     Points: 5   

hi

i have Create Web Application

Start->File->New-Website here not Genrate AssemblyInfo.cs

but classlibrary create like a ask You but how to achieve this

another one

how to classlibrary and web application include one project is it possible

Regards
Name : R.Jayakumar(JK)
Email Id : kumaraspcode2009@gmail.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend