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


Post New Web Links

prescan, it just isn't happening

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :SharePoint
 
Hi. I am preparing for migration to MOSS2007 from SP2003 SP2. I ran the prescan tool over the database, and it has come back with errors (below) at the very beginning of the log file. C:/>prescan /all 05/13/2010 09:21:58 Cannot locate the list definition required for upgrade. Check to ensure you have all templates and language packs installed. 05/13/2010 09:21:58 Error: Exception scanning web: http://address 05/13/2010 09:21:58 System.Runtime.InteropServices.COMException (0x80004005): Cannot complete this action. Please try again.    at Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateSchemaAllListsOfWeb(String bstrUrl)    at Microsoft.SharePoint.PreupgradeReport.Scan.ScanOneSPWeb(SqlConnection connection, String vsUrl, SPVirtualServer vs, SPSite site, SPWeb web) So far, I have done the following to try and get it the prescan to complete successfully. Ran STSADM -o enumtemplates to determine number and ID of templates to add to preupgradescanconfig.xml  C:\>stsadm -o enumtemplates  There are no items matching the criteria specified. Ran STSADM -0 databaserepair to determine any orphaned lists or sites.  C:\>stsadm -o databaserepair -url http://address -databasename Address1_SITE  <OrphanedObjects Count="0" /> Thought I'd go ahead and try delete any corruptions anyway: C:\>stsadm -o databaserepair -


View Complete Post


More Related Resource Links

What's happening with JScript.NET

  

Years ago I had an interest in this language (which I think is a cool achievement).

There was writing on the wall that it was not a first class citizen, it never got editing support in VS.

I haven't given it much thought for years.

There is a compiler for it in .NET 2.  (jsc.exe)

I see that it's slated be in .NET 4 (though the DLR language managed JScript isn't).

I used the language in .NET 1 for it's eval and I see that others are doing the same.  (I also see that there are at least a few commercial uses, like Sony in Sound Forge and Vegas.)

Does anybody here have a good handle on the spectrum of people who are using it, the attitude of management in MS and any IDE support for the language?


Documents becoming "locked for editing" by self, when no other edits are happening

  

On our SharePoint 2007 SP1 farm, intermittently, when a user opens a Microsoft Office document (usually Excel) for editing by single-clicking its name in IE, the following error dialog mysteriously occurs when Office opens:

File in Use
myfile.xlsm is locked for editing
by 'domainname\yourname'
Open 'Read-Only' or click 'Notify' to open read-only and receive notification
when the document is no longer in use.

The problem is, nobody else is editing this document, and the identified user ('domainname\yourname') is the name of the current user (the person opening the document right now)!

This is not "user error", e.g., the same user editing the file from two different computers, or the file being checked out. This is a real, intermittent problem. If the same user opens the same file again 1 minute later, the problem might be gone, even though nothing changed.

It's almost as if some kind of intermittent race condition is happening, where the document gets locked too early...?

We are completely stumped. Any ideas?

Other details:
- SharePoint servers (1 front-end, 1 query, 1 indexing) are all Windows 2003 Server
- SQL Server 2008 on database server
- Clients are mostly Windows XP
- Our versioning model is:
--- Content approval: not required

Alert Popup only happening once

  
I have an alertbox that fires when btnCreateorEdit is clicked.The problem is it only seems to happen the first time. I put a breakpoint in the script and it dies break eachtime the button is pressed. Why doesn't the alert happen every time? <%@ Page Title="Deal Milestones" Language="VB" MasterPageFile="~/Protected/ThreeColLiquid.master" AutoEventWireup="false" EnableViewState="true" CodeFile="DealMilestones.aspx.vb" Inherits="Protected_DealMilestones" EnableTheming="true" Theme="PrimaryTheme" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <%@ MasterType virtualPath="~/protected/ThreeColLiquid.master"%> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Head" Runat="Server"> <script type="text/javascript"> $(document).ready(function() { $('input[id$=btnCreateorEdit]').click(function() { alert('Milestone created/updated.'); }); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server"> <asp:Label ID="lblMilestones" CssClass="lab

Update panel with WebChart Control not happening :(

  
Hi guys,I have a drop down list with questions, according to selected question a chart is generated, when you enter the page and select a question for the first time, the chart gets generated correctly, but then when you select another question update panel doesn't show the updated chart (all charts are working, if i test the questions manually).Here is the update panel that i have:<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">             <ContentTemplate>                   <Web:ChartControl ID="ChartControl1" runat="server" BorderStyle="Outset"                         BorderWidth="5px">                    </Web:ChartControl>                </ContentTemplate>             <Triggers>               

ASP.NET AJAX Post back happening in IE7 but works good in Firefox

  

Hi all,

I am debugging one of the project which is implemented using .Net Framework 3.5.

in the home page the project has 5 widgets.

In one of the widget contains a two radio buttons and a save button.When ever the user tries to change the Radiobutton option and Save the results will be displayed properly in Firefox.

But in Internet Explorer 7 the page gets a post back and all the widgets will be reloaded and finally the default radio button will be selected as default instead of the option which i selected.

Can any one help me to resolve this issue.

thanks in advance


Application_Start event stops happening when another project is added to the solution

  

I'm having something unusual happening with a Web Service created using Visual Studio 2008.  Basically, the Application_Start event stops getting called when I add another project to the solution.  Here's what I'm doing (note that I'm using the ASP.NET Development Server):

1. Create a new Web Service project.
2. Add a new WebService class.
3. Add Global.asax.
4. Add a single line "System.Diagnostics.Debugger.Break();" to Application_Start in Global.asax.
5. Change Web.Config compilation debug="true" (actually VS did it for me when I first try to run it).
6. Run the solution.  Result: Visual Studio breaks in the Application_Start event.
7. Manually stop the ASP.NET Development Server.
8. Re-run the solution.  Result: Visual Studio breaks in the Application_Start event.

All good so far.  However, when I continue...

9. Manually stop the ASP.NET Development Server.
10. Add new project (a Windows Class Library) to the solution.  This is NOT set as the startup project (the startup project is still the web service project).  No references are added to either project and no other changes are made to either project.
11. Delete the default Class1.cs that automatically gets added to the class library project.<

UnhandledReportRenderingException in SQL Reporting Service happening randomly.

  

Hi:
one of our customers are having this exception randomly. We put in some re-try code and keep-alive code, yet it still happens.
So I am looking at the SQL log our customer sent us. And I saw this.

So basicaly, one of the report has no data in certain field. would that be the cause of that problem?

library!ReportServer_0-15!150c!10/11/2010-11:50:22:: i INFO: RenderForNewSession('/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008')
processing!ReportServer_0-15!150c!10/11/2010-11:50:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9., ;
 Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9.
webserver!ReportServer_0-15!62c!10/11/2010-11:50:23:: i INFO: Processed report. Report='/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008', Stream=''
library!ReportServer_0-15!13ec!10/11/2010-11:50:50:: Call to GetReportParametersAction(/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008).
library!ReportServer_0-15!13ec!10/11/2010-11:50:51:: i INFO: RenderForNewSession('/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008')
processing!ReportServer_0-15!13ec!10/11/2010-11:50:51:: e ERROR: Throwing Microsoft.Re

Displaying text in label not happening

  

Hi, I have an if statemenet, in the 1st branch, I execute a datareader and want to update a label with the count number, the else branch will freeze the execution for 1 minute (I use Thread.sleep)

In both branches, I have a stamenet to update the content of the lable, this is not happening inside the loop, If, label is updated by the end of the sub, here is the simplified piece of code

 While rdr.Read()
        
             If imailBacthcount <= CInt(txtBatcCount.Text) Then
    do something
    lblCountEmailSent.Content = "count : " + iCount.ToString + " last Sent to "
   ELSE
   lblCountEmailSent.Content = iCount.ToString + " sent, waiting for next 5"
                Thread.Sleep(CInt(txtBatchPeriod.Text) * 60 * 1000)
end while

It is only updated at the end as "10 sent, waiting for next 5"

Thanks in advance


Displaying text in label not happening

  

Hi, I have an if statemenet, in the 1st branch, I execute a datareader and want to update a label with the count number, the else branch will freeze the execution for 1 minute (I use Thread.sleep)

In both branches, I have a stamenet to update the content of the lable, this is not happening inside the loop, If, label is updated by the end of the sub, here is the simplified piece of code

 While rdr.Read()
        
             If imailBacthcount <= CInt(txtBatcCount.Text) Then
    do something
    lblCountEmailSent.Content = "count : " + iCount.ToString + " last Sent to "
   ELSE
   lblCountEmailSent.Content = iCount.ToString + " sent, waiting for next 5"
                Thread.Sleep(CInt(txtBatchPeriod.Text) * 60 * 1000)
end while

It is only updated at the end as "10 sent, waiting for next 5"

Thanks in advance


Fire Stored Procedure in Code Behind - nothing happening (vb.net)

  

Hi,

I have the following code (vb.net) that I have on a button_click action:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim dbconn As New Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("FrogConnectionString").ConnectionString)

Dim rsInsert As New SqlDataSource

rsInsert.SelectCommand = "Proposals_InsertNew"

rsInsert.SelectCommandType = SqlDataSourceCommandType.StoredProcedure

rsInsert.ConnectionString

Drop Shadow Effect Not Happening for a Window!

  

Hi,

I added a DropShadowEffect to the Main Window and i dont see it when i run the app.What am i missing?

<Window.Effect>

  <DropShadowEffect BlurRadius="12" ShadowDepth="15" />

</Window.Effect>

TIA


StatusNote: Changing the default "What's Happening?" message to something else in the Person.aspx p

  

Could somebody provide me a way to change the default message "What's Happening?" in a user's status (My Profile page) to something else?

Any help would be appreciated.


My production server crashes after some time and I can't figure what's happening....... help me pl

  

Hello,

I've got a 32bit win2008 server on wich it runs a silverlight 4 application,

I've got some problems that force me to do an iisreset each 3/4 hours... I've done a dump with debugdiag 1.2 and I'm tring to find if I'm leaking at some points.......

here's what I've seen doing a !dumpheap -stat (cut some points with small objects)

 

7772fb0c     3147       100704 System.Windows.Input.PreProcessInputEventHandler
70883670     2857       102852 System.Security.PermissionSet
71e97cb4     1863       104328 System.Configuration.ConfigurationProperty
7771d5c8      449       105964 System.Windows.Media.Animation.ClockGroup
1f586e04     2950       106200 Telerik.Reporting.Drawing.Style
1f58df6c     1581       107508 Telerik.Reporting.TextBox
7772fccc      449       107760 System.Windows.Input.StylusLogic
7087972c     3475       109164 System.Reflection.CustomAttributeRecord[]
6fe8e0d0 &nbs

Refreshing of Excel file not happening when used from a script task

  

Hello,

The below peice of code works fine when am executing it as a stand alone .net app. But when I copy paste the same code into a script task (SSIS) , The excel refreshing doesn't happen.


public class RefreshPivotTables
{


    public string DestinationFileName
    {
        get;
        set;
    }

    public string SourceTemplate
    {
        get;
        set;
    }

    public string ReprotName
    {
        get;
        set;
    }

    public RefreshPivotTables(string destinationFileName, string sourceTemplate, string reprotName)
    {
        this.DestinationFileName = destinationFileName;
        this.SourceTemplate = sourceTemplate;
        this.ReprotName = reprotName;
    }

    public void Refresh()
 &

SELECT INSERT DELETE UPDATE happening at the same time

  

Hi All,
I have three table and SELECT DELETE INSERT UPDATE happening at the same time.
Join query is used for SELECT and DELETE.
INSERT and UPDATE no join query.
What are the actions to be taken to avoid deadlock. Will indexing help to resolve the dead lock.
Appreciate somebodys help immediately.

Regards,
Smithesh

 


Redirect is happening befor the save

  

Hey everyone... again :P

So With the help of Hemendra I have a custom redirect on the NewForm.aspx page.
http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneral/thread/3a1b8ae1-b551-464e-b36b-ef647c9a649b

But, I just found out that it is redirecting before the actual save.
I didn't see this earlier because I was to happy with it actually redirecting ;)

So, considering its redirecting now with the code placed in a CEWP:

<script>
function PreSaveAction() {
var srcUrl=GetSource();
var newSrcUrl = "http://www.google.com";
var i = aspnetForm.action.lastIndexOf(srcUrl);
aspnetForm.action = aspnetForm.action.substring(0,i) + newSrcUrl ;
return true;
}
</script>



Is there away to trigger this after the actual save or overwriting the save button's redirect?

What is the result and what is happening behind the screen of Type conversion in c#?

  

Hi all,

what is the result for the below code?

int i = 100;
            long j = 100;
            if (i == j)
                Console.WriteLine("same");
            else
                Console.WriteLine("not same");
Categories: 
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