Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have hosted asp.net application on windows 7 64-bit operating system (IIS 6.0).
The problem is I am able to browse some pages of the application while other pages are not opening. Browser response is:
This webpage is not available
These specific pages are using some .pdf files folder and a *.txt file to read and write which are in root directory of application.
Is there anybody that knows what is the thing that I have missed during deployment?
It is like when I hit one page
1) http://xxx.xx.xx.xxx/page1.aspx (webpage working file).
This page reads some gmail inbox and displays result after some manipulation.
2) http://xxx.xx.xx.xxx/page2.aspx (webpage not available).
Second page in same directory does not working. This page is reading/writing some *.pdf files and *.txt files.
Timeout is not problem here.
In your comments you mention transferring to a new host.
There are several possibilities depending on what you are actually doing.
Security. Generally speaking, writing files to the root of your web app is a very bad security issue. If the system is properly configured on the new host then that is likely killing your pages. Actually, writing files anywhere is generally a bad idea unless you have taken the time to configure it and know what you are doing.
PDF/TXT file delivery. The IIS server needs to have it's mime types properly configured in order to deliver those types of files to the browser. If you are linking directly to a file with a .pdf or .txt extension and having a problem then the server might be misconfigured for those.
The best thing to do would be to change your web.config file so that it will give you the actual error message. You can do this by changing the customErrors element to have mode=Off
Note that you might also have to configure your browser to turn off "friendly http errors" if using IE for browsing.
use proper/correct activeX for displaying the PDF (Adobe comes with a free Active X dll (even for Reader) called AcroPDF.dll)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to ClickOnce deployment and unfortunately got stuck quite early. Upfront, I am not a programmer in the first place..
The task would be to run an application written in Visual/C# from a website. In the end, my problem is how to get my compiled project linked to a website so someone can execute it from there. Where must which files be located/ whats the important code.
See, I dont have much knowledge in web-development..
What would be the most simple set-up to understand the concept?
I would also highly appreaciate any recommendations for tutorials, etc.
Regards,
mulm
You can't actually "run a C# program from a website" but you can download it to a users machine and execute it from there. Either Clickonce or XBAP (depending on the architecture of the client application you are attempting to run) is the way to do this. Clearly they will only run on Windows client PCs though.
Visual Studio does have a lot of tools that make publishing ClickOnce applications vrey straightforward, so I'd follow the microsoft tutorials on publishing them (there is literally a button in Visual Studio that says "publish" for deploying ClickOnce applications to a web location).
If you look inside the published .Html you can see its just a URL to a .application file. Open the .application file and its just an XML file listing the application components to install, strong names, and dependencies. The .application extension is recognised by Windows IE which interrogates it and downloads and installs the nominated files. It installs the files into a user-local and app version specific location (the user cannot choose where to install it) and adds a link to the desktop. When the user launches it, a wrapper application checks the original URL location for an updated .application and installs the new copy if there is one, otherwise it launches the existing one.
One thing that often causes problems for ClickOnce users is that there is no built-in way to determine which site your ClickOnce application was launched or installed from - and typically the application author wants to interact with a data source available on that site. You will need to modify the .application file by hand to add in that kind of data, and re-sign it (it has a checksum built in) before making it available. This process is covered here https://msdn.microsoft.com/en-us/library/dd465299.aspx which also has a lot of background on the process.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a shared hosting account. I need to host a few different websites (basically demo websites) on the same hosting account.
I don't care about domains or subdomains.
So basically what I'm trying to do is:
root/
/ website1
// index.aspx
/ website2
// index.aspx
/ website3
// index.aspx
etc...
Each website should be accessible by entering: http://example.com/website1/, http://example.com/website2, etc.
But the last time I tried something like this, I kept getting errors along the lines of the website must be in the root directory.
How can this be done?
As I see that you are using aspx extension in your files, I will assume that we are talking about ASP.NET.
If they are different websites, with different configurations, it won't work. Different websites need to be hosted in different IIS applications. IIS applications can be created in directories, but shared hosting services usually limit the ability of the user to create new ones (depends on the plan).
Different subdomains should work as different IIS applications. It could be a way to go.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have an mvc 4 application on IIS 7.5 on my local computer, i do set bindings to my app. but currently it is only accessible one user at a time, when tried to access from another pc it shows an error The "RenderBody" has not been call for layout page. I have already modified the Limits settings > limit number of connections on IIS but still does'nt work!
This is the error shown ,when i tried to access the site from another computer in a network
to make other user able access my site successfully without error is to sign out first the currently logged in user,click this link for the image
and for that,I think my site on IIS don't allow concurrent request, **I need to sign out first in order to make other computer in a network access my site without an error.
When i am currently logged in to my site, it shows an error when i try to access my site from another pc, The "RenderBody" method has not been called for layout page How can i deal with that issue?
This is not a problem with the connections. It sounds like a problem in your layout page. Maybe you're missing the section "#RenderBody()"?
#RenderBody works as a placeholder for the engine to know where to drop the content of the view using the layout page
Here a good explanation of the sections you can/need to use.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I have a scenario I need to avoid my ASP.Net web application should not run in Firefox. If any one tries to open my application it will redirect to Chrome or Internet Explorer. I don't know how achieve this
situation.
Is it possible to handle this using JQuery or JavaScript ?
Simple answer: No
Longer answer...
Your question is fundamentally flawed - you simply cannot make a browser on a computer open a different browser on the same computer.
If you could to that, it would be a massive security flaw... and that is why you can't.
Although I don't like saying it - you could write an OCX (active X control) that would probably allow you to do it... but that would only work in Internet Explorer - and would require the user to install it.
But as you want to move from FireFox, this obviously doesn't answer your question.
No. It is not possible. You can't force a browser to open another application on the client machine (beside some browser plugins, like Adobe PDF).
Think what would happen if I could open your bank's application though javascript.
Everything is possible in technical sense. But if you try to do this way you may invite unnecessary issues from other browsers and loose focus on main objective.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How I can upload image or files to folder in local server C# Windows application? I prefer this method instead of saving the images to the database because it makes heavy.
I am using Windows Server 2008, please help me to get articles or tutorials to accomplish this.
The best way, IMO, would be to use FTP. See here for an example of how to do that.
Note, that you will need a good FTP server running on your server computer (I, personally, like FileZilla.
ANOTHER (likely easier) way would be to use SMB. You would have to open up a SMB share on the server for the folder which you want to upload the image too. this question has some example code of how you upload a file using SMB.
I do not advise saving images to the database. Make a directory folder somewhere named images, place your images there. You can save the image paths and names to the database, or hard code them if they aren't going to change.
It's easy to manage that way, less unnecessary database connections as well.
You can use an FTP or place the images directly in the folder on your server.
Here is some helpful reading for you:
Storing Images in DB - Yea or Nay?
storing images in database or on hard drive