|
Hi all,
I have written a small application that users can download from our website. How can I build a setup program so that it will detect if the framework needs to be installed and then install it without the user knowing?
Thanks for any help.
Linda
|
|
|
|
|
Search MSDN on "Bootstrapping" and "dotnetfx" or "Net Framework" yto find the various options for installing the framework as a prerequisite.
|
|
|
|
|
i know the procceses number,ip and system name of any system on LAN. How can I open that process on my system which is also connected on LAN keeping in view the security checks.
|
|
|
|
|
Define "open that process". What do you want to do with it? Security restrictions will prevent you from doing a lot of things...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i want to open processes like web page, word document which is already opened on the other system. i know process id, system number etc..
|
|
|
|
|
You still haven't answered my question. What do you want to do with the process?!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I'm developing an asp.net application which logs error in case of exceptions.
When it logs error teh following message displayed in event log.
Error loading an Event Sink of type 'Microsoft.EnterpriseInstrumentation.EventSinks.LogEventSink'. The Event Source of name 'Application' will not write events out to this Event Sink. The following exception was returned during the load:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An error occurred determining if the Windows Event Log source of Application (Loan) exists on machine .. This may be due to an incorrect machineName parameter. ---> System.Security.SecurityException: Requested registry access is not allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
at Microsoft.EnterpriseInstrumentation.EventSinks.LogEventSink..ctor(IDictionary parameters, EventSource eventSource)
--- End of inner exception stack trace ---
at Microsoft.EnterpriseInstrumentation.EventSinks.LogEventSink..ctor(IDictionary parameters, EventSource eventSource)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at Microsoft.EnterpriseInstrumentation.EventSinks.EventSink.CreateNewEventSinks(DataRow[] eventSinkRows, EventSource eventSource)
Can you please help me in this.
thanks in advance
Priya
|
|
|
|
|
I think "Requested registry access is not allowed" is the important part of the message. Have you checked whether your application is running under a user account which has the right to acess the registry?
|
|
|
|
|
hi,
I have two tables
Table1:Cust_Master CustID (identity type) CustName
Table2: Customer details
CustID
CustName
CustAddress
Cust phone
....
The tables are designed as: if the customer details has to be added it has to be first added to the Cust_master then get the Cust_Id (which gives autogenerated key) and then add it to Customer details table.
Now:
I want to show a editable datagird in WinForms where I give the user an option to add/modify and delete the customer details.
Can any give me the idea of how I can accomplish this.
Thanks
Satishrg
-- modified at 13:31 Wednesday 19th April, 2006
|
|
|
|
|
Hello folks.
I am a bit confused at the moment as to what best practice should be for my situation.
I have a solution containing the following projects:
1. Scheduler (NT service)
2. Web front-end
3. Scheduler command line interface (exe)
4. Business logic layer/DAL ()
5. Reports server dll
1. and 3. are new (replacements for some old vb6 code).
Previously, all I had to do to release was to compile and distribute the web front-end - all the dlls for the reports, DAL and BL were copied to the /bin folder and everything was hunky dory.
Now that I have added 1 and 3 they have their own /bin/ folders with their own copies of the 5.
How can I make them all reference the same dlls? Should I GAC the shared dlls when I install? Should i write a script to copy all the dlls and exes into the web folders /bin/ folder? whats the right thing to do?!
thanks everybody.
|
|
|
|
|
hamacatak wrote: Should I GAC the shared dlls when I install?
Yes, that's exactly the purpose of having a GAC.
|
|
|
|
|
hi there,
i'm developing a licensing website with asp.net this side is related to vb6 client and server code. the clients code and the website work perfectly together - the client gives any information needed by the server to calculate the LicenseKey to the asp.net website. Now there comes the problem...
<br />
Dim oKernel As LicenserKernel.cKernel <br />
oKernel = New LicenserKernel.cKernel()<br />
<br />
sReleaseKey = oKernel.CalcKey(sRequestKey, sSessionID)<br />
When debugging the website the object (oKernel) is made properly, the function is recognized correctly (i can see this during debugging - it displays what parameters are needed and so on) but all i get back from the function is: "NOTHING"
When i debug the server code on his own (manually giving him all the parameters the client gave to the website), it works just fine...
Another problem is that with every postback a new window is opened. i don't want a hundred of windows to be opened. poor users! this should be easy to solve and i don't understand why i can't do this on my own...
Would be great if anyone could help me with that
Thanks a lot in advance and have a nice day,
SanDee
|
|
|
|
|
I have a toolbar with buttons that contain images from an ImageList . The images appear correctly when the button is enabled. As soon as I disable the button the image dissapears from the button and the entire button area is grayed out BUT with no image on it. How do I fix this so that the disabled button shows a grayed out Image that the enabled button has instead of just a grayed out box?
|
|
|
|
|
The easiest way would be to adjust the used colors within the icons. .Net has a relatively simple algorithm to draw disabled images. If all used colors are 'very bright' than it is not able to draw it properly disabled.
|
|
|
|
|
How do I call a VB project from a C++ project or vice versa if they are in the same solution
|
|
|
|
|
References, add reference, projects
|
|
|
|
|
Solution Explorer-->References-->Add References-->Browse
and add the dll Tat's it.
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
Hi!,
i am using .net Framework 2.0 and facing serious troubles.The same code runs well on Windows Xp but when I run it on Win2000 it gives error ,module could not be loaded
Can some body help????????????
|
|
|
|
|
NOt with that description. How about the exact error messages that come up? Is the .NET Framework 2.0 installed on the machines in question?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Is the Win2000 machine at SP4?
Kevin
|
|
|
|
|
Hi,
I've just moved across divisions at a big corporate bank, as a result of a request by the Divisional IT head... . .not that any of that is important
After spending almost 2 weeks here now, I've noticed somethign rather disturbing... 80% of the processing is being done on the SQL Server???
Admittingly . .the result of legacy, and based on the strengths of the senior developers here.
The primary user application is a custom built VB.net/C# combo Windows application. But all its really used for is presentation of the ultimate results, all processing is handled by stored procedures within MSSQL Server 2000... . .
including all :
Batch processing (scheduled Stored Procedures that run for up to 7 days at a time!!),
Text\XML file generation (tons of BCP commands, etc),
Email\FTP management
now.. i've been a software engineer for about 7 years.. and correct me if i am wrong.. but surely software practices have advanced a bit beyond this, and there are better ways to do all of these!
My primary task for the first few weeks has been to do an assessment of the environment, and make some recommendations as to how things can be achieved in a better, more streamlined, more econmical manner.
this is just one of the main issues we're facing here, source code repositories dont exist, no proper release and QA processes are in place.. blah blah blah...
Alright.. enough blabbing, back to my original question... is SQL Server really the best place to conduct your primary business logic implementation?? I've always been of the opinion that stored procs should be used for CRUD, and only deviate from this when absolutely necessary...
some advice please. . . Am I wrong here?
|
|
|
|
|
LyndonSubroyen wrote: is SQL Server really the best place to conduct your primary business logic implementation??
It depends on what that logic is. The project I'm working on at the moment has most of the processing in SQL Server because SQL is the most efficient way of implementing what I want to do. Its a batch process that takes about 24 hours to run. There is no way I could achieve that in C# so I let SQL Server do the job it is designed to do - process vast amounts of data.
Other aspects you've mentioned could be done better in C# so there is definitely room for improvement.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
LyndonSubroyen wrote: is SQL Server really the best place to conduct your primary business logic implementation??
My personnel view is Yes!
Even it all depends on the Organization ,Requirements of the application and all the other facotrs
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
Ripping out existing infrastructure just to do things "correctly" is usually bad, especially if things are working. Probably better to put controls in place for stored procedures and backend processes. E.g. Use VSS to track all changes to the database.
I have been a huge user of T-SQL in the past, and it served me well. Some things just rip along when run right on the database server. You're really just writing your BL in T-SQL. Not that different than running a webservice host directly on the SQL Server, no? With SQL 2005 you can even write you procs in .NET.
That being said, it's really hard to separate your TSQL stuff from the database later if you need to scale out. Forget about porting to another rdbms. I have reformed from my past TSQL sins, and don't intend to go back.
Unless of course the environment or situation calls fors it.;)
|
|
|
|
|
Im new at this I just learned to how to network my computers and am now trying to play flight sims I have been flying on fighter ace and recently with IL/2Sturmovic as well as CFS3 I no they work from a server but how and can I do it?
|
|
|
|