|
I have created a Windows Service. In the OnStart I added basic logging. The following is written to the log - "started on " + DateTime.Now.
I updated the code to pull from App.config and I commented out the original hard-coded code.
I uninstalled, rebuilt and reinstalled. Weird thing is - the old "started on" text is still getting written to the log even though I've commented out in the code. I changed the text in App.config to something completely different.
So - How is this possible and what might I be missing?
|
|
|
|
|
Clear cache... delete bin.. clean solution... restart system!
Last one... Reset IIS!
|
|
|
|
|
Maybe there's something wrong with the way I'm installing/uninstalling/reinstalling?
I have a solution with a Windows Service and an associated Setup project.
This is at least partially right because it lets me install/uninstall/reinstall the service.
One interesting thing though - I have to restart my computer before I can reinstall. Is this a bug with Microsoft or is there a workaround?
It looks like only the code that I wrote when I created the initial setup project is getting installed.
My assumption was that the setup project maintained a reference to the windows service that I created in the solution. So usually in .NET solutions when you add a reference to an external project any changes to that external project are automatically made available to the referring project in the solution.
Do service/setup solutions work the same way? I was assuming that they did. This is the only reason I can think of why my code updates don't seem to be getting applied.
|
|
|
|
|
clear the textbox where the data is displayed at page loading. hope this helps.
|
|
|
|
|
does the dataview will remove the null value columns, i faced when i am assigning datatable to view?
|
|
|
|
|
Your question is not complete. What are your trying to do and whats happening?
Dataview wouldn't do anything by its own. Read: DataView Class[^]
|
|
|
|
|
I've written a Windows Service and I'm trying to get it to auto-start after install.
The "Startup Type" is "Automatic" but this only starts the service after a computer restart.
I've found a few posts that recommend the following code:
public ProjectInstaller()
{
InitializeComponent();
this.AfterInstall += new InstallEventHandler(ProjectInstaller_AfterInstall);
}
void ProjectInstaller_AfterInstall(object sender, InstallEventArgs e)
{
ServiceController sc = new ServiceController("TestWindowsService");
sc.Start();
}
However, this code doesn't appear to be starting the service for me after install. Any suggestions on what might be missing?
|
|
|
|
|
I think you need to initiate another event:
this.Committed += new InstallEventHandler(ServiceInstaller_Committed);
void ServiceInstaller_Committed(object sender, InstallEventArgs e)
{
var controller = new ServiceController(strServiceName);
controller.Start();
}
Have a look here: Auto Start Windows Service After Installation[^]
|
|
|
|
|
I have little problem. I am trying to get id of cell and put value in this cell with this js function:
<br />
function fill_table(grid){<br />
var str=grid.toString();<br />
str=str.replace(/\n/g," ");<br />
var ar_grid=str.split(" ");<br />
var c=0;<br />
for(var i = 0; i < 81; i++)<br />
{ <br />
c=i+1;<br />
ar_grid[i]=ar_grid[i].replace(/0/gi,"");<br />
document.getElementById('cell_'+c).value=ar_grid[i]; <br />
}<br />
}<br />
This works fine with html table but how to do this with asp table.
I addded ID to each cell like this:
<br />
TableCell c=new TableCell();<br />
c.Attributes["ID"]= "cell_" + st;
|
|
|
|
|
Aljaz111 wrote: c.Attributes["ID"]= "cell_" + st;
Why doing this? Why not... c.ID = "cell_" + st;
|
|
|
|
|
for set ID by asp table, you use as below
TableCell c=new TableCell();
c.ID = "cell_" + st;
Thanks,
Amit
With Regards,
Amit Patel
91-9328488961
India
|
|
|
|
|
stil with adding ID to cell like this doesn't work. Does asp:table need to postback to get filled with values from javascript?
|
|
|
|
|
Hello, This is Vikash Gohil.
I have developed a web Application and Now I want to add functionality of evaluation period in my web app, so that I can give my application as Demo to customers.
Can anyone please suggest me some functionality for this or some guidelines how to achieve this.
Any information would be greatly appreciated.
Thanks in Advance, Awaiting a reply soon.
|
|
|
|
|
See, There are various ways to do this.One simple way,have a file and store the starting time of your application and store that file and always check the time at starting of your application and if is older tham the spcified period then show a message. Store the data in encrypted format.
Another way, make a entry in registry at very first time check the time each time user starts the application, accordingly show the message
|
|
|
|
|
Hello, Brij.
I was also thinking of using registry but is it possible to read registry values from a web page.
Bcoz i think this will create security issues.
Can you guide me in this direction with some info.
If it is possible to read/write registry from web page, can u provide some link to do this.
Thanks in advance, awaiting a reply soon.
Again thanks for the reply.
|
|
|
|
|
VikashGohil wrote: Bcoz i think this will create security issues.
First thing if you are going to access the registry of your webserver, not every client machine. Also you require to make the entries in registry only when your product is in evaluation mode.
So when your demo product will be deployed on webserver,it is normally run on 'NetworkService' account , which does not have accesss to the registry. To get the registry access, you need to make some changes for this account on webserver.The chanes are
Accessing registry
You can run some script make the changes on webserver when your semo application is going to deploy.
|
|
|
|
|
hi,
I am developing asp.net page, with background image using master page. I need to strech my background image while resizing browser (ie., full image to be visible to user on the resized size)
Thanks in advance
Ilango
|
|
|
|
|
Your question is not quite clear. Yet what it looks like is you want to have Image shown as background in all possible scenarios. You can achieve all using proper CSS.
Look here: CSS background-image Property[^]
Try the combination that suits your requirement.
|
|
|
|
|
I would fill a html select control by a table in the database, and ^ more precisely by calling the method of loading data from the part DAL.
thank you for your help
|
|
|
|
|
|
I want to fill a html select control instead of dropdownliste with the result of a method that loads data from a database
|
|
|
|
|
HTML select element is rendered by and ASP.NET dropdownlist. Please learn the tools and environment you are trying to use.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi...
I want to direct play audio files from FTP Server, not downloading.....
How ca i do this?
Kindly help to solve this issue.
Thanks,
PUJA FALDU
|
|
|
|
|
Erhm, I Guess you will have to download the file. Maybe you can create some kind of fancy stream construction which will play the media while downloading, but you cannot play remote media on a local machine without downloading the data.
|
|
|
|
|
You would create a stream that would allow you to read the file, this means the data would obviously be in memory and would therefore not be stored on the local storage media.
However, as seen as you posted this in the ASP.NET forum, I assume you mean that you want a client to be able to play the audio files without downloading them? See here: http://en.wikipedia.org/wiki/Streaming_media[^]
^-^-^-@@-^-^-^
(..)-----;
||---||
^^ ^^
Moose.
|
|
|
|