We have created a window service using outlook redemption (to read mail and save to DB) but it is giving following error, as per our log file, though at development studio environment when we debug it all works well.
Source: Error Message:
Description: Error in IMsgServiceAdmin::ConfigureMsgService: MAPI_E_DISK_ERROR
ulVersion: 0
Error: The file D:\Manoj Data\Mails\Manoj.pst cannot be opened.
Component: Personal Folders
ulLowLevelError: 0
ulContext: 268828930
Please help.
Thanks,
Rahul
Does PST file actually exist?
Is Outlook running (and accessing that PST file) at the time your service is running?
Related
I have migrated an application that was running on Windows Server 2008 to one on Windows Server 2012.
It is a desktop application that makes many calls to the server's .asp scripts, and from them calls are made to stored procedures in SQL Server.
The program that makes the calls from the client computer, is a DLL made in Delphi 7.
This mount was working properly on the computer on Windows Server 2008.
But now I have come to the conclusion that scrips are not executed in .asp since I do not receive a response from the server, although I see in the .log file they are called and with the correct parameters.
The following lines are from the .log file
2018-11-27 15:51:20 nn.nnn.nnn.223 GET /soporte/lnk_mnto.asp COD=MFM0010010LRN&APP=MF&cachedisable=FNFAJDNHFIDLELA 80 - nn.nnn.nnn.nnn HTTP/1.0 Mozilla/4.0+(compatible;+Synapse) - www.ikutgroup.com 301 0 0 569 205 62
2018-11-27 15:52:36 nn.nnn.nn.223 GET /soporte/lnk_mnto.asp COD=MNF5369168SB7&APP=MN&cachedisable=IHOLGLANIEKMBJE 80 - 89.128.30.175 HTTP/1.0 Mozilla/4.0+(compatible;+Synapse) - www.ikutgroup.com 301 0 0 569 205 46
As you can see, COD and APP are the parameters that the script lnk_mnto.asp needs, and the call from the Delphi DLL is registered in the log file, but the DLL doesn't receive an answer.
But, if I call the asp script directly from the browser through this call:
http://xxxxxxxx.com/soporte/lnk_mnto.asp?COD=MNF5369168SB7&APP=MN&cachedisable=HNIKNFNMEJMFBDH
I receive the correct answer.
I know that in the first case, the script is not executed, because I added in the first instructions of it the recording of a line in the database, and this does not occur. Instead, when the script is called from the browser, the row is recorded in the table of the database.
I think it's a problem of permissions, but I have no idea what I should look at to correct it.
Do you have any ideas that allow me to try to solve my problem?
No. Is the dll from the Client computer who call to the .asp script in the Server.
But in the end I made a new test program in Delphi, copying the instructions that call the script in .ASP and when I ran it I saw that it returned an error of the type:
<.head><.title>Document Moved<./title><./head>
<.body><.h1>Object Moved<./h1>This document may be found <.a HREF="http://myweb.com/soporte/lnk_mnto?COD=MNF873455SB7&APP=MN&cachedisable=GNDECGBLJBFHBHA">here<./a>
Then I looked for information on the web about this error message and I found the following page that has solved my problem
https://network.convergenceservices.in/forum/68-plesk-panel-hosting/3711-document-moved-or-object-moved-error.html
In short, it says that in the Plesk configuration of the page, you have to put 'none' to the question: 'Preferred domain'.
Login into the plesk control Panel
Click on Websites & Domains
Click on Hosting Settings
Select the “None” drop down list box from “Preferred domain”
Click on OK
Now my problem is solved.
Thank you very much to all.
I'm using Console.WriteLine in a Guest Executable service.
I enabled ConsoleRedirection as instructed here and am able to see logs locally.
When I log into the Cloud VM I see the log files, but they are empty.
Any ideas?
Thanks,
Jon
It is possible that the process is still running and has not flushed the buffers?
When trying to configure the TFS 2010 backup using the TFS Power Tools I kept running into teh following error message:
Account TFS\tfsadmin failed to create backups using path \\tfs-xxxxxxx.local\TFSBackups
The strange thin is that TFS\TFSAdmin has full permissions on both share and file system and that the share path doesn't contain any spaces (thanks for MSDN forums for pointing that out).
I tried backing up through the SQL Server Management Studio, and sure, there the backups fail too.
It turns out that while the backup job is started using the account specified in the Create Backup Wizard of the TFS Power Tools, SQL Server will try to write the files to the share using its own service account.
So in addition to whomever needs access to the share, you need to add the service account running SQL Server to that share as well. In this case it was running under NETWORK SERVICE, so adding MACHINENAME$ to the share's list of permitted users did wonders.
I have created a C# service that:
- Picks up and opens a local text file
- Opens an Excel-file used as template (saved locally)
- Fills in the data from the text file in the excel file
- Saves the Excel file to a network folder.
The service runs using a domain account (I cannot give the local system account rights on the network from our network admin...). When the service tries to open the template, I get an access denied error:
Microsoft Excel cannot access the file 'C:\BloxVacation\Template\BloxTemplate.xlsm'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
The file does exist and the path is correct.
The file is not used by another user or program.
I try to OPEN the workbook (no other workbook is open), not SAVE it.
I have received the same error using the system account. The reason for this is that, when using interopservices, the system account needs a desktop folder (bug in Windows 7: http://forums.asp.net/t/1585488.aspx).
C:\Windows\System32\config\systemprofile\Desktop
C:\Windows\SysWOW64\config\systemprofile\Desktop
Create those 2 files and the error disappears for the system account.
I have given the domain user rights to those folders and the error disappears as well however, the service hangs on the code line where I open the excel file. When I execute the exact same code with the system account, the code execute well (Note: I save the file locally).
objXL.Workbooks.Open(BloxVacationService.ExcelTemplateFilePath)
Has anybody an idea how to solve this issue without having to rewrite the entire service in OpenXML? Thank you very much in advance.
If you have done all the things described in the question and it still doesn't work (as it was with me), the answer is pretty simple:
Make the domain user local admin on the machine that runs the service. It solved the problem.
The context is OLAP cube development. After configuring my project though SQL Server Data Tools (SSDT, the new BIDS) I am unable to deploy the project.
Every time the deployment process is started I get an error like the one below:
File system error: The following error occurred while opening the file '\\?\D:\[...]\database\mssql\tmpdb\MDTempStore_1864_9_no8wd.tmp': Access is denied.
(The [...] denotes some part of the path I ommited for brievty)
I always get the same error, indicating that some .tmp file could not be accessed.
My environment:
OS: Windows Server 2008 R2 Standard, SP1
SQL Server: SQL Server 2012 (v11.0.2100.60), running on localhost
What I tried:
I have the File System access rights for the folder in question (at some point I even tried with Admin privileges on the machine, didn't help)
I tried to deactivate the anti-virus in case it was performing on-access-scan (still didn't help)
Attempts to deploy/process individual dimensions causes the same problem
Deploying dimensions or cubes programmatically through SMO (instead of SSDT) runs into the same problem
Deploying DataSource objects as well as DataSourceView objects works fine
Maybe some of you faced similiar issues or have further suggestions/ideas?
Thanks for you help!
So, I finally figured it out.
As expected it was a permission issue, but despite the error message hinting at some missing file system permissions, the cause of the problem was the user I configured the Data Source with.
The SQL User I specified was given the roles
db_datareader
db_datawriter
db_ddladmin
on the source database but this doesn't seem to be enough. When I tried to give him the server role sysadmin it started working.
This is probably overkill, one could further fine-tune the role assignment but for now it also works that way.
Just a suggestion here - have you tried running SSDT as an administrator? That is, right-click on SSDT and click Run As Administrator. Then try to deploy your project. It definitely sounds like a permissions issue.
Exact reason is SSAS Service user does not have an access to the folders that are specified in SSAS configuration (i.e error states it is Temp Folder). I think it is not directly related with SQL Server because it is just a file access error. Error is thrown before it reaches SQL Server.
Give full permission to SSAS Service User for those folders.
Regards
Onur