A Servere Error Occured on the Current Command, The Result, If Any, should be discarded Message (10:17:1)
Hello
I am getting Following error when I predd add button. On this add button I do Bulk Copy insertion in some of tables.
I am using Linq to sql classes. At my side error is not comming. But at client side error is comming. They have more than 1 lac data. I am not getting why this kind of error occured?
So can anybody please tell me possible causes of this error?
If possible then can anybody sugest me any solution for it?
Thanking you in advance..
Regards
Vipul
So can you please analyse it & tell me the possible reasons for this kind of error..
Did you check the SQL Server error log? That might provide details as to the underlying cause of the error.
& also if possible then can you please send me basic solution that you can sugest me..
One method that might avoid the problem to insert in smaller batches line 10,000 rows. Use a separate data table for the SqlBulkCopy and perform the WriteToServer in a loop. Copy up to 10K rows from the source to target data table and
execute WriteToServer in each iteration.
A more robust method is to create your own DataReader that batches the rows. The original data table could be used as the source.
Dan Guzman, SQL Server MVP, http://www.dbdelta.com
Similar Messages
-
MS SQL server is going down frequently(10 days of gap) with exception message: "A severe error occurred
on the current command. The results, if any, should be discarded". We are facing this issue for past two month.But funny thing is server will be up automatically with out any service restart manually. Also if we try to restart the SQL
server service manually then SQL server will be in a dead lock situation and it will not come up even if we wait for long time. Then we should do a windows server machine restart to
make the SQL sever up. As a suggestion from Microsoft to fix this kind of similar issue,
we have installed service pack 3 for SQL Server. But even after we are facing same issue.
Server Details:
Server OS: Windows Server 2008 R2
Two type of database servers are installed on server:
1. MS SQL Server 2008 R2
2. My SQL
Also Reporting server is configured for the purpose of generating SSRS report from a dot net website.
NOTE:Immediately after the data retrieval/save, we are closing the connection explicitly by the
application.
we have checked the windows event log and below are the details:
Log Name: Application
Source: ASP.NET 4.0.30319.0
Application information:
Application domain: /LM/W3SVC/5/ROOT-1-130718142067856406
Trust level: Full
Application Virtual Path: /
Application Path: E:\WebSpaceFolder\ACSQuiK\Production\
Machine name: DBSERVER
Process information:
Process ID: 148
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: SqlException
Exception message: A severe error occurred on the current command. The results, if any, should be discarded.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 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)
Log Name: Application
Source: Report Server Windows Service (MSSQLSERVER)
Description:
Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Report Server Windows Service (MSSQLSERVER)" />
<EventID Qualifiers="0">107</EventID>
Could anybody can suggest any kind of fix for this issue? Thanks in advance.Hi YesYemPee,
I have tried but still not clear about your issue, I would like you provide more details information about your issue based on below points to better analysis about the issue:
What action did you do and caused the error "A severe error occurred on the current command. The results, if any, should be discarded", did you run report on the web application or something else then the error happen?
If you rendering the report and got the error, please try to provide us more error information in the log files which path like:
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles
If it is not the case in step1, Please try to provide SQL Server Error log(SQL Server Logs) and more details information.
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Hi,
I am using SQL server 2008 R2 and also MultipleActiveResultSet = true and Pooling = true (default value) in connection string.
While executing query 'IF ORIGINAL_LOGIN() = SUSER_SNAME() EXECUTE AS USER = 'MyUser'', I received error stating 'A server error occurred on the current command. the results if any should be discarded'. At the same time I could check that SqlConnection
state is also closed.
I have also fired 'REVERT' query If I find such exception and again try to execute same query again. but no luck. I received the same exception while executing query (Execute As) again.
What can be the solution to avoid such exception and make my code working?
Thanks,
AshishLogin failed for user 'sa'. The user is not associated with a trusted SQL Server connection.
Above issue occurs genrally when authentication mode is set to Windows Authentication insted Mixed Mode.
You can change the authentication mode of the SQL server from “Windows Authentication Mode (Windows Authentication)” to “Mixed Mode (Windows Authentication and SQL Server Authentication)”.
Run following script in SQL Analyzer to change the authentication
LOGIN sa ENABLE
GO
ALTER LOGIN sa WITH PASSWORD = '<password>'
GO
http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/
But as per the first post it seems issue is different have you observerd Error log?
Check out at C:\Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\LOG\ERRORLOG
Location might differ as per the Server configration
Please click the Mark as answer button and vote as helpful if this reply solves your problem -
We have a DotNet website which is deployed on a physical server(windows server 2008 r2). The application is started to using for live. Most of the time application is working fine. But some times we have noticed the application is failed to communicate
with MS SQL 2008 R2 database and as result the below error is displaying:
"A severe error occurred on the current command. The results, if any, should be discarded. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 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.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean
enlistOK) "
If we tried to connect the database server the same issue is showing:"A severe error occurred on the current command. The results, if any, should be discarded"
The issue will be resolved automatically after 30-45 minutes . Please let us know if any fixes can be done to resolve this issue.
NOTE: We have installed SQL Server 2008 service pack 3 as per the suggestion from experts .But still the issue pwersist.Hello,
When this issue occurs have you check the existing connections? If an app was unclean developed it can happen that the app opens connection by connection, but never closed them correctly and when all available connections are in use, such an error can occur.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
I have a strange situation on a database, which are on SQL Server 2008 R2 Express SP2. The database size is something around 90 MB.
When a user try to insert a record inside one table, he receive an error message, and the program is disconnected from the database. I tried to investigate this issue, and I discovered that when user try to insert one row the trigger for
insert invoke also the trigger for update and sql server crushes with "A severe error occurred on the current command. The results, if any, should be discarded."
I have checked from SQL Server Management Studio to run a direct Update on the specific table. The same error occurred.
I have run DBCC CheckTable and no errors have been found. I also have run DBCC CHECKDB and no errors.
Because I also have 3 other different databases, with the same functionality, on the same server which are going well with more than 100 000 records in that specific table, and the triggers are going well for more than 5 years, I have assumed that some
problems occurs inside the database. That is why I have copied all the records from the "damage" database to a new one. This means that inside the new databases the indexes are regenerated and a new space will be allocated.
The same strange things are happening. The same table can not be updated with a very basic Update statement.
I am looking for a patch or KB to solve this issues.
Any ideas are will be appreciated.
Thank youthere is a file as response to one of my tests to investigate which command is responsible for this error.
Current time is 21:18:39 08/18/13.
=====================================================================
BugCheck Dump
=====================================================================
This file is generated by Microsoft SQL Server
version 10.50.4000.0
upon detection of fatal unexpected error. Please return this file,
the query or program that produced the bugcheck, the database and
the error log, and any other pertinent information with a Service Request.
Computer type is Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz.
Bios Version is INTEL - 1072009
BIOS Date: 09/23/09 11:58:43 Ver: 08.00.10
8 X64 level 8664, 2 Mhz processor (s).
Windows NT 6.1 Build 7601 CSD Service Pack 1.
Memory
MemoryLoad = 16%
Total Physical = 8125 MB
Available Physical = 6755 MB
Total Page File = 16248 MB
Available Page File = 14719 MB
Total Virtual = 8388607 MB
Available Virtual = 8380163 MB
***Stack Dump being sent to d:\MSSQL10_50.MSSQLSERVER\MSSQL\LOG\SQLDump0084.txt
SqlDumpExceptionHandler: Process 52 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
* BEGIN STACK DUMP:
* 08/18/13 21:18:39 spid 52
* Exception Address = 0000000000886B00 Module(sqlservr+00000000001F6B00)
* Exception Code = c0000005 EXCEPTION_ACCESS_VIOLATION
* Access Violation occurred writing address 0000000000000000
* Input Buffer 214 bytes -
* begin transaction insert into DocContabile select * f
* rom gunoiDocContabile rollback
* MODULE BASE END SIZE
* sqlservr 0000000000690000 00000000042A1FFF 03c12000
* ntdll 0000000077730000 00000000778D8FFF 001a9000
* kernel32 0000000077510000 000000007762EFFF 0011f000
* KERNELBASE 000007FEFD6E0000 000007FEFD74AFFF 0006b000
* ADVAPI32 000007FEFE090000 000007FEFE16AFFF 000db000
* msvcrt 000007FEFE300000 000007FEFE39EFFF 0009f000
* sechost 000007FEFF590000 000007FEFF5AEFFF 0001f000
* RPCRT4 000007FEFF5B0000 000007FEFF6DCFFF 0012d000
* MSVCR80 0000000071710000 00000000717D8FFF 000c9000
* MSVCP80 0000000071600000 0000000071708FFF 00109000
* sqlos 00000000715F0000 00000000715F6FFF 00007000
* Secur32 000007FEFD1E0000 000007FEFD1EAFFF 0000b000
* SSPICLI 000007FEFD3B0000 000007FEFD3D4FFF 00025000
* pdh 000007FEF90C0000 000007FEF910DFFF 0004e000
* SHLWAPI 000007FEFDE50000 000007FEFDEC0FFF 00071000
* GDI32 000007FEFE3A0000 000007FEFE406FFF 00067000
* USER32 0000000077630000 0000000077729FFF 000fa000
* LPK 000007FEFDE40000 000007FEFDE4DFFF 0000e000
* USP10 000007FEFF970000 000007FEFFA38FFF 000c9000
* USERENV 000007FEFC850000 000007FEFC86DFFF 0001e000
* profapi 000007FEFD510000 000007FEFD51EFFF 0000f000
* WINMM 000007FEFB320000 000007FEFB35AFFF 0003b000
* IPHLPAPI 000007FEFAD70000 000007FEFAD96FFF 00027000
* NSI 000007FEFDFB0000 000007FEFDFB7FFF 00008000
* WINNSI 000007FEFAD60000 000007FEFAD6AFFF 0000b000
* opends60 0000000071590000 0000000071597FFF 00008000
* NETAPI32 000007FEFAEB0000 000007FEFAEC5FFF 00016000
* netutils 000007FEFAEA0000 000007FEFAEABFFF 0000c000
* srvcli 000007FEFD060000 000007FEFD082FFF 00023000
* wkscli 000007FEFAE80000 000007FEFAE94FFF 00015000
* LOGONCLI 000007FEFCB90000 000007FEFCBBFFFF 00030000
* SAMCLI 000007FEFAE60000 000007FEFAE73FFF 00014000
* BatchParser 0000000071560000 000000007158CFFF 0002d000
* IMM32 000007FEFE060000 000007FEFE08DFFF 0002e000
* MSCTF 000007FEFE1F0000 000007FEFE2F8FFF 00109000
* psapi 00000000778F0000 00000000778F6FFF 00007000
* instapi10 0000000071320000 000000007132CFFF 0000d000
* cscapi 000007FEF7FA0000 000007FEF7FAEFFF 0000f000
* sqlevn70 0000000071100000 0000000071303FFF 00204000
* CRYPTSP 000007FEFCE50000 000007FEFCE66FFF 00017000
* rsaenh 000007FEFCA70000 000007FEFCAB6FFF 00047000
* CRYPTBASE 000007FEFD440000 000007FEFD44EFFF 0000f000
* BROWCLI 000007FEF8B80000 000007FEF8B91FFF 00012000
* AUTHZ 000007FEFCF70000 000007FEFCF9EFFF 0002f000
* MSCOREE 000007FEF8980000 000007FEF89EEFFF 0006f000
* ole32 000007FEFDC30000 000007FEFDE32FFF 00203000
* credssp 000007FEFC960000 000007FEFC969FFF 0000a000
* msv1_0 000007FEFCD90000 000007FEFCDE0FFF 00051000
* cryptdll 000007FEFD090000 000007FEFD0A3FFF 00014000
* kerberos 000007FEFCCD0000 000007FEFCD83FFF 000b4000
* MSASN1 000007FEFD5B0000 000007FEFD5BEFFF 0000f000
* schannel 000007FEFCB00000 000007FEFCB55FFF 00056000
* CRYPT32 000007FEFD7D0000 000007FEFD939FFF 0016a000
* security 0000000071390000 0000000071392FFF 00003000
* WS2_32 000007FEFF360000 000007FEFF3ACFFF 0004d000
* SHELL32 000007FEFE5D0000 000007FEFF357FFF 00d88000
* OLEAUT32 000007FEFDED0000 000007FEFDFA6FFF 000d7000
* ncrypt 000007FEFCF20000 000007FEFCF6CFFF 0004d000
* bcrypt 000007FEFCEF0000 000007FEFCF11FFF 00022000
* mswsock 000007FEFCDF0000 000007FEFCE44FFF 00055000
* wship6 000007FEFCFB0000 000007FEFCFB6FFF 00007000
* wshtcpip 000007FEFC720000 000007FEFC726FFF 00007000
* ntmarta 000007FEFC620000 000007FEFC64CFFF 0002d000
* WLDAP32 000007FEFE410000 000007FEFE461FFF 00052000
* ntdsapi 000007FEF7AF0000 000007FEF7B16FFF 00027000
* bcryptprimitives 000007FEFC9D0000 000007FEFCA1BFFF 0004c000
* SAMLIB 000007FEFBE10000 000007FEFBE2CFFF 0001d000
* CLBCatQ 000007FEFD960000 000007FEFD9F8FFF 00099000
* sqlncli10 0000000063720000 00000000639DCFFF 002bd000
* VERSION 000007FEFC650000 000007FEFC65BFFF 0000c000
* COMCTL32 000007FEFA110000 000007FEFA1AFFFF 000a0000
* COMDLG32 000007FEFDFC0000 000007FEFE056FFF 00097000
* SQLNCLIR10 00000000636E0000 0000000063716FFF 00037000
* netbios 000007FEF4340000 000007FEF4349FFF 0000a000
* xpstar 0000000063650000 00000000636D7FFF 00088000
* SQLSCM 0000000063640000 000000006364DFFF 0000e000
* ODBC32 000007FEF0AC0000 000007FEF0B70FFF 000b1000
* ATL80 0000000063620000 000000006363FFFF 00020000
* odbcint 00000000635E0000 0000000063617FFF 00038000
* clusapi 000007FEF91B0000 000007FEF91FFFFF 00050000
* resutils 000007FEF9190000 000007FEF91A8FFF 00019000
* xpstar 00000000635B0000 00000000635D4FFF 00025000
* dbghelp 0000000063330000 000000006348DFFF 0015e000
* P1Home: 000000000BB6A950: 00000000C0000005 0000000000000000 0000000000886B00 0000000000000002 00000000
What else should I have to do?
Thank you,
Horia -
Hello.
I have a problem with SQL Server 2008 R2 SP1:
I have a table with the full-text index-activated on 3 fields of type nvarchar.
When I try to open a transaction (ex: BEGIN TRAN {inserts} COMMIT) to insert multiple rows, I get the following error: "A severe error occurred on the current command ...".
I checked the Sql Server Logs and the Event Viewer on the machine, but nothing was logged.
I found a workaround: disable full-text-index => Do stuff => enable full-text-index, but this is very annoying (especially when i use the Data Compare to update that table on the Development Environment).
Help!!!I concur with Tom. Upgrade to SP3. This may resolve the issue.
Since you say that there is nothing in the SQL Server errorlog, this may be an API issue. Try running the same commands through the command-line tools SQLCMD or OSQL to see how this turns out.
Erland Sommarskog, SQL Server MVP, [email protected] -
A severe error occurred on the current command - select into
Hi
I am making a backup of a table before working on the original, but when I try a simple select into statement I receive 'Msg 0, Level 11, State 0, Line 0 - A Severe error occurred on the current command. The results, if any, should be discarded.'
I am able to run a select query on the original table with the same where clause I am using in the select into statement and it runs without error.
Does anyone know why this is happening?
Server 2008 64bit, SQL Server 2008r2
Thank you for any helpThis is a generic message that informs you that something went very wrong, either in SQL Server itself or in the client API.
If open a command promptt and try the same command running from SQLCMD or OSQL, what happens? If things seems to work well, run a simple second command like "SELECT 1" to make sure that this works. (The use a different API from SSMS, why it is
worth testing.)
Also look in the SQL Server error log. If you see a stack dump which appeared at the same time as you ran the SELECT INTO statement, then it's clear that the accident was in SQL Server.
I would recommend that you run DBCC CHECKDB on the database, as the root cause could be corruption.
Erland Sommarskog, SQL Server MVP, [email protected] -
Severe Error Ocurred on the Current Command REPORT BUILDER SSRS 2008
Hi,
I have a report with 6 tabs, I am using totally 8 Stored Procedures for it.I am using SQL SERVER 2008 R2 and the same in production also.
Everything works fine when I run the report in my local machine's BIDS, however, when I deploy it into the Production, it occasionally gives an error which reads "An error has occurred during local report processing. (rsProcessingAborted). Query execution
failed for dataset 'DS_xxxx'. (rsErrorExecutingCommand)
A Severe error occurred on the current command. The results, if any, should be discarded. Operation cancelled by user.
When I ran the SPs individually in the SSMS they are executing fine and the report itself works fine always in my local BIDS.
Also, This issue happend several weeks after the report was deployed to the production, i.e. it was working fine but suddenly it started giving this error, so I changed the global temp table I was using to a permanent table and then it worked fine for a
few more weeks, now, again, I am getting the same error occasionally, is there any way to avoid this error completely and can you list all the possible causes for this error, because it happens 2 times out of 5 runs so it is difficult to debug it also.
As for the Report it self, It is a simple report with a few spark line Charts and a mostly data charts. I am not using any CTEs or Global Temp Tables anywhere in the report.
Thanks You.Hi,
I would suggest you increase the time out on the reports to 3600 and how it works.
You can set a default value for all reports in the Site Settings page.
The default timeout in SSRS for reports is 1800 seconds.
If still no progress, please check the RS log.
For more information, see
Set Report Processing Properties.
Thanks.
Tracy Cai
TechNet Community Support -
Time machine backups are failing. I've followed the instructions I found on the Time Machine troubleshooting page (http://pondini.org/TM/Troubleshooting.html) but have gotten to where I don't know what to do next.
Sequence of events:
The main error message is always:
An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.
Yesterday, I opened Disk Utility and verified the disk. Got this error:
Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
I ran Disk Utility and repaired the hard drive. Then I manually started the backup before going to bed, figuring it was going to take a long time to run. When I got up this morning, the backup had failed with the same "could be temporary" error. I checked the log, which says:
Starting manual backup
Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
Event store UUIDs don't match for volume: Macintosh HD
Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC
Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:17
Error: (5) setxattr for key:com.apple.backupd.SnapshotState path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:2
Deep event scan at path:/ reason:must scan subdirs|new event db|
Finished scan
Found 145601 files (11.88 GB) needing backup
16.1 GB required (including padding), 620.77 GB available
Copied Zero KB of 11.88 GB, 0 of 145601 items
Copied 0 files (Zero KB) from volume Macintosh HD.
Copy stage failed with error:11
Backup failed with error: 11
Ejected Time Machine disk image: /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle
Ejected Time Machine network volume.
Starting automatic backup
Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
Event store UUIDs don't match for volume: Macintosh HD
Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/9F8E7957-9C50-49C3-8314-880E5203E3D9
Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/
Does anyone know what the problem is here and what I should do?
Thanks,
TeryYou have repaired your boot drive (which is good) but have you repaired your time machine drive? I don't own a Time Capsule so I don't know if disk utility can operate on it. If it can, you should repair it as well. You may need to erase it and start a new backup. That happens to time machine volumes from time to time and is why people who are serious about their data never rely on a single source of backup.
-
Sysprep - Fatal error occurred while trying to sysprep the machine
On the 4th attempt to sysprep a Windows 7 Enterprise system, I get the dreaded, 'A fatal error occurred while trying to sysprep the machine.'
The setuperr.log shows:
2010-08-04 13:57:58, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 31
2010-08-04 13:57:58, Error [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
I've seen articles referring to the Windows Software Licensing Rearm program may have issues running more than three times in a single Windows image and to add <SkipRearm>1</SkipRearm> in the /unattend file... but this did not help.
The Windows Media Player Network Sharing Service has also been disabled which is often referred to in other posts.
The KB article: http://support.microsoft.com/kb/947212/en-us indicated that the resolution is to re-create the image for the machine... This is very frustrating. I'm hoping that there is
a better resolution???
How do you sysprep a machine more than three times to avoid this error?
Thanks!!
930193I had a problem Where Runing slmgr /dlv returned 0 and could not sysprep a
32 bit Win 7 Installed on C:drive
Here is what I did to succeed whit Sysprep.
Disable UAC
Based on
This :
open notepad and copy paste the following:
@ECHO OFF
setLocal Enabledelayedexpansion
for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
if exist %%d:\windows\system32 (
SET drv1=%%d:\windows\system32
reg load HKLM\MY_SYSTEM !drv1!
reg delete HKLM\MY_SYSTEM\WPA /f
reg unload HKLM\MY_SYSTEM
GOTO END
:END
ECHO Done, Rebooting system...
timeout 3
wpeutil reboot
Then in notepad chose file>save as, in File Type select "All Files", name it "c:\reset.bat"
Reboot Your Pc, after bios screen press F8, Select "Repair Your Computer", select your keyboard layout, enter your credentials if needed,
then select the last option "Open Command Prompt"
type "c:\reset.bat" or "d:\reset.bat" (Sometimes Your Windows Partition get a different letter on the repair environment)
Back on Windows follow step five if needed.
Check under slmgr /dlv you have more than 0 under "Remaining Windows Rearm count"
Download pstools.zip from
here, extract content an copy psexec.exe to %windir%\System32
run psexec.exe and accept the license agreement so it won't bother when running afterwards, close it.
open notepad and copy paste the following:
@ECHO OFF
echo Stopping Windows Media Player Sharing Service..
echo.
net stop wmpnetworksvc
echo.
echo Deleting Old Sysprep Logs...
echo.
del /f /s /q %windir%\System32\sysprep\panther\*.*
echo.
echo Adding Required Sysprep Registry Keys...
echo.
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v SkipRearm /t REG_DWORD /d 00000001 /f
REG ADD HKLM\SYSTEM\Setup\Status\SysprepStatus /v GeneralizationState /t REG_DWORD /d 00000007 /f
REG ADD HKLM\SYSTEM\Setup\Status\SysprepStatus /v CleanupState /t REG_DWORD /d 00000002 /f
psexec -i -s REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Cleanup /v "{EC9FE15D-99DD-4FB9-90D5-5B56E42A0F80}" /t REG_SZ /d "C:\\Windows\\System32\\iesysprep.dll,Sysprep_Cleanup_IE" /f
psexec -i -s REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Generalize /v "{EC9FE15D-99DD-4FB9-90D5-CE53C91AB9A1}" /t REG_SZ /d "C:\\Windows\\System32\\iesysprep.dll,Sysprep_Cleanup_IE" /f
psexec -i -s REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Specialize /v "{EC9FE15D-99DD-4FB9-90D5-676C338DC1DA}" /t REG_SZ /d "C:\\Windows\\System32\\iesysprep.dll,Sysprep_Cleanup_IE" /f
echo.
echo Uninstalling MSDTC...
echo.
msdtc -uninstall
timeout 10
echo.
echo Reinstalling MSDTC...
echo.
msdtc -install
timeout 10
echo.
echo Cross Your Fingers, Finally Running Sysprep...
echo.
%windir%\System32\sysprep\sysprep /generalize /oobe /shutdown /unattend:unattend.xml
Change Last Line to suit your needs, ie: if you are not using an unnattend answer file, then delete /unattend:unattend.xml"
Then in notepad chose file>save as, in File Type select "All Files", name it "%windir%\System32\do.cmd"
if you use an unattend.xml file copy it to %windir%\System32\sysprep folder.
Once you are ready run %windir%\System32\do.cmd
Hope it helps, -
I have two forests with a transitive on-way trust between them: PROD -> TEST (test trusts PROD). I had previously had kerberos authentication working with winrm from PROD to machines in TEST. I have verified the trust is healthy, I also verified users
in TEST can use WINRM with kerberos just fine. Users from PROD cannot connect via kerberos to machines in TEST with winrm.
I have verified the service has registered the appropriate SPNs. I ran dcdiag against all my PROD and TEST domain controllers and didn't find anything that would prevent kerberos from happening. I even tried disabling the firewall entirely on my TEST dcs
but that didn't gain me anything.
I've enabled kerberos logging but only see the expected errors such as it couldn't find a PROD SPN for the machine, which it shouldn't from what I understand, it should go to the TEST domain and find the SPN from there.
I'm really out of next steps before I call PSS and hope someone here has run into this and could provide me some next steps.
PowerShell Error:
Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken
winrs Error:
Winrs error:
WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config.Hi Adam,
I'm a little unclear about which SPNs you were looking for, in which case could you confirm you were checking that on the computer object belonging to the actual destination host it has the following SPNs registered?
WSMAN/<NetBIOS name>
WSMAN/<FQDN>
If you were actually trying to use WinRM to connect to the remote forest's domain controllers, then what you said makes sense, but I was caught between assuming this was the case or you meant another member server in that remote forest.
Also, from the client trying to connect to this remote server, are you able to telnet to port 5985? (If you've used something other than the default, try that port)
If you can't, then you've got something else like a firewall (be that the Windows firewall on the destination or a hardware firewall somewhere in between) blocking you at the port level, or the listener on the remote box just isn't working as expected. I
just replied to your other winrm post with steps for checking the latter, so I won't repeat myself here.
If you can telnet to it and the SPNs exist, then you might be up against something called selective authentication which has to do with how the trust was defined. You can have a read of
this to learn a bit more about selective trusts and whether or not it's affecting you.
Cheers,
Lain -
Anyone can help with the below issue please? Much appreciated.
We have about 2k+ messages in sys.transmission_queue
Telnet to the ports 4022 is working fine.
Network connectivity has been ruled out.
The firewalls are OFF.
We also explicitly provided the permissions to the service account on Server A and Server B to the Service broker end points.
GRANT
CONNECT ON
ENDPOINT <broker> <domain\serviceaccount>
Currently for troubleshooting purposes, the DR node is also out of the Availability Group, which means that we right now have only one replica the server is now a traditional cluster.
Important thing to note is when a SQL Server service is restarted, all the messages in the sys.transmission queue is cleared immediately. After about 30-40 minutes, the errors are continued to be seen with the below
The
connection was
closed by the
remote end,
or an
error occurred while
receiving data:
'64(The specified network name is no longer available.)'We were able to narrow down the issue to an irrelevant IP coming into play during the data transfer. We tried ssbdiagnose runtime and found this error:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>SSBDIAGNOSE -E RUNTIME -ID 54F03D35-1A94-48D2-8144-5A9D24B24520 Connect to -S <SourceServer> -d <SourceDB> Connect To -S <DestinationServer> -d <DestinationDB>
Microsoft SQL Server 11.0.2100.60
Service Broker Diagnostic Utility
An internal exception occurred: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
P 29830 Could not find the connection to the SQL Server that
corresponds to the routing address tcp://XX.XXX.XXX.199:4022. Ensure the tool is connected to this server to allow investigation of runtime events
The IP that corresponds to routing address is no where configured within the SSB. We are yet unsure why this IP is being referred despite not being configured anywhere. We identified that this IP belongs to one of nodes other SQL Server cluster, which has
no direct relation to the source server. We failed over that irrelevant SQL Server cluster and made another node active and to our surprise, the data from sys.transmission_queue started flowing. Even today we are able to reproduce the issue, if we bring
back this node [XX.XXX.XXX.199] as active. Since, its a high business activity period, we are not investigating further until we get an approved downtime to find the root cause of it.
When we get a approved downtime, we will bring the node [XX.XXX.XXX.199] as active and we will be running Network Monitor, Process Monitor and the SSB Diagnose all in parallel to capture the process/program that is accessing the irrelevant IP.
Once, we are able to nail down the root cause, I will share more information. -
An error occurred: An error occurred while trying to view the document
Now my partner meet a trouble about opendocument API.
There are 2 servers : one is partner’s web server ,which partner’s application run in; other is BO server.
The above servers are running on different servers.
There is a web page A , which is running in partner’s web server.
Page A includes a iframe, whose source is BO documents running in BO server via opendocument API.
In Chrome, the page A work.
But in IE, the page A don’t work, then get the error “An error occurred: An error occurred while trying to view the document”
You can see error.jpg
I have written the sample page to re-produce this error.
You can change 1.txt to 1.jsp
Welcome your advice.Hi,
if it works in Chrome then this Problem is related to IE.
Maybe the URL is to long? IE can "only" handle 2048 Characters.
Regards
-Seb. -
An error occurred while trying to provision the service 'Discussions'.
Hi All
I initially got the error Failed to authenticate user when accessing the discussion and Announcement services within WebCenter. I subsequently configured WS Security by providing the required keystore as indicated in this tutorial:
http://e20tricks.blogspot.com/2010/02/webcenter-quick-install-guide.html
I've created a orcladmin user that is the system admin in Jive Forum too and use this as the required user in the service configuration within EM.
I now however even though the Discussion and Announcement Service is available in WebCenter get the following error when trying to add either service to a group space:
An error occurred while trying to provision the service 'Announcements'. The service did not get provisioned.
I can't find anything in the logs that indicates any errors.
Have I missed something? A slight configuration stuff-up perhaps?
FYI my keystore defines -dname as "cn=machine name, dc=com, dc=au".
Any advice and help would be much appreciated :)Make sure when you generate your keystore you use these commands:
genkeypair
importcert
exportcert
and not:
genkey
import
export
if the above commands you should be using are not available you've got an issue with your keytool which is probably an incorrect java. Make sure you have a JDK installed. -
An error occurred while trying to contact the radio tuning service
I get this error message when trying to connect to the radio stations on itunes? "an error occurred while trying to contact the radio tuning service" My computer is definitely connected to the internet as I can stream from pandora and safari and mail work? Any suggestions?
I suggest you browse this forum. This issue has been going on for at least 3 days now. It happens to some part of the time, some for all the time, not at all to others.
It's not clear what the issue is, or where it lies. If it's something to do with Apple's servers they are not likely to discuss it. There was an issue like this a few months ago with the weather widgets and people kept on posting with no news until one day it suddenly started working, again with no news. If you wish to, you can report to Apple.
http://www.apple.com/feedback/itunesapp.html
There are other applications that let you listed to online radio if you are desperate. Check www.pure-mac.com
Maybe you are looking for
-
ITunes 8: I can no longer connect to remote speakers via Airport Express
Cannot connect to my remote speakers, worked before iTunes 8" I have restarted the computer, iTunes, QT 7.5.5, run disk utility I get the following error code (-3256) Apple KB research says: AirTunes: Error -3256 when streaming to multiple AirPort Ex
-
Error while exporting : ORA-24801: illegal parameter value in OCI lob funct
hello, I am doing an export on a 10.2.0.4 , solaris machine. The table i am doing an export has a blob & clob. During the export I get the error : EXP-00056: ORACLE error 24801 encountered ORA-24801: illegal parameter value in OCI lob function In met
-
Wrong DVD drive opens on 2009 Mac Pro
Hello, I have a 2009 Mac Pro with two DVD drives. Since upgrading to Mavericks, I've noticed some unusual behavior: 1. Ocassionally, the incorrect DVD drive ejects/opens. For example, when I attempt to open the top drive, the bottom one opens, and
-
How can I get the current user and the current page?
Hi everyone Question.. It is possible to get the current user (from the user's database on apex) and the current page? (I mean, if I'm in page 4 be able to query a variable / function or something which could give me the current displayed page) Thank
-
Hi there, I am running bootcamp and when I am starting to install Windows XP I can't actually move into the setup because the keyboard won't work. Is there anyone who found a solution? Thanks.