|
Hi All,
I have a windows service which is used in integration of ASP.Net web application, when I dont put any database access methods or some other external dll reference methods it executes fine, its writing in to a log file which I put to debug.
But when I put any database access methods or some other external dll reference methods or web or wcf service methods in it, its giving me following exception. Can anybody please help me in this regards. Its bit urgent please, I will also google in this meantime. Any kind of help would be appreciated.
Exception
---------------------------
Services
---------------------------
The Status Message Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
---------------------------
OK
---------------------------
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
indian143 wrote: Its bit urgent please
It's not professional to state urgency on a forum where people help voluntarily.
indian143 wrote: The Status Message Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
Is your service running on a tight loop? If not, the main thread finished execution which will exit the process. You have to do something like,
while(true)
{
} Can't you debug the code and find out why it is not working as expected? You can put Debugger.Launch on the service start up method to attach a debugger.
BTW, you are on a wrong discussion board.
Best wishes,
Navaneeth
|
|
|
|
|
Possibility #1 - There is an exception in the start event which is stopping the service.
Possibility #2 - You have not implemented a timer, hence when the start event completes its execution, service has nothing to do.
Not enough information is provided to give a concrete solution.
Found my answer helpful? Then vote for it. "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Cegonsoft malleshwaram is one of the leading Software Development Company which has three independent divisions:
i) Software Training
ii) Software Development (www.i3ITPEOPLE.com)
iii) HR Consultancy
Final Year Projects
We are providing final year projects based on System side, Web application and
IEEE projects.
System side Application in java (Swing and Applets)
Web Application in different technologies
J2EE with advanced concepts
ASP.net
PHP/MYSQL with Ajax
IEEE projects in different Transaction
IEEE in Networking
IEEE in Neural Network
IEEE in Distributed Computing
IEEE in Mobile Computing
IEEE in Software Engineering
IEEE in Image Processing
For more details contact:
hema govindaraju
9980040086
hemag@cegonsoft.net
Feel free to visit our website www.cegonsoft.com
|
|
|
|
|
These forums are for technical questions, please do not use them for advertising.
I must get a clever new signature for 2011.
|
|
|
|
|
If people are "purchasing" pre-built final year projects, no wonder there are so many absolutely useless young developers out there.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
I need to allow access to particular users for some forms lying in the same folder.
I don't know how to do it using builtin ASP.NET Security setup. because new access rule is showing only folder not files (Forms.aspx).
Regrads
Asif Rehman
|
|
|
|
|
Asif Rehman wrote: because new access rule is showing only folder not files (Forms.aspx)
can you clarify the issue in more details? Are you using form authentication?If so you can allow user to access a file under secured folder specifying the role.
|
|
|
|
|
can you clarify the issue in more details? Are you using form authentication?If so you can allow user to access a file under secured folder specifying the role.
I'm using Form authentication using builtin AWT (security tool). I want to give access to different users under single folder. e.g.
Folder A
-- file1.aspx allowed to userA only
-- file2.aspx allowed to userA,B only
-- file3.aspx allowed to userC only
Now builtin tool allow folder-based authorization. I don't want to move every file to separate folder as in future authorization may change.
How can I put authorization form by form using built-in tool. If its not possible, then how to do it manually or programmatically.
Hope I've clarified my point.
Regards
Asif Rehman
|
|
|
|
|
hi,
is it possible to bind a dropdownlist in gridview when user click on the row.
i have a scenario that the gridview will load a large amount of data. then when the user
select on the dropdown, it takes 10-20 seconds to load. I was thinking that it would be better to bind the dropdownlist when the row is selected or when the dropdownlist is click on the specific row. after the user select the value of dropdownlist on the specific row, gridview automatically re-bind.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Sir, I think you should use an asynchronous callback technique (implement <a target="_blabk" href="http://msdn.microsoft.com/en-us/library/system.web.ui.icallbackeventhandler.aspx" >System.Web.UI.ICallbackEventHandler</a> )
in RowDataBound event add the following:
string args = "some thing unique";
this.DropDownList1.Attributes.Add("onclick", "javascript:DoServerCall(args);");
100
Help people,so poeple can help you.
|
|
|
|
|
Hi All,
I have a windows service, which integrates with ASP.Net application, when I am trying to install the service using following command
"installutil /account=LocalSystem /user=xxxxx /password=xxxxxatgmail StatusMessageService.exe" its giving following error. I am unable to find the reason for this any help would be appreciate.
"An exception occurred during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: Access is denied."
My aacount credentials are correct still why is it giving this exception. Can anybody please help me in this, its little urgent. I am trying my best to do ti as well but, one shot from the other side also. Please help me, thanks.
My Service is written as below which was working before and was writing in to the file, but now when I am trying to install again its throwing exception above.
protected override void OnStart(string[] args)
{
AddToFile("Starting Service :: Time : " + DateTime.Now.ToString());
timer.Elapsed += new ElapsedEventHandler(OnElapsedTime);
timer.Interval = 1000;
timer.Enabled = true;
}
protected override void OnStop()
{
timer.Enabled = false;
AddToFile("Stopping Service");
}
private void OnElapsedTime(object source, ElapsedEventArgs e)
{
AddToFile(" Another entry");
}
private void AddToFile(string contents)
{
FileStream fs = new
FileStream(@"D:\Test\timerserv.txt", FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
sw.BaseStream.Seek(0, SeekOrigin.End);
sw.WriteLine(contents);
sw.Flush();
sw.Close();
}
In the log file it is giving me the following exception
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.exe assembly's progress.
The file is located at D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.InstallLog.
An exception occurred during the Install phase.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
The Rollback phase of the installation is beginning.
See the contents of the log file for the D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.exe assembly's progress.
The file is located at D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.InstallLog.
The Rollback phase completed successfully.
The transacted install has completed.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
modified on Thursday, February 24, 2011 6:50 PM
|
|
|
|
|
indian143 wrote: "An exception occurred during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: Access is denied."
Looks like you need elevated privileges to perform this operation. Go to command prompt and type runas /noprofile /user:localmachinename\administrator cmd which will open up a command prompt for administrator. Try installutil from there.
Best wishes,
Navaneeth
|
|
|
|
|
Hi Navaneeth,
Even if I did it, its giving me the following exception, can you please help in in this. The Service is not there, its not there but the message is stating that service already exists.
Is there any where service may be hidden.
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.exe assembly's progress.
The file is located at D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.InstallLog.
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The specified service already exists
The Rollback phase of the installation is beginning.
See the contents of the log file for the D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.exe assembly's progress.
The file is located at D:\StatusMessageService\StatusMessageService\bin\Debug\StatusMessageService.InstallLog.
The Rollback phase completed successfully.
The transacted install has completed.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Looks like it is not properly cleaned up after the last failure. Can you try sc delete service-name , restart the machine and install again? If that didn't work, you might have to edit some registry entries to remove from the services list.
Best wishes,
Navaneeth
|
|
|
|
|
I am having trouble getting a logged in username to use on an intranet site. I use HttpContext.Current.Request.ServerVariables["LOGON_USER"] I Get "Network Service". If I run the application in debug locally I get the Domain\username but not when I run it on our intranet. I think its related about web.config and IIS 7 settings.
How can I fix it?
Thanks...
|
|
|
|
|
Try using HttpContext.Current.User.Identity.Name
|
|
|
|
|
or
System.Web.HttpContext.Current.Request.LogonUserIdentity.Name;
if you want the SAMAccountName
or
public string Whoami()
{
string str;
int idx;
str = System.Web.HttpContext.Current.Request.LogonUserIdentity.Name;
idx = str.IndexOf("\\");
return str.Substring(idx + 1);
}
if you don't want the Domain in there.
..and water fell from the sky like rain.
|
|
|
|
|
I have a huge tree that is made in visual studio 2005 Windows application, it is made using the designer, and I would like to take this tree to an ASP.Net application. I tried copy paste the control but it didn't work lol...
So is their a way i can move this tree from the windows application to the web application? Or I have to redesign it from zero?
Thank you in Advance
|
|
|
|
|
The treeview control in a Windows application is located in the System.Windows.Forms namespace. In an ASP.NET application, you need to use the treeview control in the System.Web.UI.WebControls namespace. As these are two different controls, you will have to re-create the treview from scratch in your ASP.NET application.
|
|
|
|
|
No Dear, web is very deferent environment. it's controls visualization is based on rendering them to HTML tags.
you can just use the TreeView control available in the 'Navigation' tab in the Toolbox.
if you nead to build your custom Controls you can inhert from System.Web.UI.WebControls.WebControl .
for anyy further assist please contact me on ali.alomairi@hotmail.com
100
Help people,so poeple can help you.
|
|
|
|
|
I required sourcecode for online admission system.
|
|
|
|
|
sunny mehra wrote: I required sourcecode for online admission system
Then, this is not the right forum for you.
Search in CodePlex or google. I m sure you will get many similar applications.
If you are facing some issue during your development, ask for help.
|
|
|
|
|
This is either homework or you've taken on a job for which you are woefully lacking in ability. Either way, this is the wrong place to ask.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
This is wrong place to ask. Plus try Google first!
|
|
|
|