.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Sate Machine Alignment problem

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :JavaScript/VBScript
 

Hello,

I've a State Machine Workflow that it has a very big size, I mean more than 40 states. The problem is when I open the workflow in design view on Visual Studio 2008, all the states are misaligned, like one bellow the other. But if the same workflow I open in other computer with visual studio 2008, it shown good, the states are where they have to be.

I don't know what it is, maybe same bad configuration of the VS.

Any idea? 


Julio E. Szabo


View Complete Post


More Related Resource Links

gridview table alignment problem

  
hi all, i designed a gridiview, within that ItemTemplate i drew an table then tr then some of td's, now the problem is after every row im getting one empty row, what is the problem and how to resolve it. below is my code <ItemTemplate>                                             <table cellspacing="0" cellpadding="0" style="border-right:1px solid Black;" >                                                 <tr  >                                                     <td width="1%" align="center" style="border-right:1px solid Black;">          &n

Problem with .Net framework 4.0 on IIS 7 on Windows Server v2008 64 bit machine

  
Hi, I have installed .Net framework 4.0, i have added one application in default website, now when i brows the login page, it take some time and at the end displays nothing, in the event viewer in system log it says myApplicationName crashed.And also i get folllowing in event viewer Application LogLog Name:      ApplicationSource:        Application ErrorDate:          7/29/2010 11:39:31 AMEvent ID:      1000Task Category: (100)Level:         ErrorKeywords:      ClassicUser:          N/AComputer:      dev-appDescription:Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bd0ebFaulting module name: clr.dll, version: 4.0.30319.1, time stamp: 0x4ba21eebException code: 0xc00000fdFault offset: 0x000000000000400cFaulting process id: 0xad8Faulting application start time: 0x01cb2ef990316804Faulting application path: c:\windows\system32\inetsrv\w3wp.exeFaulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dllReport Id: ce52c718-9aec-11df-8551-00155d701c03Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">  <System>  

problem in Transferring a large dataset to remote machine by using the NetTcpBinding

  
i am developing an WCF application, in which i have to transfer a large dataset to the remote machine!! for that im using nettcpbinding in WCF but i got this exception ' The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '10:29:59.4140000'. at my sender side.   Sender/Client side code   // Object for sending to remote client using (_dpParameters = new DPParameters()) { _dpParameters.SequenceFieldName = "Sequence"; _dpParameters.Size = 10; _dpParameters.SubjectsForFiles = "S,Y,T"; _dpParameters.SubjectNames.Equals(SubjectNames); _dpParameters.FilePath = " E:\\Source\\Phospho.xml"; // this dataset can be in GBs but for testing me using jst 6.78mb DataSet ds = new DataSet(); ds.ReadXml(_dpParameters.FilePath); _dpParameters.Usd = ds.Tables[0]; } /// This is the binding settings NetTcpBinding tcpBinding = new NetTcpBinding(); tcpBinding.ReceiveTimeout = new TimeSpan(10, 30, 00); tcpBinding.SendTimeout = new TimeSpan(10, 30, 00); tcpBinding.MaxBufferSize.Equals(67108864); tcpBinding.MaxBufferPoolSize.Equals(67108864); tcpBinding.MaxReceivedMessageSize.E

Problem with css vertical alignment

  

Hi.

I want to create a box, that looks and acts exactly like in this image (I have edited it in photoshop to make it look like what I want):

example

As you can see, the heading should be vertically middle aligned. And if the text exceeds the width, the text should then take up the place like normal behaviour.

Ive tried to accomplish this for a long time now, but cant get it right! Problem is that I cant make the text vertically align, since I´m using the display:block;

Here is what i have:


HTML:

<div class="outer">
  <span class="heading" >Long heading that should take up all the place, but not expand the box </span>
  <div class="inner">
  <b>Description</b><br />just some random text<br />blablabla<br />
  </div>
  </div>



CSS:

.outer
{
  margin:6px;
  background-color:#fff;
  border:1px solid #797979;
  padding:2px;
  display:table;
  width:95%;
}

.heading
{
  background-color:#073c77;
  color:#fff;
  display:block;
  p

Simple CSS alignment problem

  

Hi.

Im trying to create a page with css layout instead of tables.

I want to create a div that is 100% long, and contains three buttons (maybe more?). The first button should be placed to the left, the second in the middle, and the third to the right. They shall, of course, be placed on the same horizontal line.

How to do this with css?


Thanks alot :)


Kind regards,

Lars


Decryption problem at different machine.

  

Hi

I have one problem with encrypting data at one server and decrypting that on other server.

We have Sql server 2008 Cluster on Win2K3 64 bit server. and client machines are 32 bit XP machines.

I also have a library that encrypt and decrypt data using AES 128 bit using RijndaelManaged class.  I have registered this Dll in SQL Sever and using this dll at client application as well.

now problem is that when I encrypt the data at SQL Server using a fix key and IV, the encrypted data is not decrypted at client machine. It throws the error "Padding is invalid and cannot be removed."

Though when decrypting the same text at SQL Server end, it works fine.

How can this  be achieved?

 

Regards,

Lalit


WPF Ribbon's application menu alignment problem: bug or programmer error?

  
I'm using WPF 4's (in .NET 4) ribbon control, version 3.5.40729.1, in my application. The application menu and all sub-menu popups align as far left as possible, usually far outside the ribbon window. The expected location is that the application menu's left edge aligns with the ribbon window's left edge, and that sub-menu popups will align with the left edge of the right (usually recent items) content pane.

Here's an example screen shot illustrating the issue I'm having. Note that the left edge of this screen shot is the left edge of my monitor.

Here's a snippet of code showing the XAML of the RibbonWindow root element and the beginning of the ribbon declaration:

    <Grid>
        <Grid.RowDefinitions>
            <

WCF Windows Auth (NTLM) Problem when Client and Server are on the same machine

  

I have WCF service being hosted in IIS with windows auth enabled, it is running under NetworkService account .  I have a simple method on my WCF service which just reflects the identity of who is calling it.

 

public string RefelctIdentity()

{

 

return HttpContext.Current.User.Identity.Name;

}

I am using IIS to authenticate the user and pass me the WindowsPrincipal in the HTTP context.

I am consuming the WCF service witha client used in a WindowsService that is being run under the NetworkService account.  When the WindowsService.  When running b

gridview alignment problem

  

I have a table in which  gridview1 is created when the user clicks a button outside this table.

when the user then clicks on a rowcommand button from Gridview1 a second gridview, chldgrdvw, is created in the next cell on the same row of the table.

My issue is that I would like the second gridview (chldgrdvw) to align with the the row clicked from gridview1.  Currently I can only get chldgv to align based on its table cell properties ie (top of cell, left of cell, bottom of cell etc..)


Gridview Header & table data alignment problem

  

Hi,


Newbie to ASP.net. Programming in C#.

I'm querying a SQL database and displaying the results in a gridview.

The results can be many records so I need to provide the facility to scroll. To display the headers when scroling I have implemented ( in my asp code) the headers in another table and the data is in another table. I see now I cannot align the column headers with the table data.

Appreciate any help to fix this issue.

If this method is not a good one to display headers with data please suggest another method.( Some example code guidance would really help)


Here is my ASP code.

<div id="divProjectTableHeaderFullDetail" runat="server" style="background-color: #993300;
            height: 40px; width: 770px; margin: 0;  padding: 0 ; " >
            <table style="font-family: Arial; font-size: 10pt; color: white;" cellspacing="0"
                cellpadding="0">
                <tr>
        &n

Bubble bar alignment problem

  

Hi,

I am using bubblebar dll from devcomponent in vb.net project. i have embedded bubblebar in my project.

But i want to set ita alignment according to the position of bubble bar.

I have a 2 button in form, when i press that Top button  --->  bubble bar position be at top and the icons are enlarging in downwards position.

and when i press Bottom button---> bubble position set to bottom of screen but icons are still enlarging in downwards position, though i want them to rise upwards.

i have tested bubblebar1.alignment=Top on    TopButton         and   bubblebar1.alignment=Bottom  on BottomButton.

It doe'nt works.

 

Kindly i anyone have idea how to do it. 

Please let me  know.

Regards;

Nikhil Malhotra 


problem in reading event logs of remote machine

  

hi,

I work on application which connects to remote machine and retrieves all event logs from it using EventLogReader and EventLogQuery classes.

I use the API EventLogReader.ReadEvent() for it. It works fine on all platforms except on Windows 7 machine. If I run my application on Windows 7 machine, EventLogReader.ReadEvent() throws an EventLogException with the error message - "The array bounds are invalid"

Have anyone faced this issue before? How I can overcome this problem and continue reading next event logs?

Please let me know.

 

Thanks!

Amit


Problem connecting to report server from client machine

  

We've deployed some reports from a server machine which can be accessed without any problems if you are logged onto the server itself by going to the URL of http://servername/ReportServer. However if we try and access the reports from a client machine (even if we use the same administrator Windows account) we get the Windows security window appear asking for a Username and Password to be entered in order to connect to the server. We've tried entering this but we then just get a blank screen after being re prompted a few times to enter the details.
Now I'm not sure whether this will be a Reporting Services or a Windows issue. Could it be a setting within IIS? It can't really be a user thing as the same user works on the server but not on the Client machine so it's more of a machine problem. It's as if there are some authentication settings somewhere that need to be set.
We are using SQL Server 2008 on Windows 7.
 
Thanks a lot
Steve


Problem with decryption data in stored procedure if local date on my machine was changed

  

Hi people!

Can anybody help me with my problem?

I have one machine (Server 2003 x64 SP2, SQL Server Standard Edition (64-bit) version 9.00.4053.00). Also I have a stored procedure in database that doing a validation of users, and contains the next code:

OPEN SYMMETRIC KEY PasswordFieldSymmetricKey
DECRYPTION BY CERTIFICATE PasswordFieldCertificate;
  SELECT
  [UserId],
  [AccountNumber],
  [Login],
  CONVERT(varchar, DecryptByKey(EncryptedPassword)) AS 'Password'
  FROM [User]
  WHERE ([Login] = @Login)
        AND (CONVERT(varchar, DecryptByKey(EncryptedPassword)) = @Password);
CLOSE SYMMETRIC KEY PasswordFieldSymmetricKey;

All works correctly but if i change the "Date and Time Properties" on my machine i receive the next error

(0 row(s) affected)
Msg 15315, Level 16, State 1, Procedure user_login, Line 111
The key 'PasswordFieldSymmetricKey' is not open. Please open the key before using it.

If i set the current date it will work correctly again.
One strange thing:
if execute the query "SELECT * FROM sys.symmetric_keys" i have the next date of creation for my symmetric keys

2010-11-04 11:18:49.300

And if i set a date less then date of

Problem accessing Report Server from client machine

  

We've deployed some reports from a server machine which can be accessed without any problems if you are logged onto the server itself by going to the URL of http://servername/ReportServer. However if we try and access the reports from a client machine (even if we use the same administrator Windows account) we get the Windows security window appear asking for a Username and Password to be entered in order to connect to the server. We've tried entering this but we then just get a blank screen after being re prompted a few times to enter the details.

Now I'm not sure whether this will be a Reporting Services or a Windows issue. Could it be a setting within IIS? It can't really be a user thing as the same user works on the server but not on the Client machine so it's more of a machine problem. It's as if there are some authentication settings somewhere that need to be set.

We are using SQL Server 2008 on Windows 7.

 

Thanks a lot

Steve


HijriDate problem In server Machine

  

I Have Code That Get   HijriDate  in Format  dddd dd MMMM yyyy the Code Work fine In developement (windows XP) Machine and gave Correct HijriDate But When run the Code in server Machine(windows 2003 R2)   it Gave Me  wrong date (advanced one day from correct date) I Look To region Setting In Both Developemnt machine and server machine it have same setting

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Globalization;
using Sitedll;
using System.Threading;
public partial class TestDate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CultureInfo arCul = new CultureInfo("ar-SA");
        CultureInfo enCul = new CultureInfo("en-US");
        HijriCalendar h = new HijriCalendar();
        GregorianCalendar g = new GregorianCalendar(GregorianCalendarTypes.USEnglish);
        arCul.DateTimeFormat.Calendar = h;
       

Problem to group radio button across gridview rows

  
In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend