Error CSendFileAction::SendFiles failed; 0x80070003 when distribute package content to DP
Hello,
When I try to distribute package content to DP, SCCM starts to distribute content but stop after 1 -2 minutes with this error :
Sending Started [D:\SCCMContentLib\FileLib\9E97\9E971632A3E9860A15AF04EFEC3A9D5AF9E7220CD4A731C3D9262D00670496A5] SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
Attempt to write 27 bytes to
\\PWXXXXXXX\SMS_DP$\CMP00012.3-9E971632A3E9860A15AF04EFEC3A9D5AF9E7220CD4A731C3D9262D00670496A5 at position 0 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
Wrote 27 bytes to
\\PWXXXXXXX\SMS_DP$\CMP00012.3-9E971632A3E9860A15AF04EFEC3A9D5AF9E7220CD4A731C3D9262D00670496A5 at position 0 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
Sending completed [D:\SCCMContentLib\FileLib\9E97\9E971632A3E9860A15AF04EFEC3A9D5AF9E7220CD4A731C3D9262D00670496A5] SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
CSendFileAction::SendFiles failed; 0x80070003 SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
Notifying pkgXferJobMgr SMS_PACKAGE_TRANSFER_MANAGER 09/11/2012 09:54:10 8464 (0x2110)
Any suggestions ?
Hello Torsten,
what mean the Error:
======== Finished Processing Cycle ( 07.04.2014 16:17:56 W. Europe Daylight Time) ========
Sleeping for maximum 300 seconds.
Failed to get object class
ExecStaticMethod failed (800706be) SMS_DistributionPoint, AddFile
CSendFileAction::AddFile failed; 0x800706be
Deleting remote file \\SERVER-XXX-4.xxx.xx\SMS_DP$\SON00052.10-41692C6C16C15C06108A70D9896C0CDE344322B374B01F499BF54F55690E118D
CSendFileAction::SendFiles failed; 0x800706be
CSendFileAction::SendFiles failed; 0x800706be
Notifying pkgXferJobMgr
Sending failed. Failure count = 1, Restart time = 07.04.2014 16:50:47 W. Europe Daylight Time
Sent status to the distribution manager for pkg SON00052, version 10, status 4 and distribution point ["Display=\\SERVER-DLG-4.roehm.net\"]MSWNET:["SMS_SITE=SON"]\\SERVER-XXX-4.xxx.xx\
Thank you in advance.
BR
Tim
Similar Messages
-
I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!
Read what i say. Put iPhone in DFU mode. Connect with USB cable and restore.
Read:
http://www.apple.com/support/iphone/assistant/restore/ -
I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to download
If you have more than one user account, these instructions must be carried out as an administrator.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
Select
/var/log ▹ install.log
from the hierarchical list on the left. If you don't see that list, select
View ▹ Show Log List
from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
When posting a log extract, be selective. Don't post more than is requested.
Please do not indiscriminately dump thousands of lines from the log into this discussion.
Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting. -
Distribute Package to DistributionPoint failed - TotalFileSizes failed
Hi,
I've some troubles by distributing (migrated) Packages to some Distribution Points.
In PkgXferMgr.log i can see the following Messages:
CContentDefinition::TotalFileSizes failed; 0x80070003
CSendFileAction::SendFiles failed; 0x80070003
Sending failed. Failure count = 50, Restart time = 4/24/2014 7:11:54 AM Eastern Daylight Time
I know, that the ErrorCode means "The system cannot find the path specified." but i've already double checked that the Path is correct and the PrimarySite Server Computeraccount have access to it.
And the package work fine on other Distribution Points.
ThanksThanks for your reply
Yes, i've also checked the file path (77 characters) and there are also no subfolder with long filepath.
And the strange thing is, that the same packages work on other Distribution Points. There are only 4-5 DPs and ~10 Pkgs effected. -
Dear Experts,
Frequently I see packages that are being transferred over WAN links failing with the below posted error.
We're running SCCM 2012 SP1, the DP's are rate limited and firewalled.
Some applications end up on the DP's fine (even OS images), some don't. When they don't, the issue is non-recoverable, even if I retry it 100 times the error will remain the same while other applications do distribute properly. This seems like there can't
be a firewall issue at play. Logs on the DP's do not show any errors.
Here is the PkgXferMgr.log
Attempt to write 750652 bytes to \\SERVER\SMS_DP$\Content_0a017ff5-3a9b-4794-ab57-e4e50ba2db79.1-F6BCF13B583E95DC14FBA81B712675EAD0A2A8D25D1C5127B3E79519897D1337 at position 394372096 SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:53:42 AM 7476 (0x1D34)
Wrote 750652 bytes to \\SERVER\SMS_DP$\Content_0a017ff5-3a9b-4794-ab57-e4e50ba2db79.1-F6BCF13B583E95DC14FBA81B712675EAD0A2A8D25D1C5127B3E79519897D1337 at position 394372096 SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:53:44 AM 7476 (0x1D34)
Sending completed [E:\SCCMContentLib\FileLib\F6BC\F6BCF13B583E95DC14FBA81B712675EAD0A2A8D25D1C5127B3E79519897D1337] SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:53:44 AM 7476 (0x1D34)
Failed to get object class SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:05 AM 7476 (0x1D34)
ExecStaticMethod failed (800706ba) SMS_DistributionPoint, AddFile SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:05 AM 7476 (0x1D34)
CSendFileAction::AddFile failed; 0x800706ba SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:05 AM 7476 (0x1D34)
Deleting remote file \\SERVER\SMS_DP$\Content_0a017ff5-3a9b-4794-ab57-e4e50ba2db79.1-F6BCF13B583E95DC14FBA81B712675EAD0A2A8D25D1C5127B3E79519897D1337 SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:06 AM 7476 (0x1D34)
CSendFileAction::SendFiles failed; 0x800706ba SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:06 AM 7476 (0x1D34)
CSendFileAction::SendFiles failed; 0x800706ba SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:06 AM 7476 (0x1D34)
Notifying pkgXferJobMgr SMS_PACKAGE_TRANSFER_MANAGER 6/4/2014 11:54:06 AM 7476 (0x1D34)0x800706ba = "The RPC server is unavailable."
This is often associated with some sort of network connectivity issue but is very hard to track down without watching the traffic because there is no way to know why traffic didn't make it.
Generally, it is also associated with WMI communication so it's possible that WMI is having issues or is being blocked on the destination system.
If this is happening sporadically on the same DP for the same content but works for other content, that would indicate to me that some type of network filter or security mechanism is in place that has for some reason decided that that content should not
be allowed. This is pure speculation though.
Do you happen to have a WAN accelerator in place or something else that is supposed to help, scan, or filter traffic? If so, this is where you should concentrate your investigation and exclude ConfigMgr traffic from interference.
Jason | http://blog.configmgrftw.com -
After updating my image this month to include patches, I've had a distribution point failing on the transfer.
The image transfers successfully to my other 11 distribution points, but is failing on one. As a note, I can distribute smaller packages (software up to 1GB) successfully, but cannot distribute images.
Image Size: 7.8GB
Free Space of DP: 18GB
PkgXferMgr.log shows the error below:
ExecStaticMethod failed (80041001) SMS_DistributionPoint, AddFile SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:56 AM 6596 (0x19C4)
CSendFileAction::AddFile failed; 0x80041001 SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:57 AM 6596 (0x19C4)
ExecStaticMethod failed (80041001) SMS_DistributionPoint, AddFile SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:57 AM 6596 (0x19C4)
CSendFileAction::AddFile failed; 0x80041001 SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:57 AM 6596 (0x19C4)
CSendFileAction::SendFiles failed; 0x80041001 SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:57 AM 6596 (0x19C4)
CSendFileAction::SendFiles failed; 0x80041001 SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:57 AM 6596 (0x19C4)
Sending failed. Failure count = 1, Restart time = 4/2/2015 9:55:57 AM Eastern Daylight Time SMS_PACKAGE_TRANSFER_MANAGER 4/2/2015 9:25:57 AM 6596 (0x19C4)Is there anything changed or unique about the problem DP? Is the DP in a secondary site? Is it at a location with a slow link?
Jeff -
When I try to send an email message I get smtp error(535) Authentication failed
I use the email from Stevens Inst. of Tech. I can receive messages,but when I try to send one I get the message: SMTP Error (535) Authentication failed. When I try the same thing in Chrome, I have no problem.
Contact your e-mail provider.
Many site issues can be caused by corrupt cookies or cache.
* Clear the Cache and
* Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
Type '''about:preferences'''<Enter> in the address bar.
* '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
* '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
If there is still a problem,
'''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
While you are in safe mode;
Type '''about:preferences#advanced'''<Enter> in the address bar.
Under '''Advanced,''' Select '''General.'''
Look for and turn off '''Use Hardware Acceleration'''.
Poke around safe web sites. Are there any problems?
Then restart.
I looked up the error on a search engine.
http://www.bing.com/search?q=SMTP%20Error%20%28535%29
Check that you are using the correct user / password. -
Failed running transaction of packages
On a new install of Unbreakable Linux Release 5 I get the following when running up2date:
up2date -u
Fetching Obsoletes list for channel: el5_x86_64_latest...
Fetching rpm headers...
Name Version Rel
tcp_wrappers 7.6 40.4.el5 i386
Testing package set / solving RPM inter-dependencies...
tcp_wrappers-7.6-40.4.el5.i ########################## Done.
Preparing ########################################### [100%]
An error has occurred:
Failed running transaction of packages:
('file /usr/include/tcpd.h from install of tcp_wrappers-7.6-40.4.el5 conflicts with file from package tcp_wrappers-7.6-40.2.1', (7, '/usr/include/tcpd.h', 0L))
See /var/log/up2date for more information
If I run the install manually I get:
file /usr/include/tcpd.h from install of tcp_wrappers-7.6-40.4.el5 conflicts with file from package tcp_wrappers-7.6-40.2.1
file /usr/lib/libwrap.a from install of tcp_wrappers-7.6-40.4.el5 conflicts with file from package tcp_wrappers-7.6-40.2.1
file /usr/lib/libwrap.so.0.7.6 from install of tcp_wrappers-7.6-40.4.el5 conflicts with file from package tcp_wrappers-7.6-40.2.1
[root@bannerprd ~]# rpm -i /var/spool/up2date/tcp_wrappers-7.6-40.4.el5.x86_64.rpm
in /var.log/up2date I get:
[Thu Dec 13 16:23:20 2007] up2date updating login info
[Thu Dec 13 16:23:20 2007] up2date logging into up2date server
[Thu Dec 13 16:23:21 2007] up2date successfully retrieved authentication token from up2date server
[Thu Dec 13 16:23:26 2007] up2date updating login info
[Thu Dec 13 16:23:26 2007] up2date logging into up2date server
[Thu Dec 13 16:23:27 2007] up2date successfully retrieved authentication token from up2date server
[Thu Dec 13 16:23:27 2007] up2date availablePackageList from network
[Thu Dec 13 16:23:29 2007] up2date allAvailablePackageList from network
[Thu Dec 13 16:23:32 2007] up2date installing packages: ['tcp_wrappers-7.6-40.4.el5']
[Thu Dec 13 16:23:34 2007] up2date Failed running transaction of packages:
('file /usr/include/tcpd.h from install of tcp_wrappers-7.6-40.4.el5 conflicts with file from package tcp_wrappers-7.6-40.2.1', (7, '/usr/include/tcpd.h', 0L))
[Thu Dec 13 16:23:34 2007] up2date File "/usr/sbin/up2date", line 1272, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 791, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1127, in batchRun
batch.run()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 94, in run
self.__installPackages()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 215, in __installPackages
self.kernelsToInstall = up2date.installPackages(self.packagesToInstall, self.rpmCallback)
File "/usr/share/rhn/up2date_client/up2date.py", line 862, in installPackages
runTransaction(ts, added, removed,rpmCallback, rollbacktrans = rollbacktrans)
File "/usr/share/rhn/up2date_client/up2date.py", line 747, in runTransaction
rpmUtils.runTransaction(ts,rpmCallback, transdir)
File "/usr/share/rhn/up2date_client/rpmUtils.py", line 520, in runTransaction
"Failed running transaction of packages: %s") % errors, deps=rc)
Any ideas????Thank you.
I think it had to do with the fact I did the HP Smat Start CD, before running up2date . A lot of issues seemed to occur after I installed that.
Thank you. -
DTEXEC does not fail when SSIS package fails
I need to run my SSIS 2012 packages through the catalog with DTEXEC. This works very well, except that if my SSIS package fails, DTEXEC does not fail. I need DTEXEC to fail, so my scheduler knows that there is an error.
I use the following command:
dtexec /ISServer "\SSISDB\MyFolder\MyProject\MyPackage.dtsx" /Ser MyServer /Par $Package::Partition;201412 /Env 5
When I check the status of the run in the Catalog, it is failed.
When I used SSIS 2008, I had no problem getting DTEXEC to fail when the packages failed.I've had the same problem, and come up with the following prototype for a SQL Script which I run in our JAMS Enterprise Scheduler. It uses SSISDB stored procedures to start the SSIS package and polls every 5 seconds to report any messages, and final
status code of the package. JAMS parameters are delimited by << >> symbols, and will need to be changed for your scheduler/batch process. I guess the script could be converted to a stored procedure. I'm also hoping it will work with SQL High
Availability groups to ensure the SSIS package runs on the server that's hosting the active database.
DECLARE @execution_id BIGINT
DECLARE @status INT= 1
DECLARE @Event_Message_id BIGINT= 0
DECLARE @Last_Event_Message_id BIGINT= 0
DECLARE @message_time DATETIME2(7)
DECLARE @message NVARCHAR(MAX)
--Create a SSIS execution for the required SSIS package and return the execution_id
EXEC [SSISDB].[catalog].[create_execution] @package_name = N'<<pPackageName>>.dtsx',
@execution_id = @execution_id OUTPUT, @folder_name = N'<<pSSISFolderName>>',
@project_name = N'<<pSSISProjectName>>', @use32bitruntime = <<p32Bit>>, @reference_id = NULL
RAISERROR('Starting SSIS package <<pPackageName>> with execution_id %I64d on server %s',0,0,@execution_id,@@SERVERNAME) WITH NOWAIT
--Set the logging level 0-none, 1-basic (recommended), 2-performance, 3-verbose
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id,
@object_type = 50, @parameter_name = N'LOGGING_LEVEL',
@parameter_value = <<pLogging_Level>>
--Start the package executing
EXEC [SSISDB].[catalog].[start_execution] @execution_id
WHILE @status IN ( 1, 2, 5, 8 ) --created (1), running (2), canceled (3), failed (4), pending (5), ended unexpectedly (6), succeeded (7), stopping (8), and completed (9).
BEGIN
WAITFOR DELAY '00:00:05'
--Get the status to see later if we've finished
SELECT @status = status
FROM SSISDB.catalog.executions
WHERE execution_id = @execution_id
--Are there any event messages since we last reported any?
DECLARE curEventMessages CURSOR FAST_FORWARD
FOR
SELECT event_message_id ,
message_time ,
message
FROM SSISDB.catalog.event_messages
WHERE operation_id = @execution_id
AND event_message_id > @Last_Event_Message_id;
OPEN curEventMessages
FETCH NEXT FROM curEventMessages INTO @Event_Message_id, @message_time,
@message
WHILE @@FETCH_STATUS = 0
BEGIN
--We've found a message, so display it - watch out for % signs in the message, they'll cause an error if we don't replace them
SET @message = CONVERT(NVARCHAR(MAX), @message_time, 113)
+ ' ' + replace(@message,'%',' percent')
RAISERROR(@message,0,0) WITH NOWAIT
SET @Last_Event_Message_id = @Event_Message_id --Make a note that we've reported this message
FETCH NEXT FROM curEventMessages INTO @Event_Message_id,
@message_time, @message
END
CLOSE curEventMessages
DEALLOCATE curEventMessages
END
--@Status indicates that package execution has finished, so let's look at the outcome, and error if there's a problem
IF @status = 7
RAISERROR('Package Succeeded',0,0)
ELSE
IF @status = 9
RAISERROR('Package completed',0,0)
ELSE
IF @status = 3
RAISERROR('Package Cancelled',16,1)
ELSE
IF @status = 4
RAISERROR('Package failed (see error message above)',16,1)
ELSE
IF @status = 6
RAISERROR('Package ended unexpectedly',16,1)
ELSE
RAISERROR('Package ended with unknown status %i',16,1,@status) -
Hi together
I cannot stage any more clients in some of our sites I get the following Error in Component Status view:
Critical SMS_DESPOOLER
Despooler.log on Site Servers says:
- CFileLibrary::OpenFile failed; 0x80070003
- CContentBundle::ExtractContentBundle failed; 0x80070003
- Failed to extract contents to the content library. 0x80070003
- Failed to extract package contents from C:\PROGRAM FILES\MICROSOFT CONFIGURATION MANAGER\INBOXES\DESPOOLR.BOX\RECEIVE\PKG71E8Z.TRY. Error = 3
- We've retried enough times on job 00001F5B, give it up.
- Despooler failed to execute the instruction, error code = 8
- but there is enough space !
- from then on nothing more but: Waiting for ready instruction file....
ooGDooHi,
0x80070003 The system cannot find the path specified.
Please try to remove the package and re-add it.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
OfficeJet 6700 Premium - Failed to find driver packages to process error
I am getting error 2147467259 failed to find driver packages to process error when trying to install a new HP 6700 Premium. I am running Windows 7 64-bit. I have tried to manually download drivers from HP site, have tried USB and wireless setups, run scrubber utility, and clean boot. Nothing seems to work and I'm at a loss. Any suggestions would be very welcome!
Hi there kray931,
Welcome to the Forums
I'm sorry to see that you are having an issue installing your 6700 Premium. I also noticed that you have already ran the scrubber utility and a clean boot which did not resolve the issue. Another suggestion I have for you would be to run Microsoft's Fix it tool which is meant to fix corrupt registry keys and helps out with problems installing/uninstalling.
Fix problems that programs cannot be installed or uninstalled
After running that tool, try to reinstall the software.
I hope this helps!
Regards,
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
Task Sequence fails on "Apply Driver Package" when PXE-booting but not with bootable media
I have an issue where my Task Sequence fails during 'Apply Driver Package' when PXE-booting but works ok when booting from CD or USB-stick. It fails withe error code 0x80070002 and when pressing F8 and checking the ipconfig there's a 169.254.x.x address.
Somehow it looses it's real ip during the process.
I'm grateful for any advice!Please enable verbose logging for Task sequence, then upload the smsts.log to Skydrive.
0x80070002 error is too generic, which cannot be used to determine the cause.
Juke Chou
TechNet Community Support -
Please Help! ERROR: Application Server failed. when Refreshing
Please help on this below issue. Thanks.
We have a requirement that using ASP.NET (C#), we need to open saved .rpt file (saved with data and the rpt file is assigned to the web page as query string) and let the users refresh themselves with latest data by clicking at refresh icon of the CrystalReportViewer. But it throws 'The Report Application Server failed' error message. What could cause this message. below is the piece of code we are using to configure the report.
private void ConfigureCrystalReports()
string reportPath = Server.MapPath("Reports
SEMS0001_UBS.rpt");
this.CrystalReportSource2.ReportDocument.Load(reportPath);
CrystalReportViewer1.Visible = false;
SetDBLogonForReport(this.CrystalReportSource2.ReportDocument);
int i = 0;
foreach (ParameterField field in this.CrystalReportSource2.ReportDocument.ParameterFields)
field.HasCurrentValue = true;
//this.CrystalReportSource2.ReportDocument.Refresh();
CrystalReportViewer1.ParameterFieldInfo = this.CrystalReportSource2.ReportDocument.ParameterFields;
CrystalReportViewer1.Visible = true;
public void SetDBLogonForReport(ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
//foreach (CrystalDecisions.Shared.IConnectionInfo connection in reportDocument.DataSourceConnections)
// connection.SetConnection(ConfigurationManager.AppSettings["DBServer"], "", ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
// connection.SetLogon(ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
//reportDocument.Database.Tables[0].ApplyLogOnInfo(tableLogonInfo);Attaching full code ... Our case is the RPT files are stored wih default parameters and saved data. We need to let users just refresh the rpt files with latest db data and overwrite with the same rpt files. But this code keep showing The application server failed mesg. when the refresh icon of viewer is clicked.
Attaching the code as it is not properly attached in my previous reply ...
=======================
Begin - aspx.cs code
=======================
using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.Shared;
using CrystalDecisions.Web;
public partial class _Default : System.Web.UI.Page
private ConnectionInfo connectionInfo = new ConnectionInfo();
protected void Page_Load(object sender, EventArgs e)
if (!IsPostBack)
//ConfigureCrystalReports();
protected void CrystalReportViewer1_Init(object sender, EventArgs e)
ConfigureCrystalReports();
private void ConfigureCrystalReports()
string reportPath = Server.MapPath(@"Reports\Report1.rpt");
this.CrystalReportSource1.ReportDocument.Load(reportPath);
CrystalReportViewer1.Visible = false;
SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
field.HasCurrentValue = true;
//this.CrystalReportSource1.ReportDocument.Refresh();
CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
CrystalReportViewer1.Visible = true;
public void ReportDocument_RefreshReport(object sender, EventArgs e)
try
SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
this.CrystalReportSource1.ReportDocument.SetDatabaseLogon("user", "passwd", "server", "");
foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
field.HasCurrentValue = true;
field.AllowCustomValues = true;
//field.EnableNullValue = true;
this.CrystalReportSource1.ReportDocument.Refresh();
this.CrystalReportSource1.ReportDocument.SaveAs(@"C:\Inetpub\wwwroot\XsiteRpt\Reports\Report1.RPT", true);
catch (Exception ex)
Msg.Text = ex.Message;
public void SetDBLogonForReport(ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
foreach (CrystalDecisions.CrystalReports.Engine.Table table in reportDocument tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
=======================
End - aspx.cs.code
=======================
=======================
Begin - Assemblies
=======================
<assemblies>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>
=======================
End - Assemblies
=======================
=======================
Begin - aspx
=======================
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Xsite.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Refresh Report</title>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Panel ID="PanelMsg" runat="server">
<br />
<asp:Label ID="Msg" runat="server" Font-Bold="False" Font-Names="Verdana" ForeColor="Navy"></asp:Label>
<br />
</asp:Panel>
<asp:Panel ID="PanelViewer" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" OnReportRefresh="ReportDocument_RefreshReport" runat="server" AutoDataBind="True"
EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ReuseParameterValuesOnRefresh="True" HasRefreshButton="True" Height="820px" OnInit="CrystalReportViewer1_Init" ReportSourceID="CrystalReportSource1" ShowAllPageIds="True" Width="1215px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
</CR:CrystalReportSource>
</asp:Panel>
</div>
</form>
</body>
</html>
=======================
End - aspx
======================= -
Memory error when executing package through SQL Server Agent.
Hi!!
I have a problem with a package (SSIS) when run on SQL Server Agent.
The job is configured
with the proxy and the account has the
required privileges. Runs perfectly
if the job runs manually, but if I let it
run on schedule I get a memory error.
Also if I run the
package through DTExec.exe or VS2008,
everything runs smoothly.
I am using SQL2008R2.
If someone has something similar happened
and have found how to fix it please i need
to know how.
Thank you.This is most likely your issue:
http://support.microsoft.com/kb/824422 -
Hi,
I have just upgrade the creative cloud CC version and upgrade the acrobat pro to XI version.
when I convert a pdf file to word format, it show the error "Save As failed to process this document. No file was created."
Actually, I have delete the image, use other pdf file and download a sample pdf file to test it. Same error is shown. I have try all the other format , like the excel, rtf, text, powerpoint, still same thing happen.
Please show me what else I can do to fix this problem.
Thx.
Alfred Lialfredadli wrote:
Please show me what else I can do to fix this problem.
Fisrt step would be to ask in the proper forum.
http://forums.adobe.com/community/acrobat
Maybe you are looking for
-
Unable To Call Active FM Through Service Call - After Adding To a TP
Hi, I am facing a weird problem. I have created a FM "Z_GENERIC_SERVICE" which is remote enabled. I have radio button for Remote Enabled and Start Immediately selected. Initially this FM/RFC was a local object (in $TMP package), created in local Func
-
Hi, I am using Oracle9i Enterprise Edition Release 9.2.0.6.0 on Unix (SUSE Linux and Solaris). I have a table which holds a blob which was loaded from a file. This file could be any of the above formats. I need to create a function which will create
-
SAP BI - Hierarchy Characteristic Node key not displaying Web Analyzer
I am using 0COMP_CODE as a characteristic node in my 0COSTCENTER hierarchy. Using BEx analyzer works fine, but in Web Analyzer the 0COMP_CODE key shows as a "#" in a query display regardless what I set the characteristic or hierarchy node to display.
-
How do I print a form I have created?
-
Error during activation of adobe non-interactive form
Hello everyone, I am trying to activate a non-interactive adobe form and am getting the below error:- "Field p_lifnr has a conversion routine(see SAP note 796755)". I have made sure that this field (which is corresponding to LFA1-lifnr) has context b