Answer Questions
Joey Bradshaw Using reflection to load GAC assemblies
I just want to use reflection to load an assembly in the GAC. Is the only way to do this to use Assembly.LoadFrom("path to GAC\Assembly name") That seems a bit naff. No, I actually want to execute code within the asembly, I'm not just loading the GAC assembly for reflection purposes. The only way I can find (which I haven't got working yet) is to use assemly.load, specifying the ...Show All
KOLY refresing page (F5) should redirect the user to a different page
Hi, I want my ASP.net C# application to punish the users who refresh page using (F5) by redirecting them to a different page I guess users would also like to punish us, programmers, that build applications that do not behave well when they hit F5. "Standard" behaviour would be to warn the user that the retry button will discard all session data, with an "OK/Cancel" dialog. You could then redirect to any URL from the dialog ...Show All
Alex Barry VSTO and assemblies on shared drive
I created a basic excel spreadsheet that displays a message box to test out an excel doc made in VS 2005. I put the assembly and the .xls out on a shared drive on a server. I then used the NET Framework 2.0 Configuration to set the assembly and xls file to FullTrust. It works for me, but when I log onto another computer I get the error: The customization does not have the required permissions to execute. The pc that gets this error has ...Show All
D. Wille Debug and Release Buids
I have a solution containing a windows forms application and a class library. The windows forms application has a reference to the class library project. When I build the project, it fails to find the class library output. Looking closer at this, it appears that VS.NET is looking for the debug build, but the class library has been built in release mode. Since I have no idea how to switch between debug and release (used to be a ...Show All
Fourge Type Fidelity and Web Services
The company I'm a part of recently released a new verison of our distributed information processing system and while designing the thing I was presented with a few challenges that I'm now able to look back on and wonder if I did the right thing. The biggest design issue I had was wether or not it needed to be based on .NET Remoting or take the web servies approach. While I definitely would have liked taking the web services approach in partners ...Show All
Aniyan_Remo Datagrid textbox resizing
Hi there, My datagrid has Edit,Update&Cancel column, and other columns from my dataset. When i click the edit link the textboxes are just too wide, how do i set the sizes such that they fit the screen. I have tried converting them into template column, editing each template and then resizing the textboxes but when i click on Update i get an InvaildCastException error: "Specified cast is not valid" Please help... ...Show All
rwa how to get printing Document Completion Acknowledgement And Printing Failure Acknowledgement in C#
I am Printing document with using printdailog class. after prining document i need to update status of that prining Document. So I need printing document completion event or acknowledgemnt. At same time if paper gets jam in printer , then i need to update that document printing status. for that i required printing failure acknowledgemetnt. so please give me solution as earliest possible that through which event or acknowledgment i can ...Show All
Kiran Marke TcpListener
when it is right to use acceptSocket and when it is right to use acceptTcpClient what is the difference thanks thanks for the help Very helpful post, it helped clear my question. Thanks! Hi, If you require a TcpClient object then you would use AcceptTcpClient and in case you needed a Socket then you would use AcceptSocket. So the differen ...Show All
youngblood internalprotected access modifier? (not internal protected!)
Hi forum! I'm currently developing a library type project with a bunch of internal types responsible for internal logic. My problem: i can't use these types in protected methods of public library types! The compiler quits with an "inconsistent access modifier" error. So my question is, are there any plans to add an "internalprotected" access modifier (i.e. protected -- but only internally) to future c# specs The only solution i can come up ...Show All
Snorrk Dynamically creating result columns & data
I have created a database that has a JOBS table, each row of the table has corresponding records in a JOB_TASKS table. Each job may have a different number of records in the JOB_TASKS table. I am trying to create a query that returns a few fields of the JOBS table, then searches the JOBS_TASKS table for all related records and uses those records to create additional column names back in the query and fill in the data in the correct columns. ...Show All
Lars-Inge Tonnessen Can u use a SQL Server 2003 db within a vb web dev 2005 express application?
Hello, I have a SQL Server 2003 database that I would like to use within a web dev 2005 express application I created. Is this possible I keep getting this error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not ...Show All
yoshiw Access db on server with 5ish users grinding to a halt - help!
Hi all, Thank you for reading this post, I am hoping to get some advice/help. I have created a winforms application that sits on 5 users machines. The database is Access 2003 which sits on the server. When more than one or two people are using the application, it becomes very very slow. Some background details follow. Size of Access database = 27mb Users machines have 256k Ram 2.2 or more processing speed Server is Windows Server 2000 ...Show All
JSAdams Will there be a combined .NET redistributable for 1.1 + 2.0?
I am a software tester, and I have a moderately-sized codebase of testware and testware tools written in .NET that produce different behavior between framework versions 1.1 and the 2.0 CTP's. It looks like we will need to keep most of our tests compiled with 1.1 so that they can run there and at 2.0, whereas if we switched to 2.0, then they could only run against the 2.0 runtime. Relating to this need to be able to continue running code a ...Show All
hornnick worker thread "freezes", status "Running"
Upon a double click in my program, I spawn off a worker thread who crunches numbers and creates a large DataTable. Multiple worker threads can be going at once. Each worker thread updates the program's progress bar for each row it has added. I have lock statements set up so mult threads dont collide and try to increment at the same time. When the worker thread is complete, it calls the main UI thread and passes it the created DataTable so it can ...Show All
AmcoDevTeam Automating Windows Update
At the lab where I word we would like to be able to download and install windows updates on demand. We are using WSUS to manage our updates but it can take as much as an hour for a machine to download updates on its own and then it will install them at a predeturmined time. We could, of course, sign in as an admin once the updates are detected and manualy download and install them, but on over 200 machines that could take a while. I wen ...Show All
