|
How does localhost get its ID number in asp.net?
I have a question about ASP.NET and running test web sites locally.
I have written two asp.net web sites for testing purposes. One works and the other one fails. The one that fails does not give any useful diagnostic information.
Can you tell me how these id’s are generated that are alongside the localhost: url?
<a href="http://www.fislam.com/mybb_1610/Upload/images/localhost.PNG">http://www.fislam.com/mybb_1610/Upload/images/localhost.PNG</a>[<a href="http://www.fislam.com/mybb_1610/Upload/images/localhost.PNG" target="_blank" title="New Window">^</a>]
|
|
|
|
|
Those are port numbers, which are assigned dynamically when you run a site using IIS Express or the Visual Studio development server. The port number is random, and will probably change each time you close and reopen the project.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Just upon observation this week, while working with multiple project, I noticed that each project seems to have its own port number associated with it.
There's a property called port number, and use dynamic ports under it.
You might want to play around with it, underneath somewhere deep, you may find the entry in a config file or something.
|
|
|
|
|
Hello everyone,I'm trying to get the file name of unique txt extension file but there is a problem with the implemeting the path of file?
String path= "C:\\Users\\FT\\Desktop\\DosyaAktarim";
String[] files = System.IO.Directory.GetFiles(path, "*.txt");
Response.Write(files);
This way is useless or not ? and why the Visual Studio giving an error about the path is there any mistake with the implementation ???
Thanks for help
|
|
|
|
|
Member 10084999 wrote: Visual Studio giving an error about the path Please show the exact error message you receive.
Use the best guess
|
|
|
|
|
|
|
|
It is always best to check the documentation first.
Use the best guess
|
|
|
|
|
It looks like you're trying to access a UNC path. The path needs to start with \\ , but for a C# string, you need to escape the \ character. Therefore, your path should be:
string yol = "\\\\10.8.15.20\\DosyaAktarim";
Alternatively, you could use a verbatim string[^]:
string yol = @"\\10.8.15.20\DosyaAktarim";
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
How Do I Include References in an ASP.NET web site?
In a typical C# program, when you want to include a name space, it is fairly easy to inculde the reference in the Visual Studio project.
I am trying to rebuild a asp.net C# web site from scratch -- that is modeled after an already existing asp.net C# web site. In the preexisting project, the .aspx files have tags such as "<asp:..." and "<tel:..." and "<sue:...". I understand that the <asp,,,> components probably do not need any special declaration and the project will run fine immediately after construction. I also unserstand what the "tel" tags are for (it is for a plug-in that is part of a third party compoenent that actually adds content to Visual Studio so that I can create a new project of that type).
But the "sue" referrs to a dll that is proprietory to where I work. I need to include that DLL (and/or pdb file) in a new project. How do I do this?
|
|
|
|
|
I think it is custom control,add it in your custom tool box ,
|
|
|
|
|
Are you using a Web Application project or a Web Site project?
For a WAP, you should be able to add the reference in the same way as any other C# project.
For a WSP, you might need to right-click on the project to get the "Add Reference" option, or use the "Website" menu. Alternatively, you could just copy the dll to the bin folder.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello Xarzu
simply right click on your project and select add reference
it will give you browsing option from here specify path of your dll and add it...
hope this will help you
|
|
|
|
|
On windows 7, I have developed an application that read a template in word document format and create new word file by replacing place holders from template. My application is working fine on my local system, on server it log exception message that
----------------------------------------------------
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Source
--------------------------------------------
It shows exception on below line-
Microsoft.Office.Interop.Word.ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
Please do help.
|
|
|
|
|
Start by reading Microsoft KB article 257757:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
If you're still determined to use Office in this manner, you'll need to use the dcomcnfg tool on the server to grant launch and activation permissions to the identity used by the application pool.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Calling Office components from server code is clearly something Microsoft does not support. Microsoft support link : http://support.microsoft.com/kb/257757 .
This article discusses the complications that developers may face
|
|
|
|
|
Hi Everybody,
I have very specific requirement. I need to show river bed in interactive 3D format in ASP.net web based application. I have never worked on 3D. Please let me know what 3D engine I can use to create interactive web application. This website should be compatible with all major browsers.
thanks,
Umrahi
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
You mean like parametric 3D?, or just a node map?,
Do you have to rotate the river bed, showing the top and bottom?
Maybe your mean a 2D drawing or image. You need to be more specific in the term 3D. 3D could just mean wearing 3D glasses so the image stands out at you.
[EDIT]
I use 3D parametric CAD software at night to create parts and assemblies on the side as a hobby. Programs like GeoMagic Design use Direct X 9.0 as a canvas for drawing and displaying the parts. I think on Macs they use Open GL.
You should really Google the subject, because I've been here for 5 years, and your the first to ask.
[EDIT 2]
I guess there is such a thing. A HTML5 3D Parametric Open GL Support, control, module or something that will display a 3D Parametric file in multiple formats supported by SolidWorks, I forget the name of the standard format for parametric files, but it's the same used for 3D printers.
Hard part is making the drawing file. I know movies use Geomagic to scan a scene, and convert it to a node map, and then fill in the nodes to create a parametric map, for coloring and rendering.
Well, more fun that writing code for a living.
https://www.youtube.com/watch?v=a3G4bKnZ5kA[^]
[blog on the subject of 3DOpenGl and HTML5^]
modified 15-Jul-13 20:03pm.
|
|
|
|
|
How do you clear temporary files in an ASP.NET website project?
I have been building and rebuilding an ASP.NET program.
I made the horrible mistake, I think, of recently copying the published content back to the folder I was developing.
So now I have an unusual error when I build the code. It says That there is a duplicate definition in one file in a temporary directory with anohter file in a temporary directory.
Error 3 The type 'ChildEventHandler' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files...\b90cc7a4\28d266b\assembly\dl3\c4cf1ea3\b6e4b808_ef7cce01\App_Code.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files...\b90cc7a4\28d266b\App_Code.asx5jp5d.dll' C:\inetpub\wwwroot...\Resources\usercontrols....ascx.cs 11 18 C:......\
I removed project and file names, of course, but this is basically what the error says.
Since the error is with temporary files, what should I do?
I do not see a "clear" option in visual studio to clear out the files of a compile.
http://i.stack.imgur.com/VgT2J.png
|
|
|
|
|
Try to clean the solution then rebuild it.
Help people,so poeple can help you.
|
|
|
|
|
The answer lies in the error message.
Navigate to:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
and delete the files there.
<edit -="" fix="" typo="">
Every time you think, you weaken the nation.
|
|
|
|
|
I have created web application in asp.net. After session.Abandon() i am able to end the session in which i cannot go back and it will redirect to loginpage. But if i run in Google Chrome browser it is not working and if i click back it will come priviously opened page with data.
how to end the session of chrome browser in asp.net.
If anybody knows, please reply me.
Thanks in advance.
|
|
|
|
|
I think you have to abandon and remove all
Session.removeAll();
|
|
|
|
|
I did that also. It is not working for Google Chrome browser.
|
|
|
|