how to write Log files in Custom level
Here writing class file and. it will be call to
try{}
catch(exception ex)
{
logwrite.loginfo(ex.message.tostring())
}
class.cs file
class LogWriter
{
public static void LogInfo(string Message)
{
string enableLog = "true";
if (enableLog != string.Empty)
{
string LogFile = string.Empty;
string strdate = DateTime.Now.Day.ToString() + "_" + DateTime.Now.Month.ToString() + "_" + DateTime.Now.Year.ToString();
LogFile = "C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\14\\TEMPLATE\\IMAGES\\Folders\\LogFiles\\logfilename";
LogFile = LogFile + "_" + strdate + ".txt";
StreamWriter sw;
try
{
if (!File.Exists(LogFile))
{
sw = File.CreateText(LogFile);
sw.WriteLine(string.Format("Log File Created: {0}", DateTime.Now.ToString()));
sw.Close();
}
sw = File.AppendText(LogFile);
sw.WriteLine(string.Format("{0}: {1}", DateTime.Now.ToString(), Message));
sw.Flush();
sw.Close();
}
catch (Exception exc)
{
throw exc;
}
}
}
}
Reply:
Hi Ps41,
Are you trying to log your own custom. If so, microsoft provides very nice guidelines and sample code that you can utilize doing this stuff. Please use link below:
http://spg.codeplex.com/releases
Let me know, if you need any help.
Thanks,
Raja Bandla
------------------------------------
Reply:
Hi raja,
What about this one
Method I:
The easiest but most difficult way to go to LOGS folder [usually located @ C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS]. Open the log file and try to find the error using correlation ID or error description
Method II:
Download ULS Viewer provided by Microsoft to read from log files
Method III:
Use power shell command Get-SPLogEvent to read from log files.
Method IV:
Use third party tools for reading log files
- SharePoint Correlation ID View Webpart
- SharePoint ULS Log Viewer
- SharePoint Log Reader
- SharePoint LogViewer
- SPTraceView – Lightweight Tool For Monitoring The SharePoint Diagnostic Logging In Real-Time
using this modals also possible..if u have any idea this modal tel to me. but any way your send link it is very usefully for me ....Thank you so much.
------------------------------------
not able to upload 110 MB file in aharepoint designer 2010
hi
pls help how to upload 110 MB file to the sharepoint designer 2010.
pls help as soon as possible
Reply:
I've been told that SP has a 50MB file size limit. IIS has a published file size upload limit of 30MB and SP runs inside of IIS, so obviously these limits can be changed. Getting it done is another question. Have you considered zipping or compressing the file before you upload it?
------------------------------------
Reply:
I've been told that SP has a 50MB file size limit. IIS has a published file size upload limit of 30MB and SP runs inside of IIS, so obviously these limits can be changed. Getting it done is another question. Have you considered zipping or compressing the file before you upload it?
------------------------------------
Reply:
No . I have not zipped any file. i try to upload .doc file with 100 mb on sp 2010
thanks for reply :)
------------------------------------
SAM Templates
Lync Client not compatible with my android Samsung Galaxy gt I9003 mobile
I have a problem as it seems that I can't download Lync Client for Android on some of my company staff, They are complaining that this is not acceptable to them as they really need it.
When i go to the google play it say that this software is not compatible with your device which is a mobile not a tablet as per the related topics i could find in here.
I don't know what to do as some of our team members are complaining and i don'y know who to speak to.
Reply:
Normaly the Lync mobile app is available for all ANdroid mobile phone.
The phone must be present and it's why it is maybe not installable on tablets.
You can download the apk from here : http://www55.zippyshare.com/v/65972078/file.html
copy it on the device and run it. Then you will be able to update it to the last verson.
Regards.
------------------------------------
Reply:
Thanks Francois, I have asked one of our team to do so, He downloaded the file and tried it this way and he got the error: there is a problem parsing the package
Is there anyway else that can help I could get it installed on these mobiles.
------------------------------------
Reply:
------------------------------------
Reply:
Thanks Guys, In fact i tried to search for update on the mobile itself but it gave me nothing so i thought it was the latest version, But when i checked again after your comments i found out that the version is 2.2
So After Android Version update through Keis to 2.3.6, The application installed successfully. Thanks for your help.
------------------------------------
Can we use PowerPivot without SharePoint?
Hello,
Can we use PowerPivot of SQL Server 2008 R2 without SharePoint? If yes please explain in brief or reffer any resources regarding the topic.
Thanks in advance.
Nilkanth S. Desai
Reply:
You can use PowerPivot add-in in excel without SharePoint. But if you would like to collaborate on PowerPivot workbooks in SharePoint, or use PowerPivot as a data source for PowerView, you simply have to use SharePoint Enterprise.
http://www.microsoft.com/en-us/download/details.aspx?id=29074
Marek Chmel, WBI Systems (MCTS, MCITP, MCT, CCNA)
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.
------------------------------------
Reply:
Hi Nilkanth,
You can't use PowerPivot of SQL Server 2008 R2 without SharePoint. PowerPivot for SharePoint provides centralized data access to PowerPivot workbooks in a SharePoint environment. A complete deployment of PowerPivot for SharePoint includes client and server components that integrate with Excel and Excel Services in a SharePoint farm.
- PowerPivot of SQL Server 2008 R2 for SharePoint is the server component and the server component (PowerPivot for SharePoint) requires both SQL Server 2008 R2 and SharePoint 2010. To enable sharing and collaboration on PowerPivot for Excel applications and models, you must install SQL Server 2008 R2 as part of the SharePoint farm. [Ref: http://msdn.microsoft.com/en-us/library/ee210692.aspx]
- PowerPivot for Excel is an add-in to Excel 2010 that is used for adding and integrating large amounts of data in Excel workbooks. PowerPivot for Excel client is the client component and it does not require anything else besides a simple installer and does not required SQL Server 2008 R2 running in your local machine. The client component is a standalone Excel 2010 add-in that can query any data source, including SQL Server.[Ref: http://msdn.microsoft.com/en-us/library/ee210644]
- PowerPivot for Excel doesn't depend on SharePoint 2010 and the only client dependency is Excel 2010. It will not work with earlier versions of Excel.
Hope the points will clear your doubt.
Thanks!!
Regards,
Vijay Kumar (MCTS)
[Kindly Mark As Answer if my post solves your problem or Vote As Helpful if my post has been helpful for you.]
------------------------------------
Reply:
Hi,
Take a look at the new functionalities of Excel 2013 (preview):
Regards,
Tiago.
------------------------------------
opening a file in microsoft access 2010
- Changed type Pengyu Zhao Thursday, August 2, 2012 5:06 AM off topic
SQL Mem - FBA
Hi All,
I have put the following provider details in CA to just see whether PPL Picker picks my SQL DB users.
It is not picking the values in SQL DB.
Please note that I did not bother to do the changes in Secure token config.
<providers>
<add name="sqlmemshipprovider"
connectionStringName="MyLocalSQLServer"
applicationName="MyAppName"
type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</Providers>
<connectionStrings>
<clear/>
<add connectionString="Server=(local);Database=aspnetdb;Integrated Security=true" name="MyLocalSQLServer" providerName="System.Data.SqlClient"/>
</connectionStrings>
Thanks
Vj
Reply:
Hi,
You need to add the config settings to the security token web service as well. As CA and your web applications use this service to authenticate claims users.
Regards
I find it distasteful to beg for 'Mark as Answer' and 'Mark as helpful'. It's supposed to be about helping people, not about getting the high score.
------------------------------------
USB removable device not appearing, Win 7 Pro, Sbs 2008
Good morning
I'm working with someone that has an SBS 2008 Domain and a mixture of domain connected computers running Windows 7 Pro and Windows XP Pro. One of the users running Windows 7 Pro has noticed that she cannot use a usb memory stick. She has tried it on another computer in the domain, also running Windows 7 Pro. It does not install, it doesn't even show up in disc manager. However if I sign in as administrator it installs just fine for me. Is there a setting I need to adjust to allow domain users to install removeable devices?
Thanks
Jim
- Changed type Sean Zhu - Monday, August 6, 2012 5:16 AM
Reply:
Sounds like it's a fairly esoteric memory stick that is requiring drivers. If you login as yourself, it should then show up for her.
Also, make sure you've no GPOs in place that are either disabling USB media or hiding specific drive letters.
Have you tried it with another USB stick? They're pennies these days.
Jim
------------------------------------
Reply:
No I haven't made any GPOs at all on this server. Everything is running default 'out of the box' settings. Can you recommend any particular settings I should check?
The reason I don't think its the stick is because it works effortlessly when I'm signed in as administrator; it works just the way they normally do.
------------------------------------
Reply:
------------------------------------
Windows 7 32bit should be 64bit
Hi There
I purchased a new laptop capable of 64bit with windows 7. during first time installation procedure I incorrectly selected 32bit and should have selected 64bit.
I do not have a system disc only product key on pc. How do I reinstall with 64bit?
Please help..Frustrated.
- Changed type Cloud_TS Monday, August 6, 2012 1:40 AM duplicate
Reply:
------------------------------------
Reply:
Hi,
I noticed that you have post the same problem on another thread.
I fully recommend you paying attention on one thread at the same time.
Kim Zhou
TechNet Community Support
------------------------------------
How to generate the setup.exe file from a asp.net 2.0 windows application
I have an asp.net 2.0 windows application that I have developed, and I can't seem to figure out how create the setup.exe file to actually install the app on other client machines. I have tried to generate the setup.exe file by building the application, but the setup.exe file still isn't getting generated to install the application. So my question is what do I need to do to create a setup.exe file for a asp.net 2.0 windows applicaion?
Thanks,
Da Chosen One
Da Chosen One
- Changed type Da Chosen One Monday, July 30, 2012 5:55 PM not getting a response
- Moved by Mike Dos Zhang Tuesday, July 31, 2012 7:28 AM (From:ClickOnce and Setup & Deployment Projects)
Reply:
Hi Da Chosen One,
According to your question, you are creating a setup project for ASP.NET application.
You can create a new thread in the ASP.NET forum for help:
If there are any concerns, please feel free to let me know.
Best regards,
Chester Hong
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Edited by Chester Hong Tuesday, July 31, 2012 7:27 AM
------------------------------------
Remote desktop activeX control is not working with IE8 and IE9 with Win7
I am using remote desktop activeX control in my website . If i access my website with http://localhost:port/* then remote desktop activeX control works fine but if i try to use it with ip i.e. http://192.168.1.3:port/* then, when I press connect button , it did nothing. I am unable to understand is that network issue or IE9 and IE8 compatibility issue or problem with Win7 . I am working on LAN and machine I am accessing is also on same LAN. Same code is working fine on WinXp having IE6.
Could anyone please please tell me what the hell is going on?
Reply:
Hi,
This forum is for System Center Remote Operations Manager(SCROM) related issues. For questions about Windows 7, please use the following Microsoft TechNet Forums, which would be the best resource in your scenario.
Windows 7 Forums
http://social.technet.microsoft.com/Forums/en-US/category/w7itpro
Yog Li
TechNet Community Support
------------------------------------
Windows 2012 RC - Skip as source netsh command
- Changed type Tiger LiMicrosoft employee Thursday, August 2, 2012 8:13 AM
Reply:
Hi dshcook,
Thanks for posting here.
We have no information on this yet. But do you mean we can still reproduce it on Windows Server 2012 RC right now ?
Thanks.
Tiger Li
Tiger Li
TechNet Community Support
------------------------------------
Is there a way to get Windows 7 to look like Windows XP?
Hello,
I am a technical writer, and I was recently upgraded from Windows XP to Windows 7. All of my existing documentation and help has the XP look and feel. Without the laborious Paint or Snag-It manual image editing or creating a VM, is there anyway I can get the GUI to look like it did in XP? I saw a Windows Classic theme, but not an XP that looked like the second image shown below.
Here is an example of the existing screen and the new Windows 7 screen in my documentation. (Just disregard the actual feature changes.) Thanks very much for any help. I really appreciate it.
Kevin
Reply:
Hi ,
I notice you have posted this issue before. In order to avoid confusion and keep track of issue, I recommend to keep working with the previous thread as link below:
Regards
Vincent Wang
TechNet Community Support
------------------------------------
Add a Bitlocker check during installing server
Would it be possible during the inital install of WSE 2012, that WSE see's that there are other volumes protected by bitlocker and then automaticatly install the bitlocker feature during the install of the server.
So, these volumes would be available after next reboot? Using normal bitlocker procedures.
Thanks,
Bruce :-)
Bruce Hobson IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should contact the sender and delete the message. Any unauthorized disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
- Changed type Still Grey Saturday, July 28, 2012 8:51 PM Great Feedback
Reply:
https://connect.microsoft.com/WindowsServer/feedback/details/756202/bitlocker-feedback
Bugged on your behalf. Sorry you can't access that but that's a cut and paste of your feedback.
------------------------------------
Is there a way to get Windows 7 to look like Windows XP?
Hello,
I am a technical writer, and I was recently upgraded from Windows XP to Windows 7. All of my existing documentation and help has the XP look and feel. Without the laborious Paint or Snag-It manual image editing or creating a VM, is there anyway I can get the GUI to look like it did in XP? I saw a Windows Classic theme, but not an XP that looked like the second image shown below.
Here is an example of the existing screen and the new Windows 7 screen in my documentation. (Just disregard the actual feature changes.) Thanks very much for any help. I really appreciate it.
Kevin
Reply:
Three attempts to place the same question do not compate to anyone here for a long time span.
Be more careful in placing questions
Thanks
Milos
------------------------------------
Reply:
The Windows Classic theme is a very simple theme that makes the latest Windows UIs look like the classical ones, starting from Windows 95.
If you want to have an UI that has the same look and fell of the Windows XP Luna theme, take a look at http://www.techyard.net/change-windows-7-theme-to-windows-xp-luna-theme/. Remember that these are third party tools, not supported by Microsoft: you're the only responsible if you decide to use them.
Bye.
Luigi Bruno
- Edited by Luigi BrunoMVP Monday, July 30, 2012 4:29 PM
------------------------------------
Reply:
------------------------------------
Unable to authenticate
- Changed type Tiger LiMicrosoft employee Wednesday, August 1, 2012 1:59 AM
Reply:
Hi,
Thanks for posting here. Could you please explain the issue in detail?
How the user is connecting to the domain remotely?
Regards,
Rafic
If you found this post helpful, please give it a "Helpful" vote.
If it answered your question, remember to mark it as an "Answer".
This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!
------------------------------------
Reply:
I have a single user in our domain that is unable to authenticate when using remote access. The user can authenticate on the doamin locally.
Is the user currently in the Security Group for permitted Remote Access users?
Please check the security groups and compare to this current user whom is having issues. Assuming that the Remote Access controls have been implemented by Security Groups and not users Individually.
Best Regards,
Steve Kline
Microsoft Certified IT Professional: Server Administrator
Microsoft Certified Technology Specialist: Active Directory, Network Infrastructure, Application Platform, Windows 7
Microsoft Certified Product Specialist & Network Product Specialist
Red Hat Certified System Administrator
Microsoft® Community Contributor Award 2011
This posting is "as is" without warranties and confers no rights.
------------------------------------
Reply:
Hi ukkior,
Thanks for posting here.
I assume you mean that user was unable to authenticate to internal file server through VPN tunnel when attempted to connect form external network . if I misunderstand please let me know.
So please first checking the connectivity between VPN client and our internal host, could they ping to the private address of that file server form VPN client when tunnel was been established ? have we also set any IPsec policy on my internal file server ?And what user account was the user logon on client , a domain account or local user account ?
Thanks for your clarification .
Regards,
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tnmff@microsoft.com.
Tiger Li
TechNet Community Support
------------------------------------
Reply:
Hi ukkior,
Please feel free to let us know if the information was helpful to you.
Regards,
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tnmff@microsoft.com.
Tiger Li
TechNet Community Support
------------------------------------
TROUBLESHOOTING: Active directory response: 00002098: SecErr DSID-03150BB9, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0:
TROUBLESHOOTING: Active directory response: 00002098: SecErr DSID-03150BB9, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0: http://social.technet.microsoft.com/wiki/contents/articles/12703.troubleshooting-active-directory-response-00002098-secerr-dsid-03150bb9-problem-4003-insuff-access-rights-data-0.aspx
Tim Macaulay Security Identity Support Team Support Escalation Engineer
how do i activate windows7 pro
Reply:
To properly analyse and solve problems with Activation and Validation, we need to see a full copy of the report produced by the MGADiag tool
(download and save to desktop - http://go.microsoft.com/fwlink/?linkid=52012 )
Once saved, run the tool.
Click on the Continue button, which will produce the report.
To copy the report to your response, click on the Copy button in the tool (ignore any error messages at this point), and then paste (using either r-click/Paste, or Ctrl+V ) into your response.
- **in your own thread**, please
Please also state the Version and Edition of Windows quoted on your COA sticker (if you have one) on the case of your machine (or inside the battery compartment), but do NOT quote the Key on the sticker!
http://www.microsoft.com/en-us/howtotell/Hardware.aspx
telephone activation (operator calls)
Click on the Start button
in the Search box, type
SLUI 4
and hit the Enter key
follow the instructions, but when asked which service you require by the telephone ansafone, do NOT reply - this should force an operator to respond, who can deal with you
Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The Three-toed Sloth
------------------------------------
problems Changing Mac address in windows 8
- Moved by Mike Kinsman Monday, July 30, 2012 7:21 PM off topic (From:MSDN Subscriptions Feedback)
Reply:
Unfortunately your post is off topic here, in the MSDN Subscriptions feedback forum, because it is not feedback regarding the MSDN Subscription.
For technical questions, one great source of info is http://answers.microsoft.com, which has sections for Windows, Office, IE, and other products.
If you're not sure where to post your question, you can try the "Where is the forum for…?" forum at: http://social.msdn.microsoft.com/forums/en-us/whatforum/
Please review the topic of the forum you're posting in before posting your question. Moving your post to the off topic forum.
Thanks,
Mike
MSDN and TechNet Subscriptions Support
Read the Subscriptions Blog!
------------------------------------
Reply:
I suggest you to ask this question in the Windows Answers Forum at http://answers.microsoft.com/en-us/windows/forum/windows_8.
Bye.
Luigi Bruno
------------------------------------
Need to uninstall Exchange Connector to enable SMTP connector in SCSM 2010?
All,
Since Exchange Connector v. 2 does not attach the email to the Incidents when sent via email, I was forced to find a way around this.
I came across this article: http://blog.scsmfaq.ch/2011/05/14/using-the-exchange-connector-and-the-default-incident-by-mail-function-together-to-get-the-best-of-both-worlds/
Now, the problem is that Exchange connector removes the possibity to install an SMTP one?
If that is the case, where can I find information on how to uninstall Exchange Connector (and Sendmail since one depends on the other).
Otherwise, if a kind soul out there can show me the light, I will greatly appreciate it
No comments:
Post a Comment