SubSonic, Scaffold error - subsonic

I use Scaffold for manage my tables data, using subsonic 2.1.
just for one table I got this error message when try to view table data, i recreate related classes several times but still and just for scaffold I got this error, I can use table class and insert / edit data myself.
In my table I have both nvarchar and bigint fields.
What's wrong?
Error converting data type nvarchar to bigint.
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.Data.SqlClient.SqlException: Error converting data type nvarchar to bigint.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Error converting data type nvarchar to bigint.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1948826
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844747
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
System.Data.SqlClient.SqlDataReader.HasMoreRows() +157
System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +197
System.Data.SqlClient.SqlDataReader.Read() +9
System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +78
System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +164
System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +353
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +164
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +94
SubSonic.SqlDataProvider.GetDataSet(QueryCommand qry) in C:\svn\subsonicproject\trunk\SubSonic\DataProviders\SqlDataProvider.cs:428
SubSonic.DataService.GetDataSet(QueryCommand cmd) in C:\svn\subsonicproject\trunk\SubSonic\DataProviders\DataService.cs:523
SubSonic.SqlQuery.ExecuteJoinedDataSet() in C:\svn\subsonicproject\trunk\SubSonic\SqlQuery\SqlQuery.cs:1449
SubSonic.Scaffold.BindGrid(String orderBy) in C:\svn\subsonicproject\trunk\SubSonic\Controls\Scaffold.cs:1285
SubSonic.Scaffold.CreateChildControls() in C:\svn\subsonicproject\trunk\SubSonic\Controls\Scaffold.cs:706
SubSonic.Scaffold.ddlTables_SelectedIndexChanged(Object sender, EventArgs e) in C:\svn\subsonicproject\trunk\SubSonic\Controls\Scaffold.cs:750
System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +111
System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +134
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10
System.Web.UI.Page.RaiseChangedEvents() +165
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
CREATE TABLE [dbo].[Tbl_Document]( [Code] [bigint] IDENTITY(111111111,1) NOT NULL, [DocCode] [nvarchar](20) COLLATE NULL, [FkLoginID] [nvarchar](20) COLLATE NOT NULL, [CurrentUser] [nvarchar](20) COLLATE NOT NULL, [FkStatus] [smallint] NOT NULL, [TypeWorkFlow] [nvarchar](50) COLLATE NOT NULL, [Step] [int] NOT NULL, [Note] [ntext] COLLATE NULL, [FKProvince] [smallint] NOT NULL, [NORahgiry] [nvarchar](20) COLLATE Arabic_CI_AS NULL, [IsLock] [bit] NOT NULL, [IsArchive] [bit] NOT NULL, [FKTolidUnit] [nvarchar](20) COLLATE Arabic_CI_AS NOT NULL, [OldUnitCode] [nvarchar](50) COLLATE Arabic_CI_AS NULL, CONSTRAINT [PK_Tbl_Document_1] PRIMARY KEY CLUSTERED ( [Code] ASC)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]GO

System.Data.SqlClient.SqlException: 'Error converting data type nvarchar to bigint.'
in MVC core
#sql #mvc #datatype

Related

ServiceStack - OrmLite (probably) - Conversion failed when converting from a character string to uniqueidentifier

It was working then it fails all of a sudden. Try a few parsing but no luck.
Error Code: SqlException
Message Conversion failed when converting from a character string to uniqueidentifier.
Stack Trace
[SalesOrderDetailsGet: 14/08/2015 7:59:29 AM]: [REQUEST: {SalesOrderId:676b44dcb0c245a5a3191cda194b3267}] System.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting from a character string to uniqueidentifier. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at ServiceStack.OrmLite.OrmLiteUtils.ConvertTo[T](IDataReader dataReader, IOrmLiteDialectProvider dialectProvider) at ServiceStack.OrmLite.OrmLiteResultsFilterExtensions.ConvertTo[T](IDbCommand dbCmd, String sql) at ServiceStack.OrmLite.OrmLiteReadCommandExtensions.SingleById[T](IDbCommand dbCmd, Object value) at ServiceStack.OrmLite.OrmLiteReadApi.<>c__DisplayClass3c1.<SingleById>b__3b(IDbCommand dbCmd) at ServiceStack.OrmLite.OrmLiteExecFilter.Exec[T](IDbConnection dbConn, Func2 filter) at ServiceStack.OrmLite.OrmLiteReadExpressionsApi.Exec[T](IDbConnection dbConn, Func2 filter) at ServiceStack.OrmLite.OrmLiteReadApi.SingleById[T](IDbConnection dbConn, Object idValue) at BookWS.ServiceLogic.Sales.SalesOrderDataProcess.GetSalesOrderById(Guid id) in C:\Users\Carl\Documents\Visual Studio 2013\Projects\BookWS\BookWS\BookWS.ServiceLogic\Sales\SalesOrderDataProcess.cs:line 38 at BookWS.ServiceInterface.SalesOrderServices.Get(SalesOrderDetailsGet request) in C:\Users\Carl\Documents\Visual Studio 2013\Projects\BookWS\BookWS\BookWS.ServiceInterface\Sales\SalesOrderServices.cs:line 40 at lambda_method(Closure , Object , Object ) at ServiceStack.Host.ServiceRunner1.Execute(IRequest request, Object instance, TRequest requestDto) ClientConnectionId:0a6a1c79-14e9-4575-9fab-21c542508a78 Error Number:8169,State:2,Class:16
GET:
public Object Get(SalesOrderDetailsGet request)
{
SalesOrderDataProcess sODP = new SalesOrderDataProcess(Db);
SalesOrder salesOrderTemp = sODP.GetSalesOrderById(request.SalesOrderId);
Data layer:
public SalesOrder GetSalesOrderById(Guid id)
{
return _dbConnection.SingleById<SalesOrder>(id);
}
The running stopped at above block's
return _dbConnection.SingleById<SalesOrder>(id);
Thank you very much.
This is a common SQL Server exception indicating that it couldn't convert the string value into a uniqueidentifier (i.e. GUID).
Go back and ensure all data in your Table has a value for the uniqueidentifier field and that the value is a valid GUID.

"error: 19 - Physical connection is not usable" when I swap my Staging and Production deployments on Windows Azure

Every time I swap my deployments between Staging and Production, I got this kind of error :
[Wed Oct 09 18:43:51.9519 +00:00 2013] [Error] [Zappiti.BaseApi] An
error occurred while updating the entries. See the inner exception for
details.
System.Data.Entity.Infrastructure.DbUpdateException: An error
occurred while updating the entries. See the inner exception for
details. ---> System.Data.UpdateException: An error occurred while
updating the entries. See the inner exception for details. --->
System.Data.SqlClient.SqlException: A transport-level error has
occurred when receiving results from the server. (provider: Session
Provider, error: 19 - Physical connection is not usable)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean breakConnection, Action`1 wrapCloseInAction)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at
System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject
stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader
ds, RunBehavior runBehavior, String resetOptionsString)
at
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
async, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
method, TaskCompletionSource`1 completion, Int32 timeout, Task& task,
Boolean asyncWrite)
at
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
completion, String methodName, Boolean sendToPipe, Int32 timeout,
Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at
System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator
translator, EntityConnection connection, Dictionary2
identifierValues, List1 generatedValues)
at
System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager
stateManager, IEntityAdapter adapter)
--- End of inner exception stack trace ---
at
System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager
stateManager, IEntityAdapter adapter)
at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
at System.Data.Entity.Internal.InternalContext.SaveChanges()
--- End of inner exception stack trace ---
at System.Data.Entity.Internal.InternalContext.SaveChanges()
at Zappiti.BaseApi.PutVideo(PutVideo putVideo, Guid userId, String
queueName, Boolean isBeta)
I deploy my package using a standard Build Definition from TFS.
Is there a way to avoid these connection errors ?
I just found this feature in the changelog of EF 6.x :
http://msdn.microsoft.com/en-us/data/dn456835
I'll take a try.
Stay tuned.

Sharepoint event receiver and linq to sharepoint

I have a sandboxed solution and access some lists with Linq-to-Sharepoint. Now I attached an event receiver to the list type 101 because I have to restrict some files uploaded to picture libraries. This works fine.
But now my Linq-to-Sharepoint throws an error when I try to insert a new item to a list (only with Linq, it works fine if I create new items on that list via the regular user interface).
The error is 0x81020089 with the message The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request. but the message is just default as the host service is not too busy and 0x81020089 is kind of a problem with an event receiver.
Everything works fine if I dont attach the event receiver but the error occurs when I do so - even if there is no code in the event receiver at all.
Any ideas?
Error message
0x81020089 The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request.
Server stack trace
at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents, String filename)
at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents, String filename)
at Microsoft.SharePoint.SPListItem.Update()
at Microsoft.SharePoint.SPListItem_SubsetProxy.Update__Inner()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Place the following in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC
That key just has to be present. You don't need a value. Also, you will have to place that key in every registry that is running the Sandboxed Code Host Service. Once you do that, I would recommend that you restart the machine.
Here is a great blog article in regards to this issue.
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx
I faced the same issue and the problem was an error (Object reference not set to an instance of an object) that is happening on the ItemUpdating event receiver.. debug should tell you what is missing..
when you use linq to sharepoint, the AfterProperties are only the properties that are changed by code, which is different that the UI update where all properties will be considered as changed

Problems deploying Extensions in DotNetNuke on Azure Website

I have just created a website for my company and chosen to install the DotNetNuke Framework into the site.
My problem comes when I try to deploy Extentions. I have just bought the "Advanced Business Directory" and "Live Blog" extensions and neither will install correctly.
When I try to deploy the "Live Blog" Extensions I get the following error:
"A critical error has occurred. Could not find a part of the path 'C:\DWASFiles\Sites\coworking-foundation\VirtualDirectory0\site\wwwroot\Install\Module\'."
When I try to deploy the "Advanced Business Directory" I get the following top level error:
Error loading files from temporary folder - see below
With the details being:
StartJob Starting Installation
Info Starting Installation - AdvancedBusinessDirectory
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version - Providers\DataProviders\SqlDataProvider\00.00.01.SqlDataProvider
Info Created - Providers\DataProviders\SqlDataProvider\00.00.01.SqlDataProvider
Info Executing 00.00.01.SqlDataProvider
Info Start Sql execution: 00.00.01.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /************************************************************/ /***** SqlDataProvider *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and *****/ /***** *****/ /************************************************************/ /*==============================================================*/ /* Table: dbo.ZLDNN_Business */ /*==============================================================*/ if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.[ZLDNN_Business]') and OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN create table dbo.ZLDNN_Business ( BusinessID int not null IDENTITY(1, 1), ModuleID int null, Name nvarchar(200) null, Address nvarchar(200) null, Description nvarchar(4000) null, Website nvarchar(200) null, Email nvarchar(100) null, Phone nvarchar(100) null, Fax nvarchar(100) null, Postal nvarchar(50) null, Logo nvarchar(200) null, Unit nvarchar(100) null, Street nvarchar(200) null, City nvarchar(100) null, Region nvarchar(100) null, Country nvarchar(100) null, Lat nvarchar(100) null, Lng nvarchar(100) null, IsApproved bit null, IsFeatured bit null, OwnerUserID int null, CreatedDate datetime null, UpdatedDate datetime null, ExpiredDate datetime null, ViewCount int null, Keywords nvarchar(200) null, ) ALTER TABLE dbo.[ZLDNN_Business] ADD CONSTRAINT [PK_ZLDNN_Business] PRIMARY KEY CLUSTERED ([BusinessID]) CREATE NONCLUSTERED INDEX [IX_ZLDNN_Business] ON dbo.[ZLDNN_Business] ([ModuleID]) ALTER TABLE dbo.[ZLDNN_Business] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_Business_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE NOT FOR REPLICATION END System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /*==============================================================*/ /* Table: dbo.ZLDNN_BusinessCategory */ /*==============================================================*/ if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.[ZLDNN_BusinessCategory]') and OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN create table dbo.ZLDNN_BusinessCategory ( CategoryID int not null IDENTITY(1, 1), ModuleID int null, Title nvarchar(200) null, Description nvarchar(1000) null, ImagePath nvarchar(500) null, ParentID int null, Level int null, ViewOrder int null, ) ALTER TABLE dbo.[ZLDNN_BusinessCategory] ADD CONSTRAINT [PK_ZLDNN_BusinessCategory] PRIMARY KEY CLUSTERED ([CategoryID]) CREATE NONCLUSTERED INDEX [IX_ZLDNN_BusinessCategory] ON dbo.[ZLDNN_BusinessCategory] ([ModuleID]) ALTER TABLE dbo.[ZLDNN_BusinessCategory] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_BusinessCategory_Modules] FOREIGN KEY ([ModuleID]) REFERENCES dbo.[Modules] ([ModuleID]) ON DELETE CASCADE NOT FOR REPLICATION END System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /*==============================================================*/ /* Table: dbo.ZLDNN_BusinessAssignedCategory */ /*==============================================================*/ if not exists (select * from dbo.sysobjects where id = object_id(N'dbo.[ZLDNN_BusinessAssignedCategory]') and OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN create table dbo.ZLDNN_BusinessAssignedCategory ( BusinessAssignedCategoryID int not null IDENTITY(1, 1), CategoryID int not null, BusinessID int not null, ) ALTER TABLE dbo.[ZLDNN_BusinessAssignedCategory] ADD CONSTRAINT [PK_ZLDNN_BusinessAssignedCategory] PRIMARY KEY CLUSTERED ([BusinessAssignedCategoryID]) CREATE NONCLUSTERED INDEX [IX_ZLDNN_BusinessAssignedCategory] ON dbo.[ZLDNN_BusinessAssignedCategory] ([BusinessAssignedCategoryID]) ALTER TABLE dbo.[ZLDNN_BusinessAssignedCategory] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_BusinessAssignedCategory_ZLDNN_BusinessCategory] FOREIGN KEY ([CategoryID]) REFERENCES dbo.[ZLDNN_BusinessCategory] ([CategoryID]) ON DELETE NO ACTION ALTER TABLE dbo.[ZLDNN_BusinessAssignedCategory] WITH NOCHECK ADD CONSTRAINT [FK_ZLDNN_BusinessAssignedCategory_ZLDNN_Business] FOREIGN KEY ([BusinessID]) REFERENCES dbo.[ZLDNN_Business] ([BusinessID]) ON DELETE CASCADE NOT FOR REPLICATION END System.Data.SqlClient.SqlException: 'NOT FOR REPLICATION' is not supported in this version of SQL Server. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)
There is more in the SQL error, but it's much the same for about 10 different modules in the same package.
Does anyone have these extensions working, or any idea about how I can proceed with installing them?
Thanks
Mark
Live Blog is Azure compatible. Make sure you're installing the latest version. http://www.mandeeps.com/downloads.aspx

Publishing web project to azure failed: The "IsolatedCSPack" task failed unexpectedly

I have web application that I want to publish and upload to windows azure.
I use Visual Studio 2008.
I click on "publish", chose "Create Service Package Only" in "Publish Cloud Service" window, andclick on "OK".
The publish failed tnd the exception is:
Error 26 The "IsolatedCSPack" task failed unexpectedly.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Server stack trace:
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at MS.Internal.IO.Packaging.SparseMemoryStream.CopyMemoryBlocksToStream(Stream targetStream)
at MS.Internal.IO.Packaging.SparseMemoryStream.WriteToStream(Stream stream)
at MS.Internal.IO.Zip.ZipIOFileItemStream.Save()
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.Save()
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Packaging.PackagePart.Close()
at System.IO.Packaging.Package.DoClose(PackagePart p)
at System.IO.Packaging.Package.DoOperationOnEachPart(PartOperation operation)
at System.IO.Packaging.Package.System.IDisposable.Dispose()
at Microsoft.ServiceHosting.Tools.Packaging.PackageCreator.CreateRolePackages(ModelProcessor modelProcessor, PackageManifest applicationManifest, Package applicationPackage)
at Microsoft.ServiceHosting.Tools.Packaging.PackageCreator.CreatePackage(Stream outputStream)
at Microsoft.ServiceHosting.Tools.Packaging.ServiceApplicationPackage.CreateServiceApplicationPackage(String serviceModelFileName, String serviceDescriptionFile, Stream output, IPackageSecurity encrypt, Dictionary`2 namedStreamCollection, String userInfo, EventHandler`1 rolePackagePartAddedHandler)
at Microsoft.ServiceHosting.Tools.Packaging.ServiceApplicationPackage.CreateServiceApplicationPackage(String serviceModelFileName, String serviceDescriptionFile, Stream output, RSACryptoServiceProvider encrypt, Dictionary`2 namedStreamCollection, String userInfo, EventHandler`1 rolePackagePartAddedHandler)
at Microsoft.ServiceHosting.Tools.MSBuildTasks.CSPack.TryCreatePackage(ServiceDefinitionModel sm)
at Microsoft.ServiceHosting.Tools.MSBuildTasks.CSPack.Execute()
at Microsoft.CloudExtensions.MSBuildTasks.IsolatedCSPack.RemoteCSPackBridge.Execute(TaskLoggingHelper log, IBuildEngine buildEngine, ITaskHost hostObject, String serviceHostingTasksPath, String output, String serviceDefinitionFile, ITaskItem[] packRoles, Boolean copyOnly, String generateConfigurationFile, Boolean noEncryptPackage, ITaskItem[]& copiedFiles, ITaskItem[]& outputFiles)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.CloudExtensions.MSBuildTasks.IsolatedCSPack.RemoteCSPackBridge.Execute(TaskLoggingHelper log, IBuildEngine buildEngine, ITaskHost hostObject, String serviceHostingTasksPath, String output, String serviceDefinitionFile, ITaskItem[] packRoles, Boolean copyOnly, String generateConfigurationFile, Boolean noEncryptPackage, ITaskItem[]& copiedFiles, ITaskItem[]& outputFiles)
at Microsoft.CloudExtensions.MSBuildTasks.IsolatedCSPack.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) C:\Program Files\MSBuild\Microsoft\Cloud Service\v1.0\Microsoft.CloudService.targets 865 5 Starlims.SDMS.Azure
How can i resolve this?
Happened to me before... try restarting the computer (I know... it's a bit "Technical Support" advice - but it worked for me!
This looks like the same problem someone else posted about on the MSDN Azure forum. Their problem was that a resource was being copied into the project with:
build action = Content
Copy to Output Directory = Copy if Newer.
They changed the latter to Never and the problem went away.

Resources