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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Sandboxed webparts not working on production

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Hi I have few sandboxed webparts, which are working on development and staging and giving trouble on production.

My code is not dependent on any devlopment context, it is general.

And the webparts are failing on particulatr actions, the page load works very fine.

LEt me give an example , there is a grid binding on page load, which works very fine.

Now, i have paging enabled on it.Now when i select pages, it throws error.

So, i simply commented all the code which executes on pageindexing,it still throws same error.

"Web Part Error: Sandboxed code execution request failed"

View Complete Post

More Related Resource Links

click events not working in webparts

I tried to initiate the click events in my webpart.for simple test, Once I clicked the button it should set the label as empty string. But my click events not working when i integrate this webpart in my site. code    protected override void CreateChildControls()         {             base.CreateChildControls();             TextBox tx = new TextBox();             Button btn = new Button();             btn.Text = "Send to Consumer WebPart";             btn.Click+=new EventHandler(btn_Click);             this.Controls.Add(tx);             lbl = new Label();             lbl.Text = "Thank God!";                         this.Controls.Add(lbl);             this.Controls.Add(btn);        &nb

web service is not working on production server

hi i am calling the webservice from acrobat javascript. it works very well in development server. but when i put the same code in production server, it doesnt call the webservice. And doesn't throw any error. Help me .

Ajax call not working on production box - Using ASP.NET MVC 2



The following .post command in a .js file works fine in Dev and Test but not on our production box (Windows Server 2003).  I believe the URL is not being found on the production box since the function(result) is not being run.  Or it could be that the index method is not returning the jsonresult.

    $.post(BASE_APP_URL + "Beast/Index", $("#beastForm").serialize(), function(result) {
    }, "json");


    <script type="text/javascript">
        var BASE_APP_URL = '<%=Url.Content("~/")%>';   
Index Method:
        public ActionResult Index(BeastPrompt b,string hiddenSubmit, string btnRun)
            beast.errorMessage = string.Empty;

Webconfig - Website not working on Production Env



I have created the asp.net application and Hosted on Different Server(i.e Test,Development). its is an Intranet Application

But When I tried to Host on Production the WebApplication dont work when I check the "Integerated Authentication"

and when I check the "anonymous Access" i get null  value for

the HttpContext.Current.User.Identity.Name.ToString() returns null .

and User.Identity.IsAuthenticated also return false.

 what changes do I have to make in IIS and Webconfig of my application so that it can run on ProductionSERVER


css is not working on production



I uploaded  new design version to production server.

unfortunately the css is not working.

When I clicked on compatibility view for moving to IE7 it works fine.

When I go back to IE8 it is not working.

Thanks in advance.

The website url is http://ienglishcenter.com/


Ajax not working in production environnement



I developed a web page using asp.net 2.0 and ajax toolkit on my laptop on Windows 7 and IIS 6.

I have my ajax/atlas toolkit DLL in my bin.

The updatePanel works fine and does not postback my page.

But when i hosted my website on a dedicated server the page postback totally like i have no updatepanel/ajax in my page...

I am using :

  • Windows server 2008
  • IIS 6
  • Ajax 2.0 installed on the server

I don t understand what is the difference with windows server or IIS or something else ?

Any idea ?



Sharepoint alerts not working on Production


Hi all,

When i am intitating an alert, a mail is sent to the user that alert has been created to this list/library. But when i change anything in the item then no mail is sent to user who is configured to that alert.

Note: I have configured alert for all the changes and immediate alerts.

I have checked the timer job in central admin, they also are present in the timer job definitions.

Do i need to do anything else to get the alert message. Please advice....


Success is not to be pursued; it is to be attracted by the person we become.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Working with DropDownList and ListBox Controls in ASP.NET

"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

Write Custom WebParts for SharePoint 2007

The popularity of SharePoint Portal Server 2003 led Microsoft to tightly integrate the next SharePoint version, Microsoft Office SharePoint Server (MOSS) 2007, with its ASP.NET 2.0 WebPart framework. This tight integration enables the ASP.NET and SharePoint developer to do a number of things that previously weren't possible

Sandboxed Solutions for Web Parts in SharePoint 2010

SharePoint 2010 provides a new sandboxed environment that enables you to run user solutions without affecting the rest of the SharePoint farm. This environment means that users can upload their own custom solutions without requiring intervention from administrators, and without putting the rest of the farm at risk.

Help me with webParts


I added WebPartManager to my default.aspx and i get   teh following Message :

Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:

The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

  1. If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory

Server side validation of Fileupload control not working



I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.

Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

Row command working on all rows not selected one?



I have this code that hides a column in a gridview.  (The column houses another nested gridview).

    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "Select" Then
            If GridView1.Columns(0).Visible = False Then
                GridView1.Columns(0).Visible = True
                GridView1.Columns(0).Visible = False
            End If
        End If
    End Sub

The trouble is that if I click the select link on one row that action to hide is carried out on all rows.  How can I set this up so that it only hides the row that is selected?


upload file not working



iam using masterpage and ajax update panel, i have child page called  fileupload.aspx,i try to upload the file

but its not working , can i use updatepanel in child page , pls very urgent

looking forward for answer.

JQuery Treeview plugin is not working with Ajax page load in ie8


Hi there,

I developed a page where i m using jquery treeview plugin to generate tree. It worked fine on FF, IE8 with out ajax.

But when my page loads thro' ajax call in IE8, it is not collapsing or expanding tree.

Any idea?

Thanks in advance.

jquery confirm windows isn't working


Hi, i am using jquery to implement a modal confirm windows but it not working

i have a template field button with ajax confirm using jquery but i have a problem. Apper the confirm windows but when i click on "yes" doesn't execute the delete command. without ajax (using template field button and simple confirm windows javascript) works so well.

Can you give me a hand with this?

thx in advance!

<link href="_assets/css/StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="_assets/css/confirm.css" rel="stylesheet" type="text/css" />
<script src="_assets/js/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="_assets/js/jquery.simplemodal-1.1.1.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
       $(".deleteCustomer").click(function(ev) {
                var msg = $(this).attr("title");
                confirm(msg + "?");
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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