Configuration :: COM Component Not Working In Published Website?
Sep 12, 2010
I`m using Microsoft office document imaging library (MODI) in my web application.
I`ve a page where a user uploads an image file and the server code converts this image into text form using MODI. Everything works fine when the website is running through visual studio but when i run it through local iis then i receive an exception.
my code is:
The code is perfectly fine because it works fine through visual studio otherwise when run through IIS i receive an exception at the last line written above saying.
Object isn`t initialized and can`t be used yet.
i didn`t catch the exception at last line because trying to figure out whats exactly wrong.
I am writing some IO functionality into my ASP.net page (C#). Basically what Im trying to do is, to get a list of file/folder names from a network share and display them on the webpage.
It works great in my DEV environment, on my machine, but it does not work on the published version on my IIS machine. I have not been able to get it to throw an error (I'll keep trying in the meantime). But, it would seem to me that it is some sort of permissions issue. I have given the ASPNET user admin access on the network machine, that the folder share is located. I have added NETWORK SERVICE (with FULL access) to the security rights of the shares Im trying to access.
I am a newbie to asp.net and have recently been building a web... I have a login control on the main page which when logged in verifys the user and redirects them to the home page... I published this to the server previously and it worked. Today when I tried logging into my system however I got the following error message:-
"Your login attempt was not successful. Please try again."
The accounts did work before but since I have uploaded a newer version of my program onto the server the above message is displayed. I have been on many websites and read previous forums with suggesstions to add <roles> in the web.config file however the login control worked before and I have not changed anything on the site apart from a different page that doesnt affect the login.
Few points to make... the login control is using the asp.net configuration pre built tables it generates for you, I have created the users and roles inside of asp.net configuration so it is not a custom membership... I am at a complete loss as how to get my login control to work having tried to insert roles into the webconfig file.
In an obviously misguided effort to keep versions of a site built through vs2010 .aspx vb I copied the entire visual studio 2010 folder from its default location on my local pc to a folder on a network. I then opened the network folder version of the project in VS, made a small change to some text, built the site sucessfully and published the site sucessfully to the same place the original site was published to. However, when I try to access the site I get the "resouce cannot be found" error. In a bit of a panic I opened the original project in VS and published it...no problem the site comes up. What am I doing wrong?
i have deployed my new website in IIS when i tested in browser its working fine but its not working on network systems,i have my old website with port 3185 and new one is 3186 , the old one is working fine but the new web is not working
Login not working after publishing asp.net website
I am used default login control, form based authentication and default sqlmembership provider.but in local my site working fine,when i publish it locally in iis means,the login is not working , i don't know what is the reason?
I developed and deployed a web application using ASP.NET,C# successfully. The application was running perfectly until few days back. [NOTE: It still works fine on local machine (tested using both development server and IIS)] What happens now is: The website opens perfectly. After few operations which involves database interactions, in all the pages, the pages stop responding. I mean, after a few clicks, if I try another operation the page starts postback for unlimited time period and never gets rendered and a following message is given: The connection was reset: Firefox 3.5... IE cannot display the web page: IE 7, 8 There is no database connectivity issues. I checked event logs on the web server and found few unhandlled exceptions, I corrected those. Now the event log doesn't show any error. But the problem is same.
I tried accessing the page from web server's browser, everything works fine. Even my boss can browse all pages with no problem (both have Win Server installed). Other machines (mostly XP) can't browse after sometime(as described above). I checked the memory usage, cpu time - NO ISSUES.
i don't know if it is from the web.config or if i missed something also i notes that the site in is not working in firefox browser (HTML code will appear instead of design) but in internet explorer the design works fine but without the asp controls
I am working on a project. Client provided me source code, but I found that source code provided to me is not latest code. I need to make some changes to live site. I downloaded code of live site which is published code. Is there any way to decompile that and then make changes to that.
I found Reflector tool good to some extent. But it is decompiling only dlls. It is difficult to make changes to .aspx.cs pages. I am confused what to do.
I am bulding a site that will create word documents from templates and fill in the bookmarks. Its working fine when running locally in VS but when I publish to the webserver it seems to have an issue opening word. Durning testing I created a new site that only has the code below and its still not working - you click on a button and it looks to have worked but word never opens. I have done 2 days of fault finding to no avail. The server has office 2003 installed and I have put the correct dlls in the bin folder of the project and still no joy - I have played around with as many settings as I can in IIS and still nothing.
I am using;
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.Office; using Word = Microsoft.Office.Interop.Word; using System.Reflection;
I have developed a website using visual studio. Now i want to deploy the same on server having windows server 2008 o.s. and IIS 7. When i copy the website and paste it into wwwroot folder of iis its not working. What settings need to be done so that website can be accessed from iis.
In my site on every load some session is made through url and single page(say xyz.aspx) is call every time and on the basis of url we create session. When i click on a href tag , page start reloading ,url we created is accurate but data doesn't change every time, means some time it show data on first click, but some time after 3 or 4 click.
I say problem is weird because when i run this on my local server there is no problem, when i run this on my project (visual studio) there is no problem , but when i up this project on my online server it show this kind of error but not every time .
I use data caching to fill dataset. There is no problem in this website since we created this (more than 1 year) and we don't made any change on this page but suddenly it starts showing this kind of error so what kind of error this is.
My application runs quickly when debugging locally, but slows down to an almost unusable state once published. Oddly, the published version seems to be grabbing data very quickly from MSSQL - it's the part where I'm updating datatables and gridviews that is very slow. For example:
AsyncFileUpload not working when .net app published to web server. It works fine in testing on my pc. I have checked security settings. I can get other upload scripts to work, but I wanted to try using the AJAX AsyncFileUpload. I thought maybe it's something on the server blocking it, but not errors, It just keeps saying "uploading" but it never finishes and it never uploads the file. Has anyone else had this happen?
I have an asp.net that produces a Word document. I want to allow users to download the file to their local drive. I use a hyperlink to achieve this and it works fine from my development site. However, when the website is accessed from a non development machine, I am sent to the proper directory, but instead of the open/save/cancel dialog I am presented with a "Convert File" dialog. Any of the selected file types I select download unusable files. I think this has to do with office being installed on the local machine on which I am attempting the download. Is there any way I can simply download a file from a virtual file to my local drive?
I have a site which some one designed for me .. after i decompiled my dll files i got *.cs files that i can edit ... when i am trying to edit these pages i can only find the titles of pages but i can't see the rest of text in the site
I check WindowsPrincipal.Identity.Name against Active Directory security groups before allowing the user to edit data. If the user is not authorized I just present a read-only version of the data.
When I run my web app from the IDE everything works fine. I published the web app, made sure anonymous access was disabled, and invoked it from IE. The read-only page came up.
I then added code to write to the event log to display the WindowPrincipal.Identity.Name and saw that instead of displaying the user name, it was instead showing the server name. I verified again that Anonymous Access is disabled and integrated security is on.
My application has a requirement of creating an excel sheet from the database on clicking logout buttonThis is implemented using the following com Components:Microsoft Excel 11.0 Object LibraryI created a Folder(Temp) in the application .When ever user clicks on the log out button, A folder(with the session name ) in Temp Folder gets created and the excel file is created here.Now every thing works fine on the local machine(User is getting the prompt for open and save etc)When I publish this .Nothing seems to be working.There is a n error that says" Could not find the excel at the said location(Tempseesion NmaeName.xls)The excel is not geting created when application is publised.