Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

akosidandan

@akosidandan
About
Posts
105
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error in deploying Asp.net web application with crystal report version 13
    A akosidandan

    Hi experts, I would like to ask why does I'm getting an error when I am deploying my web application to my server.When I'm developing the application it works smoothly in the visual studio IDE but when I'm deploying it to my web server which is my local computer also it produce an error.I've done google and following some advice on other website as well still I can't managed to run it. I've also install the 64/32 bit redistributable of the crystal report but still I did not manage to make it work.My workstation is in 64 bit and I've done changing the target platform from 32 to 64 or vice versa but still no luck again. :confused: So much confused now about this error. Below is the error produce

    Server Error in '/' Application.

    Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.BadImageFormatException: Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'webReportTester' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace:

    [BadImageFormatException: Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    Syst

    ASP.NET csharp visual-studio asp-net wpf wcf

  • Deploying C# Application with Crystal report
    A akosidandan

    Hello, I was a bit lucky I manage to fix it also. I am not sure but might be helpful to others also, it seems the error can be done by the previous version of crystal report that is being installed in the client machine. I tried to properly uninstall the previous version of the crystal report then repeat the same I process until its successful.

    C# csharp visual-studio wpf wcf com

  • Deploying C# Application with Crystal report
    A akosidandan

    Hello Experts, I would like to ask even though I manage to add the [Merge Module for visual studio 2010](<pre>downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_mergemodules_13_0.zip</pre>) so that I can deploy my Application that uses crystal report I still got the error below.

    Could not load file or assembly CrystalDecisions.Windows.Forms.Version=13.0.2000.0

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

    File name: 'CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    at SimplyOutbound.Form1.InitializeComponent()
    at SimplyOutbound.Form1..ctor()
    at SimplyOutbound.ReportGenerator.btnView_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Any advice, suggestion are so much appreciated. Thanks, DAN

    C# csharp visual-studio wpf wcf com

  • Prevent Multiple Login
    A akosidandan

    Hello, My apology for miss placing question. About the idea I will try what you have given. Thanks.

    C# csharp asp-net database

  • Prevent Multiple Login
    A akosidandan

    Hello, My apology about that, the code was orginally in vb.net in the link of my main post. I just managed and tried converting it myself thats why I dont have 100% idea about to code logic.

    "After the code every time I login it always says that the user is already login now" <- it was a follow up question for this.

    C# csharp asp-net database

  • Prevent Multiple Login
    A akosidandan

    Hello, I apologize if I may not understand you but I'm just a newbie asking for some experts advice,recommendation about stuff I'm not able to do. It's a part of my project specification that's why why if possible I want to add that functionality.Since I'm stuck in this part I came to ask in this forum was hoping to get some advice how to it or if lucky an answer.

    C# csharp asp-net database

  • Prevent Multiple Login
    A akosidandan

    Hello, Good idea , but still it would be hard for me to Invalidate the earlier login because I need to force logout the earlier log in. Thanks for the idea I will still try it.

    C# csharp asp-net database

  • Prevent Multiple Login
    A akosidandan

    Hello, I know its hard and really annoying but still what if the my boss want it that way then I have no choice but to do it or else I will be kicked out. :D Seems I have no choice but no to add it if I can't managed to do it, I guess :(

    C# csharp asp-net database

  • Prevent Multiple Login
    A akosidandan

    Hello, Yup I set it to default, few question why does if I tried other account it still says that the accout is already login.

    C# csharp asp-net database

  • Prevent Multiple Login
    A akosidandan

    Hello Experts, I would like to ask if what are some easier ways preventing multiple log in of account to my web application. I tried creating a flag field to my database that check the user if he or she is log in but its not good way because if he/she is not properly log out then the account will be lock and I will need to open his/her account manually. Done a couple of research but still I'm not able to. Here is that code I manage to covert that previously in vb.net not sure though if my code 100% corrent or my conversion of the is ok. The code I managed to find is here http://forums.asp.net/t/1196897.aspx[^] My code in Global.asax

    /// <summary>
    /// event fire when the user 1st browse the website
    /// </summary>
    protected void Application_PreRequestHandlerExecute(object sender, EventArgs e)
    {
    //Response.Write("Fire up");

           //if session items is not null
           if (HttpContext.Current.Session != null)
           {
               Response.Write("SessionID:" + Session.SessionID.ToString() + "User Key:" +(string)Session\["users"\]);
    
               //fires after initial login
               if (Session\["users"\] != null)
               {
    
    
                  String sKey= (string)Session\["users"\];
                  string sUser = (String)HttpContext.Current.Cache\[sKey\];
               }
               //remove the cache item if session is over
               else
               {
    
                   foreach (DictionaryEntry dEntry in HttpContext.Current.Cache)
                   {
                       HttpContext.Current.Cache.Remove(dEntry.Key.ToString());
                   }
    
               }
           }
    
    
    
       }
    

    Below is my code after the user successfully log in

    String sKey = Login1.UserName + Login1.Password;
    string sUser = Convert.ToString(Cache[sKey]);

                    //no cache item
                    if (sUser == null || sUser==" ")
                    {
    
    
                        TimeSpan sesstimeout = new TimeSpan(0, 0, HttpContext.Current.Session.Timeout, 0, 0);
                        HttpContext.Current.Cache.Insert(sKey, sKey, null, DateTime.MaxValue, sesstimeout, System.Web.Caching.CacheItemPriority.NotRemovable,
    
    C# csharp asp-net database

  • Find asp.net listview control in Item Template
    A akosidandan

    Fix it when I almost lost hope trying :D when I suddenly copy paste my design of item template to alternating item template of my listview. It seems that the listview databound event is affected by both alternating item template and item template.

    C# csharp asp-net database sysadmin

  • Find asp.net listview control in Item Template
    A akosidandan

    Hello Experts, I would like to ask how will I find the listview control or use the correct event. My goal is that I want to check the listview control text value inside of listview item template after it load the data, then I have a condition to trigger some code depends on what my control text result. Here is my Code I am not sure why it does not work and it always give me

    Object reference not set to an instance of an object.

    The aspx page Code

    <ItemTemplate>
    <tr style="">
    <td>
    <asp:Label ID="AnnouncementMessageLabel" runat="server"
    Text='<%# Eval("AnnouncementMessage") %>' />
    </td>
    <td>
    <asp:Literal ID="projectType" runat="server"
    Text='<%# Eval("AnnouncementType") %>'>
    </asp:Literal>
    <asp:Button ID="Button1" runat="server" Text="Button" />
    </td>
    </tr>
    </ItemTemplate>

    My behind file code.

    protected void ListView1_DataBound(object sender, EventArgs e)
    {
    foreach (ListViewDataItem item in ListView1.Items)
    {
    Literal project = new Literal();
    Button b = new Button();
    b = (Button)item.FindControl("Button1");
    project =(Literal)item.FindControl("projectType");
    if (project.Text == "Project")
    {
    b.Text = "This is a project POST";
    }

            }
    
        }
    

    Any comments or suggestions are kindly appreciated.

    C# csharp asp-net database sysadmin

  • Uploading File from Client to Server
    A akosidandan

    Hello, Thanks for the link. Now I don't need anymore 3rd party ftp server just to transfer file :) Thanks again, DAN

    C# csharp linq design sysadmin help

  • Uploading File from Client to Server
    A akosidandan

    Hello Experts, I would like ask how I will alow my client(the one browsing the internet) to upload the file into my web server. I set up my web application using the abyss web server so that I can host the website to my local machine, and for the FTP I use filezilla. Below here is my code but it's only working in my local machine.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.IO;
    using System.Net;
    using System.Web.UI.WebControls;

    namespace ftpPractice
    {
    public partial class _Default : System.Web.UI.Page
    {

        protected void Page\_Load(object sender, EventArgs e)
        {
    
        }
    
        public void uploadFileUsingFTP(String CompleteFTPPath, String CompleteLocalPat)
        {
            try
            {
                //Create a FTP Request Object and Specfiy a Complete Path
                FtpWebRequest reqObj = WebRequest.Create(CompleteFTPPath) as FtpWebRequest;
    
                //Call A FileUpload Method of FTP Request Object 
                reqObj.Method = WebRequestMethods.Ftp.UploadFile;
    
                //If you want to access Resourse Protected You need to give User Name  and PWD
                reqObj.Credentials = new NetworkCredential("Akosidan", "newbie");
    
                //File Stream obj read the file from local drive
                FileStream streamObj = File.OpenRead(CompleteLocalPat);
    
                //Store File in Buffer
                byte\[\] buffer = new byte\[streamObj.Length\];
    
                // Read File from Buffer
                streamObj.Read(buffer, 0, buffer.Length);
    
                //Close FileStream Object Set its Value to nothing
                streamObj.Close();
                streamObj = null;
    
                //Upload File to ftp://localHost/ set its object to nothing
                reqObj.GetRequestStream().Write(buffer, 0, buffer.Length);
                reqObj = null;
    
                lblMessage.Text= "File Uploaded Successfully :)";
            }
            catch (Exception error)
            {
                Response.Write(error.ToString());
            }
            
            //fs.Close();
            //Stream ftpstream = ftp.GetRequestStream();
            //ftpstream.Write(buffer, 0, buffer.Length);
            //ftpstream.Close(); 
    
           
        }
    
        protected void cmdUpload\_Click(object sender, EventArgs e)
        {
            uploadFileUsingFTP("ftp://localhos
    
    C# csharp linq design sysadmin help

  • How can my hosted asp.net website access my local machine database
    A akosidandan

    Hello, Thanks still for the great idea. I will try and hope I can do it with asp using the idea you give me. :) Thanks, DAN

    C# csharp asp-net database help question

  • How can my hosted asp.net website access my local machine database
    A akosidandan

    Hello, Thanks again for that great help, would you mine if you could show how will I do that using asp Thanks again, DAN

    C# csharp asp-net database help question

  • How can my hosted asp.net website access my local machine database
    A akosidandan

    Hello, Thanks for the great info. Would you mine if you could give me some a little help or info on how can my asp.net web service connect to the static IP where my SQL server is located. Kinda Google it almost everyday but still don't find some way on how to do it. Thanks, DAN

    C# csharp asp-net database help question

  • How can my hosted asp.net website access my local machine database
    A akosidandan

    Hello, My reason to connect my website to my local database is to sync the two database from my local machine database and the database I upload also from the site. I can get some database records coming from my website and use the records to update my back end program using web service of asp but a big problem came that my back end program could not sent its database records to my website :( By the way my website was a simple online registration for school and the back end program is the offline part its a school project of mine and kinda cramming because few months left before the deadline. Thanks also for the link on the free hosting site I might give it a try. Thanks, DAN

    C# csharp asp-net database help question

  • How can my hosted asp.net website access my local machine database
    A akosidandan

    Hello, Thanks for the reply. Seems my last resort is to really host my own website to my local machine.

    C# csharp asp-net database help question

  • How can my hosted asp.net website access my local machine database
    A akosidandan

    Hello experts, I have a asp.net website with c# as behind file code and also a win form app. I would like to ask, how can my asp.net website get the database records of my win form app in my local machine? I'm able to receive the database records coming from my website to my win form app here at my local machine using web service but sending my database records to my website is confusing me. Any help is kindly appreciated. Thanks, DAN

    C# csharp asp-net database help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups