I already have the latest dlls i think because i also tried updating .NET framework 3.5 again. And after that i re-added those references in my code but still the same errors... Any ideas how to solve this?
Phivos Stylianides
Posts
-
PUBLISHED ASPX PAGE BUT KEEP GETTING LOADING FILES/ASSEMBLIES ERRORS. HELP PLEASE! -
Programmatically adding usercontrolsHi, in this case i am adding an array of LinkButtons in a Multiview control dynamically. entries[indexIntVar] = new LinkButton(); view1.Controls.Add(entries[indexIntVar]); Hope this helps!
-
PUBLISHED ASPX PAGE BUT KEEP GETTING LOADING FILES/ASSEMBLIES ERRORS. HELP PLEASE!The assemblies/files i mentioned are all declared one after another in my code. At first i get the following error: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. As i get this error for this specific assembly mentioned above, i tried removing the assembly and add its reference again. When that happens it is generated again in my code at the end. So when i try to publish the page again i get a similar error about next assemblies in the code.
-
PUBLISHED ASPX PAGE BUT KEEP GETTING LOADING FILES/ASSEMBLIES ERRORS. HELP PLEASE!Hi, as i mention on the title of the post i get those errors coming from the web.congig file of the web site. I tried removing the references and then adding them again but still the same problem. Those are: add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" Any ideas? Thanks a lot!
-
Runtime Error after publishing aspx page!!!Thanks for your reply, I realized after removing those lines from the web.config that new ones errors come up and they seem to be similar. It cannot load the following files or assemblies: add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" I also tried removing them and then adding the references again! any ideas? Thanks!
-
Runtime Error after publishing aspx page!!!Thanks for your reply, I realized after removing those lines from the web.config that new ones errors come up and they seem to be similar. It cannot load the following files or assemblies: I also tried removing them and then adding the references again! any ideas? Thanks!
-
Runtime Error after publishing aspx page!!!Hi, i'm used Visual Studio 2008 Pro to create and publish my website. Everything seemed to be successful but when i tried to go to the page online i get this error: Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". It works fine in my virtual directory but not the server. This is for a class and your help is greatly appreciated!! Phivos
-
HOW TO MAINTAIN DYNAMICALLY CREATED CONTROLS AFTER POSTBACK C#Hi, i'm creating a TextBox dynamically with the firing of a Button but every time the page posts back the previous TextBox disappears. Is there a way to retain that control and add the new ones below it? Your help is greatly appreciated! Fivos
-
ASP.NET - C# passing a variable to the page with postbackThank's a lot for your post! Works!
-
ASP.NET - C# passing a variable to the page with postbackYes exactly, does any of you guys know how to assign it as a Session variable and then how to retrieve it back? Thanks a lot!
-
ASP.NET - C# passing a variable to the page with postbackHi, I have a method that retrieves a variable with a click of a LinkButton. I need to use that variable in an other method but it becomes null for some reason. I guess that happens because of the page postback every time and since i have an initialization command at the beginning of my code it makes it null again. So should i pass an argument with the page postback or disable the linkbutton's postback. And How could i do any of those? Your help is greatly appreciated. phivos
-
SQL type money to decimal HELP!i'm still getting zero as a result. do you think anything else could be wrong that i should double-check?
-
SQL type money to decimal HELP!Hi, as simple as it sounds i'm having difficulties to achieve this. I have tried several ways but none of them works. This a part of my code: decimal amount = reader.GetSqlMoney(4).ToDecimal(); subtotal += amount ; What happens is that the value returned every time from my first line of code is zero. Also when i tried for testing purposes to give that value to a control's text property it works fine. Thanks
-
INSERT IMAGES TO SQL SERVER TABLE USING C# CODINGThe images are not in the database yet. They are stored in the path mentioned, so far, and i'm trying to figure out a way to store them in the database. The code i posted in my first post does not work and i couldn't debug it. I'm looking for the appropriate corrections to make on my code so that my application will store the images in the database or write new code from scratch if there is a better way to do this. Thanks!
-
INSERT IMAGES TO SQL SERVER TABLE USING C# CODINGi need the images contained in a relative folder to be all uploaded in the database to be used later in my application. I will not use an upload tool to be used manually from the user so there has to be a path!
-
INSERT IMAGES TO SQL SERVER TABLE USING C# CODINGyes but, where should i include the path of the image?
-
INSERT IMAGES TO SQL SERVER TABLE USING C# CODINGHi, i'm trying to save preset images of type jpeg in a SQL table. My code below will be executed within a method every time i add a picture in the table. The table is called ITEM and the column with the type image is called item_picture. And the application root is ~/images/ where i have stored all the images. try { byte[] image = new byte[4]; string qry = "insert into ITEM(item_picture) values(@OriginalPath)"; command = new SqlCommand(qry,connection); command.Parameters.Add(new SqlParameter("@OriginalPath","~/images/app1.jpg")); } finally { connection.Open(); command.ExecuteNonQuery(); connection.Close(); } I get the following error: Operand type clash: nvarchar is incompatible with image How can i get this right? Thanks!
-
Reading the path of a file in C# - URGENT!!I skipped the ReadFile method and used something else instead. This is my code so far: try { byte[] image = new byte[4]; string qry = "insert into ITEM(item_picture) values(@OriginalPath)"; command = new SqlCommand(qry,connection); command.Parameters.Add(new SqlParameter("@OriginalPath","~/images/app1.jpg")); } finally { connection.Open(); command.ExecuteNonQuery(); connection.Close(); } I'm trying to execute this within a method every time i add a picture in the table. The table is called ITEM and the column with the type image is called item_picture. And the application root is ~/images/ where i have stored all the images. I get the following error: Operand type clash: nvarchar is incompatible with image Thanks
-
Reading the path of a file in C# - URGENT!!I know it's a method and i'm asking if it's a predefined method in one of the imported namespaces and if yes which one?
-
Reading the path of a file in C# - URGENT!!Hi, i have tried this line in my project so i can get the path of the images for storing them later in the SQL table but it did not work: byte[] imageData = ReadFile(txtImagePath.Text); I get an error 'ReadFile' does not exist in the current context. In which class does this method belong? Thanks..