JoshKorn's Q&A profile
.NET Development How does the web service uses the App_Code.dll
I have noticed that the App_Code.dll is missing from \Bin directory when debugging a web service using VS 2005 but it does appear after publishing the web site. I'm using a web project that has been converted from VS 2003. My question is - how does the CLR run the web service code in debug mode without using a dll I guess the IL is being stored somewhere... Thanks! Gil, The DLLs as well as the PDBs are there.... but not in the bin folder. ASP.NET 2.0 uses a dynamic compilation feature and it now puts the DLLs in the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files instead of in the bin folder. Take a look at this folder you will find the missing files.... When y ...Show All
Software Development for Windows Vista how to check password in sts sample
Hello, I have a question about username/password manage card while I'm testing a sts sample. I'm trying to check the password using AuthorizationContext in WsTrustResponder.cs. Is this the right way to do that Is there someone to show me the example code Thanks. - I replaced the < behaviors > part as you specified it in app.config of the Simple STS code - I added a class file in visual studio to the Simple STS project with the following content: using System; using System.Collections.Generic; using System.Text; using System.IdentityModel.Selectors; namespace Microsoft.ServiceModel.Samples.SecurityTokenService { class MyUsernamePasswordValidator : UserNamePasswordValida ...Show All
Visual C++ Trouble using a dll
Hello, I'm having a problem with using a dll in Visual studio 2005. What I want to do is this: I have a x.dll file, x.h header file and x.c source file supplied by some company to communicate with one of their devices and I want to use this in a visual c++ win32 console application. Now, the way i do in visual c++ 6.0 is: 1) add x.h and x.c to the project 2) Put the x.dll somewhere so the linker can find it according to the rules for where it search 3) #include "x.h" in the main file and call functions from the dll 4) compile and run -> works fine, can call functions from the dll When i create a c++ win32 console app in visual studio 2005 I go through the same steps. However, when I run my program, the ...Show All
SharePoint Products and Technologies Accessing WSS sites from a partially trusted domain
I am looking for information about the possibility of allowing access to a SharePoint installation (version 2 or 3, not sure) from a domain with a limited one way trust. This host domain is in the process (design phase) of being migrated but the users in the target domain want access to the source domain WSS sites now. Is this possible If so, how should the trust be modified (specifically) to only allow WSS authentication. ...Show All
Visual Basic Smtp Email Question
I was just curious if anybody knows how to set the username and password on an account in order for the smtp client to be able to send an email... Thanks All... Theres just a wealth of information on here - sometimes its just searching through to find it and as the .NET uses a common framework for all languages its worth checking the other language forums as well. Glad the port seemed to be the solution - I knew I'd seen stuff specific to gmail before. ...Show All
SQL Server Convert RS2005 rdl to RS2000
Hi, Is there any tool that can convert a report definition language file written for RS2005 to be compatible with RS2000 Any help will be appreciated. Thank you. Peter Microsoft does not provide a RDL-downgrade tool. Not sure if anyone else has built one and made it available to the public. Anyway, it would not be difficult to build a tool yourself, or just follow the manual steps described in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=414302&SiteID=1 The manual steps cover almost 100% of RDLs (I omitted custom report item and custom properties). -- Robert ...Show All
Visual C# how to endure only one object instance exists
i am adding a user control to a form programmatically but before i do i want to check if that control already exists, if it does exist i will instead just make it the active/visible control. How can check to see if a control already exist and how can i find a reference to it and make it active/visible Do you mean just one object per form Or one for the whole application E.g. if you have two forms, and Form1 already contains an instance of your control, and you try to add it to Form2, what do you want to happen Do you want Form1 to be brought to the foreground and the control to be made visible Or do you want to permit up to 1 control per form If it's one per form, then you'll need to iterate through ...Show All
Commerce Server Custom Pricing
Hi, We have an order processing application that we have successfully integrated with CS2007, using BizTalk Server 2006. We are using two base catalogs with a total of about 1,000 parts, each with 4-5 variants. Our customer now wants us to implement 'custom' pricing in the same manner as the order processing application. The request is to offer custom prices by customer by product by variant. We originally thought we would be able to use Virtual Catalogs, but since the same discount applies to all products, and all variants within the product, this method is too generic since the discounts vary per product, per variant. The only other solution that we can think of is to create individual catalogs per customer, forcing the desired ...Show All
Smart Device Development Change the color of a DataGrid scrollbar in C#
Is it possible to change the color of a DataGrid scrollbar in C# I've tried lots of different alternatives, but nothing seems to work. Could you give me the correct row g.Controls[0].ForeColor = MyBlue; // Nothing happens g.Controls[1].ForeColor = MyBlue; // Nothing happens g.Controls[anything greater than 1 gives an exception].ForeColor = MyBlue; g.Controls["VSB" gives an exception].ForeColor = MyBlue; g.Controls["HSB" gives an exception].ForeColor = MyBlue; g.Controls["SB" gives an exception].ForeColor = MyBlue; ...Show All
SQL Server Custom Assembly Problem
I am trying to use my own custom assembly in my SQL Server 2005 report. I have coded and compiled the following code to produce the ReportLibrary.dll: Imports System.Data Imports System.Security Public Class myClass Public Function myFunc() As Integer Dim value As Integer = 0 Dim permission As New SqlClient.SqlClientPermission(Permissions.PermissionState.Unrestricted) Dim myCommand As New System.Data.SqlClient.SqlCommand() Dim conn As New System.Data.SqlClient.SqlConnection( "MY CONNECTION STRING”) myCommand.Connection = conn myCommand.CommandText = "MY SELECT STATEMENT" Try permission.Assert() ...Show All
Windows Live Developer Forums Problems displaying custom emoticons...
(this problem happens to me both in Live and Msn Messenger 7.5) Recently I've been having problems displaying custom emoticons that people sent me - some custom emoticons work, while others show up as an empty space (i.e. image won't show up) and though I'm using a new PC right now, the same is happening. I think the same may be going for display pictures, some work and some don't. The only thing I can see that would be causing this is ZoneAlarm Security Suite, but I've enabled MSN Messenger to have full privileges and this is still happening. If it is not the privileges, does it have anything to do with blocked ports I'm also seeing other image display problems, such as in FirstClass (the client), if I view someone's resume, I cannot see ...Show All
Visual Studio Express Editions unwanted resources
Hi I have some images in my resources that I want to remove but when I delete them my application wont run.....cannot find resource... can u help thanks how do you mean deleting them are you still trying to access them from within your application can you tell us when you get the error what is the exact error how did you delete them ...Show All
Smart Device Development how to create batch file msi?
Can someone teach me how to create batch file msi. Evertime i solve some bug. i need to copy my system exe and zip it, then use email to send to user. And user need to unzip the file and paste to PDA by using ActiveSync. Just want to know is that any easy way What i hope is can direct click on msi then the new exe will help user update everything. Albert Khor, You can use msiexec command help is available on Windows XP Commands Regards, UK ...Show All
SQL Server Next Measure
Lets say I have a set of measures that go like this: Date, Payment October 3, $3 October 6, $4 December 6, $5 December 8, $4 My problem is that I need to get the next payment date and amount. So if for example I am standing in October 3, I would have to get (October 4, $4). If I was standing in october I would have to get (December, $9). Assuming I have a measure called [Payment] and a [Date] dimension ([Year], [Month], [Day]), How can I do this with MDX Thanks in advance There are two ways to do it, one is recursive and another one is not. It is hard to judge which one will perform better, both of them have their problems: 1. CREATE NextPayment = IIF(IsEmpty(Time.NextMember) A ...Show All
Visual Studio Express Editions slideshow
how can I alter this code so it displays a different image every minute.....like slideshow thanks PictureBox1.Image = Image.FromFile _ (System.Environment.GetFolderPath _ (System.Environment.SpecialFolder.Personal) _ & "\Shell2.jpg" ) Ooooh. I know..... I left a line of that was up top. As a member variable you need to add.... Private rnd as new Random up at the top. Also read your email....... ...Show All
