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

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

DefaultWsdlHelpGenerator.aspx Error

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ADO.Net


I was wondering if anyone has seen this before, has any ideas on cause and/or solution.


Object reference not set to an instance of an object.

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.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 1412:    foreach (ServiceDescription description in serviceDescriptions) {
Line 1413:      foreach (XmlSchema schema in description.Types.Schemas) {
Line 1414:        schemas.Add(schema);
Line 1415:      }
Line 1416:    }

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\DefaultWsdlHelpGenerator.aspx    Line:

View Complete Post

More Related Resource Links

Person.aspx 404 error

Hello all, New Sharepoint admin here, so please be gentle.  I'm trying to get the "My Profile" link to work in the upper-right drop down menu in our newly-installed Sharepoint 2010 site. I'm receiving a 404 error, likely due to the fact it's going to https://siteurl/Person.aspx?accountname whereas I'm trying to set it to go to https://siteurl/my/Person.aspx?accountname... I've followed a few guides on the internet regarding setting the MySite info in the "My Site Settings" of the User Profile Service Application. Currently I've got "my" in the Location field for "Personal Site Location," is this the proper place to change the url?  If I manually navigate to https://siteurl/my/Person.asx?accountname=domain\account the page loads without issue, the problem just seems to be getting sharepoint to go to that proper url. Any assistance would be much appreciated.  Pete

SharePoint ASPX Web Service Call Error

I have developed an ASPX page using VS2005. This page simply queries a SharePoint list through a WSS web service using CAML and takes the results and populates a DataTable and binds it to a DataView. The code works perfect using VS2005 but when I port it over to SharePoint I get the following error.Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.The call stack is as follows:[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]   System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 unrestrictedOverride, Int32 create) +0   System.Security.CodeAccessSecurityEngine.Assert(CodeAccessPermission cap, StackCrawlMark& stackMark) +79   System.Security.CodeAccessPermission.Assert() +37   Book2Physical.Requests.get_DataSource() +

error provider control in aspx pages?

how can i add error provider control in an asp.net page using c#..  for example,if i am using a textbox control which prompts the user to fill it on clicking the submit button,how should i make the textbox control to prompt the user. someone help me with this!!! and also reply me if v can use status strip control in aspx pages

Modifying Customizing EditForm.aspx of Doc lib breaks Upload function - Unknown Error

Part of a bigger design issue really. But does anybody know why customizing EditForm.aspx of a Doc lib breaks the Upload function? and how to fix it so it does not. My version of the editform works great, but after an upload I get Unknown Error the resulting url looks like this: https://xxxxx.edu/sites/xxxx/_layouts/Upload.aspx?List=%7b0404432B-91A3-4E18-9202-5954E3A7E0D2%7d&RootFolder=%2fsites%2fmcpharm%2ftest3&Source=https%3a%2f%2fxxxxx.edu%2fsites%2fmcpharm%2ftest3%2fForms%2fAllItems.aspx --- The bigger design issue - disregard if you like: That said, the bigger design issue is we are trying to relate one list row to many documents, but don't want to seperate the docs into seperate folders and would like the solutoin to be seamless. We are going to add a look up from the doc lib to the list, but did not want to use anythng but the List's ID column. However, we do not want users to have to manually look up List row IDs in that form, and we did not want to use a list column that can be edited, even if we can add a unique column policy. My design and thinking is to build a few custom pages with dataviews to show row level details in both lists (1 to many) and a dataview to drive list level functions like edit, delete and upload docs. I think all the pieces are there except for the less than graceful upload function that fist uploads the file and then asks the

A customized EditForm.aspx page giving error because it has a "People and Group" field with a "Allow

My customized EditForm.aspx which has a "People and Group" column with the "Allow multiple selections" property as "Yes" was working fine until the Agusust cumulative update was applied into the MOSS server. Now it's giving me the error: "An unexpected error has occurred". Needless to say, when I change the "Allow multiple selections" property to "No", the customized EditForm.aspx page works fine.Forgetting whyMicrosoft introduced this error for now, is there a workaround that you are awre of?

Site Manager Error object reference error line 145 SiteManager.aspx SmtPostBackHandler1.UniqueID

Hi I am getting error bellow irrespective of if its IE or firefox Server Error in '/' Application. Object reference not set to an instance of an object. 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. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 143: Line 144: Line 145: <a onclick='javascript:__doPostBack("", "Refresh=<%= TreeView1.SelectedNode.Value %>")' style="cursor:pointer"> Line 146: <SharePoint:EncodedLiteral runat="server" text="<%$Resources:cms, SmtRefreshLink%>" EncodeMethod='HtmlEncode'/> Line 147: Source File: c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SiteManager.aspx Line: 145 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] Microsoft.SharePoint.Publishing.Internal.WebControls.ObjectSerializer.get_WebServerRelativeUrl() +148 Microsoft.SharePoint.Publishing.Internal.WebControls.ObjectSerializer.get_CachedList() +149 Microsoft.SharePoint.Publishing.Internal.WebControls.ObjectSerializer.get_AutomationId() +178 Microsoft.SharePoint.Publishing.Internal.WebContro

Error: Access Denied on default.aspx and other pages of existing and new sites

Hi, since today we can't access the project portals of all our projects (Visual Studio TFS 2008/sharepoint admin 3.0 running on esx 4.0). I already checked every possible security settings, they're all OK. I also tried creating a new site but I can't access the site. I can however access all the settings. For example when I try to access: http://server/Sites/Profel I get the "Error: Access Denied" message and the browser is redirected to http://server/Sites/Profel/_layouts/AccessDenied.aspx?Source=http%3A%2F%2Fserver%2FSites%2FProfel%2Fdefault%2Easpx I have no problem navigating to: http://server/sites/Profel/_layouts/settings.aspx and I can go to al lot of pages, but when I want to create something like a calendar I can specify the parameters but when I click the create button I get the same error. http://server/Sites/Profel/_layouts/AccessDenied.aspx?Source=http%3A%2F%2Fserver%2FSites%2FProfel%2FLists%2Ftest%2Fcalendar%2Easpx&Type=list&name=%7B46CB3B46%2DD0F6%2D47F5%2DBA1A%2D3C9654A24A8E%7D I already tried this: http://support.microsoft.com/kb/926642  http://support.microsoft.com/kb/896861/en-us but no success Any help is welcome, Greetz, Peter

Getting "; expected" error in my .aspx page when using vb.script

Using c#.net/asp.net 2005.I am trying to use vbscript if statement in the .aspx page of my page when I'm using c# for the code-behind file.  I'm new to csharp and wondering are you allowed to use vbscript (not vb.net) in the .aspx page?

Strange error trying to Edit new ASPX page in Advanced mode


Steps to duplicate error:

  1. Create new ASPX page in Site Pages.
  2. Right click on it and choose "Edit file in Advanced Mode"

I get this error:
"soap:ServerServer was unable to process request. ---> Value does not fall within the expected range."

I've googled this and haven't found anything that resembles a fix....any ideas?


Handling non-aspx pages 404 error



I have enabled customError in my web.config file and it handles 'Page not found' error for aspx pages or any other files types handled by ASP runtime. My problem is my application is on a remote host and when a user tries a url on my website that ends with something other than those files types handled by ASP run time, for example http://mywesites.com/sdkdhiufuhief.hei, it displays a detailed error page by the IIS which I really don't like the malicious users to see. It contains a lot of information like the physical path of the application.

How can I handle all 404 html error regardless of the file type and URL in my ASP.NET application?

Error Message Implementing AdminCategories.aspx - book Beginning ASP.NET E-Commerce in C #



I'm following the book "Beginning ASP.NET E-Commerce in C #, and I can not move because I get an error.

I'm trying to work some days and I can not solve.

I'm on page 325, "Implementing AdminCategories.aspx" in GridView.

When I debug,
appears a error message.

Procedure or function 'CatalogGetCategoriesInDepartment' expects parameter '@ DepartmentID' Which was not supplied.

Detalhes da Exceção: System.Data.SqlClient.SqlException: Procedure or function 'CatalogGetCategoriesInDepartment' expects parameter '@DepartmentID', which was not supplied.

I've already made that part several times, I always get the same error.

I have this.

    //retrieve the list of categories in a department
    public static DataTable GetCategoriesInDepartment(string departmentId)
        //Get a configured DbCommand object
        DbCommand comm = GenericDataAccess.CreateCommand();
        //Set the stored procedure name

SharePoint Designer 2007 - Customize List View - Error when saving view ASPX page


We have a custom list definition that includes custom site columns.  When we try to open one of the list view aspx pages in SharePoint to update the view query we get an error when trying to save the page in SharePoint Designer 2007.  We receive a warning that the operation will customize the page from the site definition, which is fine.  And then get a general "Server error: ServiceRequestorID" alert.  ServiceRequestorID is a custom site column used by the list definition.

ServiceRequestorID field definition:

<Field ID="{FA39D24D-AB40-4b1d-BD80-94ABE34A7578}" Name="ServiceRequestorID" DisplayName="Service Requestor ID" StaticName="

[Sharepoint 2007]Parse error when I add code behind the page to a normal aspx page ?


Hi all,

I dont need this form to be embedded into Sharepoint. I am adding this webpage into Sharepoint because i has issues due to cross-domain permission. I cannot call refresh sharepoint from my op up window  webpage. Therefore i want to add my webpage into the same domain as sharepoint.

I have added the webpage aspx form into Sharepoint from the sharepoint designer 2007. I would like to add code behind the page too.

What i have done at the moment was to create a project in visual studio for the code behind the page. I folloed this article :



Then i have added the dll intothe bin of my sharepoint site. i have also added in webconfig the dll.

However i got the following error :

Parser Error Message: The codefile attribute on the page directive is not allowed in this page.

Source Error: 

Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="FormOragniseMeeting.aspx.cs" Inherits="FormOrganiseMeeting.FormOrganiseMeetingCodeBehind" %>
Line 2: 
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





Will sessions kill when application error occurs which is in global.aspx


can you please tell Will sessions kill when application error occurs which is in global.aspx ?



void Application_Error(object sender, EventArgs e)




Error when Customizing Newform.aspx for Discussion Board ('A Folder with the name {0} already exis



On WSS 3.o I have created an out-of the box Discussion Board called 'dd'. I need to Cusomize the NewForm.aspx.  As noted in numerous online articles I deleted the existing ListFormWebpart and inserted a new DataFormWebpart based on the discussion Booard. I didnt Modify the DataFormWebpart  in any way.

I save  the Newform.aspx, browse to the Discussion Board and create an Item with Subject 'Test'. All is good. But when I go to create a second Item With A subject of 'Test" I get an error saying  'A Folder with the name Lists/dd/Test already exists.

If I use the DataFormWebpart  I am allowed to create discussions with the same name , but if I switch to A DataFormWebpart  I am not.

Is this a known issue? Are there any work-arounds?


Checkin.aspx fthrows error in live - not un dev - after visual upgrade


Dear all,

I made a cusomized masterpage in dev - based on the starter master pages of randy drisgill. They worked fine there. Used SP2010 designer export and import to live. Although I dont see them in SP designer, I see them in the MP gallery. Also tried dragging them in the library while in SP designer, no luck.

I go over to the master page gallery on the live and try to check the new masterpages in, no such luck, an error. I check out blackband, try to check it in, same error. So it seems to have nothing to do with the masterpage i'm trying to check in. The SP2010 machine is an in-place upgrade. Which worked fine - after a visual upgrade  though nothing seems to want to checkin anymore - also not on other libraries. This though was not the case in dev after visual upgrade.

Have a look at the ULS log here : http://twitpic.com/2vn3k2/full

I will revert to version 3 of the UI with powershell - but do hope to get to version 4 eventually.

Thanks for any tips

List.aspx Resource not found error



i recently merged my dynamic data web application to an existing web application, everything works fine in my machine, when i move the code to another machine it doesnt work, both are VS2008 with SP1, below is the structure

Root > Support > SupportMaster.aspx (this is the default.aspx file which gets created when you create a dynamic data entities web application)

Root > DynamicData > [contains all the default files]

http://localhost:1234/Support/SupportMaster.aspx list downs the list of tables which i have put in the LINQ to SQL file

when i click one of the table Airlines, the url becomes http://localhost:1234/airlines/list.aspx, this url works in my machine but the same doesnt work in the other machine

it gives an resource not found error, please help, im going nuts to figure this out


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